1 | # $Id: Makefile.kmk 49108 2013-10-15 08:39:07Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the libxml2 library.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2007-2012 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_TESTSUITE
|
---|
22 | LIBRARIES += VBox-libxml2
|
---|
23 | endif
|
---|
24 | VBox-libxml2_TEMPLATE = VBOXR3NP
|
---|
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
|
---|
32 | endif
|
---|
33 | VBox-libxml2_INCS = include
|
---|
34 | VBox-libxml2_SOURCES = \
|
---|
35 | c14n.c \
|
---|
36 | catalog.c \
|
---|
37 | chvalid.c \
|
---|
38 | debugXML.c \
|
---|
39 | dict.c \
|
---|
40 | DOCBparser.c \
|
---|
41 | encoding.c \
|
---|
42 | entities.c \
|
---|
43 | error.c \
|
---|
44 | globals.c \
|
---|
45 | hash.c \
|
---|
46 | HTMLparser.c \
|
---|
47 | HTMLtree.c \
|
---|
48 | legacy.c \
|
---|
49 | list.c \
|
---|
50 | parser.c \
|
---|
51 | parserInternals.c \
|
---|
52 | pattern.c \
|
---|
53 | relaxng.c \
|
---|
54 | SAX2.c \
|
---|
55 | SAX.c \
|
---|
56 | schematron.c \
|
---|
57 | threads.c \
|
---|
58 | tree.c \
|
---|
59 | uri.c \
|
---|
60 | valid.c \
|
---|
61 | xinclude.c \
|
---|
62 | xlink.c \
|
---|
63 | xmlIO.c \
|
---|
64 | xmlmemory.c \
|
---|
65 | xmlreader.c \
|
---|
66 | xmlregexp.c \
|
---|
67 | xmlsave.c \
|
---|
68 | xmlschemas.c \
|
---|
69 | xmlschemastypes.c \
|
---|
70 | xmlunicode.c \
|
---|
71 | xmlwriter.c \
|
---|
72 | xpath.c \
|
---|
73 | xpointer.c \
|
---|
74 | xmlstring.c
|
---|
75 |
|
---|
76 | # xmlmodule.c - not compiling this.
|
---|
77 |
|
---|
78 | # For linking:
|
---|
79 | # VBox-libxml2_LDFLAGS.win = /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
|
---|
80 | # VBox-libxml2_SDKS.win += WINPSDK
|
---|
81 |
|
---|
82 | ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
|
---|
83 | LIBRARIES += VBox-libxml2-x86
|
---|
84 | VBox-libxml2-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
|
---|
85 | VBox-libxml2-x86_EXTENDS = VBox-libxml2
|
---|
86 | endif
|
---|
87 |
|
---|
88 | LIBRARIES += VBox-libxml2-static
|
---|
89 | VBox-libxml2-static_TEMPLATE = VBOXR3STATIC
|
---|
90 | VBox-libxml2-static_EXTENDS = VBox-libxml2
|
---|
91 |
|
---|
92 |
|
---|
93 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
94 |
|
---|