VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.14/Makefile.kmk@ 96215

最後變更 在這個檔案從96215是 95312,由 vboxsync 提交於 3 年 前

libs/{curl,libxml2}: OSE export fixes, bugref:8515

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.9 KB
 
1# $Id: Makefile.kmk 95312 2022-06-20 15:07:57Z vboxsync $
2## @file
3# Sub-Makefile for the libxml2 library.
4#
5
6#
7# Copyright (C) 2007-2017 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.alldomusa.eu.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21if !defined(VBOX_ONLY_VALIDATIONKIT) || defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING) # Needed for VBoxRT for Validation Kit unit tests.
22 LIBRARIES += VBox-libxml2
23endif
24VBox-libxml2_TEMPLATE = VBoxR3RuntimeDllNonPedantic
25VBox-libxml2_SDKS = VBOX_ZLIB
26VBox-libxml2_DEFS = _REENTRANT # the latter triggers thread support, see xmlversion-default.h and win32xmlversion.h.
27VBox-libxml2_DEFS.win = WIN32 _WINDOWS _MBCS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE \
28 LIBXML_STATIC LIBXML_STATIC_FOR_DLL HAVE_WIN32_THREADS HAVE_COMPILER_TLS HAVE_ZLIB_H
29VBox-libxml2_CFLAGS.win.amd64 = -wd4267
30VBox-libxml2_CFLAGS.win += -wd4701 # potentially uninitialized local variable 'l' used
31VBox-libxml2_CFLAGS.win += -wd4232 # nonstandard extension used : 'xmlFree' : address of dllimport 'free' is not static, identity not guaranteed
32VBox-libxml2_CFLAGS.win += -wd4305 # 'type cast' : truncation from 'xmlChar *' to 'long'
33VBox-libxml2_CFLAGS.win += -wd4306 # 'type cast' : conversion from 'long' to 'void *' of greater size [TODO: check these out?]
34if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120"
35 VBox-libxml2_CFLAGS.win += -wd4311 # parser.c(1346) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'long'
36 VBox-libxml2_CFLAGS.win += -wd4312 # parser.c(1327) : warning C4312: 'type cast' : conversion from 'long' to 'void *' of greater size
37 VBox-libxml2_CFLAGS.win += -wd4005 # sdk\v7.1\include\sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition
38endif
39if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
40 VBox-libxml2_CFLAGS.win += -wd4777 # timsort.h(326): warning C4777: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'unsigned int'
41 VBox-libxml2_CFLAGS.win += -wd4477 # timsort.h(326): warning C4477: 'fprintf' : format string '%lu' requires an argument of type 'unsigned long', but variadic argument 1 has type 'size_t'
42 VBox-libxml2_CFLAGS.win += -wd4723 # xpath.c(505) : warning C4723: potential divide by 0
43endif
44ifn1of ($(KBUILD_TARGET), win)
45 VBox-libxml2_CFLAGS = -Wno-format-security -Wno-strict-prototypes -Wno-format-extra-args $(VBOX_GCC_Wno-tautological-pointer-compare)
46endif
47VBox-libxml2_INCS = include
48VBox-libxml2_SOURCES = \
49 buf.c \
50 c14n.c \
51 catalog.c \
52 chvalid.c \
53 debugXML.c \
54 dict.c \
55 DOCBparser.c \
56 encoding.c \
57 entities.c \
58 error.c \
59 globals.c \
60 hash.c \
61 HTMLparser.c \
62 HTMLtree.c \
63 legacy.c \
64 list.c \
65 parser.c \
66 parserInternals.c \
67 pattern.c \
68 relaxng.c \
69 SAX2.c \
70 SAX.c \
71 schematron.c \
72 threads.c \
73 tree.c \
74 uri.c \
75 valid.c \
76 xinclude.c \
77 xlink.c \
78 xmlIO.c \
79 xmlmemory.c \
80 xmlreader.c \
81 xmlregexp.c \
82 xmlsave.c \
83 xmlschemas.c \
84 xmlschemastypes.c \
85 xmlunicode.c \
86 xmlwriter.c \
87 xpath.c \
88 xpointer.c \
89 xmlstring.c
90
91# For linking:
92# VBox-libxml2_LDFLAGS.win = /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
93# VBox-libxml2_SDKS.win += WINPSDK
94
95ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
96 LIBRARIES += VBox-libxml2-x86
97 VBox-libxml2-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
98 VBox-libxml2-x86_EXTENDS = VBox-libxml2
99endif
100
101LIBRARIES += VBox-libxml2-static
102VBox-libxml2-static_TEMPLATE = VBoxR3StaticNonPedantic
103VBox-libxml2-static_EXTENDS = VBox-libxml2
104
105
106include $(FILE_KBUILD_SUB_FOOTER)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette