VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.4/Makefile.kmk@ 92274

Last change on this file since 92274 was 87129, checked in by vboxsync, 4 years ago

libxml2,Config.kmk: clang warning. bugref:9898

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 87129 2020-12-25 13:40:08Z 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.virtualbox.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
21ifndef VBOX_ONLY_VALIDATIONKIT
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'
42endif
43ifn1of ($(KBUILD_TARGET), win)
44 VBox-libxml2_CFLAGS = -Wno-format-security -Wno-strict-prototypes -Wno-format-extra-args $(VBOX_GCC_Wno-tautological-pointer-compare)
45endif
46VBox-libxml2_INCS = include
47VBox-libxml2_SOURCES = \
48 buf.c \
49 c14n.c \
50 catalog.c \
51 chvalid.c \
52 debugXML.c \
53 dict.c \
54 DOCBparser.c \
55 encoding.c \
56 entities.c \
57 error.c \
58 globals.c \
59 hash.c \
60 HTMLparser.c \
61 HTMLtree.c \
62 legacy.c \
63 list.c \
64 parser.c \
65 parserInternals.c \
66 pattern.c \
67 relaxng.c \
68 SAX2.c \
69 SAX.c \
70 schematron.c \
71 threads.c \
72 tree.c \
73 uri.c \
74 valid.c \
75 xinclude.c \
76 xlink.c \
77 xmlIO.c \
78 xmlmemory.c \
79 xmlreader.c \
80 xmlregexp.c \
81 xmlsave.c \
82 xmlschemas.c \
83 xmlschemastypes.c \
84 xmlunicode.c \
85 xmlwriter.c \
86 xpath.c \
87 xpointer.c \
88 xmlstring.c
89
90# For linking:
91# VBox-libxml2_LDFLAGS.win = /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
92# VBox-libxml2_SDKS.win += WINPSDK
93
94ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
95 LIBRARIES += VBox-libxml2-x86
96 VBox-libxml2-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
97 VBox-libxml2-x86_EXTENDS = VBox-libxml2
98endif
99
100LIBRARIES += VBox-libxml2-static
101VBox-libxml2-static_TEMPLATE = VBoxR3StaticNonPedantic
102VBox-libxml2-static_EXTENDS = VBox-libxml2
103
104
105include $(FILE_KBUILD_SUB_FOOTER)
106
Note: See TracBrowser for help on using the repository browser.

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