1 | # $Id: Makefile.kmk 62534 2016-07-22 19:30:22Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the libxml2 library.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2016 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 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | ifndef VBOX_ONLY_VALIDATIONKIT
|
---|
22 | LIBRARIES += VBox-libxml2
|
---|
23 | endif
|
---|
24 | VBox-libxml2_TEMPLATE = VBoxR3RuntimeDllNonPedantic
|
---|
25 | VBox-libxml2_SDKS = VBOX_ZLIB
|
---|
26 | VBox-libxml2_DEFS = _REENTRANT # the latter triggers thread support, see xmlversion-default.h and win32xmlversion.h.
|
---|
27 | VBox-libxml2_DEFS.win = WIN32 _WINDOWS _MBCS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE \
|
---|
28 | LIBXML_STATIC_FOR_DLL HAVE_WIN32_THREADS HAVE_ZLIB_H
|
---|
29 | VBox-libxml2_CFLAGS.win.amd64 = -wd4267
|
---|
30 | ifn1of ($(KBUILD_TARGET), win)
|
---|
31 | VBox-libxml2_CFLAGS = -Wno-format-security -Wno-strict-prototypes
|
---|
32 | endif
|
---|
33 | VBox-libxml2_INCS = include
|
---|
34 | VBox-libxml2_SOURCES = \
|
---|
35 | buf.c \
|
---|
36 | c14n.c \
|
---|
37 | catalog.c \
|
---|
38 | chvalid.c \
|
---|
39 | debugXML.c \
|
---|
40 | dict.c \
|
---|
41 | DOCBparser.c \
|
---|
42 | encoding.c \
|
---|
43 | entities.c \
|
---|
44 | error.c \
|
---|
45 | globals.c \
|
---|
46 | hash.c \
|
---|
47 | HTMLparser.c \
|
---|
48 | HTMLtree.c \
|
---|
49 | legacy.c \
|
---|
50 | list.c \
|
---|
51 | parser.c \
|
---|
52 | parserInternals.c \
|
---|
53 | pattern.c \
|
---|
54 | relaxng.c \
|
---|
55 | SAX2.c \
|
---|
56 | SAX.c \
|
---|
57 | schematron.c \
|
---|
58 | threads.c \
|
---|
59 | tree.c \
|
---|
60 | uri.c \
|
---|
61 | valid.c \
|
---|
62 | xinclude.c \
|
---|
63 | xlink.c \
|
---|
64 | xmlIO.c \
|
---|
65 | xmlmemory.c \
|
---|
66 | xmlreader.c \
|
---|
67 | xmlregexp.c \
|
---|
68 | xmlsave.c \
|
---|
69 | xmlschemas.c \
|
---|
70 | xmlschemastypes.c \
|
---|
71 | xmlunicode.c \
|
---|
72 | xmlwriter.c \
|
---|
73 | xpath.c \
|
---|
74 | xpointer.c \
|
---|
75 | xmlstring.c
|
---|
76 |
|
---|
77 | # For linking:
|
---|
78 | # VBox-libxml2_LDFLAGS.win = /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
|
---|
79 | # VBox-libxml2_SDKS.win += WINPSDK
|
---|
80 |
|
---|
81 | ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
|
---|
82 | LIBRARIES += VBox-libxml2-x86
|
---|
83 | VBox-libxml2-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
|
---|
84 | VBox-libxml2-x86_EXTENDS = VBox-libxml2
|
---|
85 | endif
|
---|
86 |
|
---|
87 | LIBRARIES += VBox-libxml2-static
|
---|
88 | VBox-libxml2-static_TEMPLATE = VBOXR3STATIC
|
---|
89 | VBox-libxml2-static_EXTENDS = VBox-libxml2
|
---|
90 |
|
---|
91 |
|
---|
92 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
93 |
|
---|