Makefile.kmk revision ca5a2137f081a64b7b858fc18c589c4e191ea1b2
# $Id$
## @file
# Sub-Makefile for the libxml2 library.
#
#
# Copyright (C) 2007-2012 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
SUB_DEPTH = ../../..
include $(KBUILD_PATH)/subheader.kmk
LIBRARIES += VBox-libxml2
VBox-libxml2_TEMPLATE = VBOXR3NP
VBox-libxml2_SDKS = VBOX_ZLIB
VBox-libxml2_DEFS = _REENTRANT # the latter triggers thread support, see xmlversion-default.h and win32xmlversion.h.
VBox-libxml2_DEFS.win = WIN32 _WINDOWS _MBCS _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE \
LIBXML_STATIC_FOR_DLL HAVE_WIN32_THREADS HAVE_ZLIB_H
VBox-libxml2_CFLAGS.win.amd64 = -wd4267
ifn1of ($(KBUILD_TARGET), win)
VBox-libxml2_CFLAGS = -Wno-format-security
endif
VBox-libxml2_INCS = include
VBox-libxml2_SOURCES = \
c14n.c \
dict.c \
error.c \
hash.c \
legacy.c \
list.c \
parser.c \
SAX2.c \
SAX.c \
tree.c \
uri.c \
valid.c \
xlink.c \
xmlIO.c \
xpath.c \
# xmlmodule.c - not compiling this.
# For linking:
# VBox-libxml2_LDFLAGS.win = /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
# VBox-libxml2_SDKS.win += WINPSDK
ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
LIBRARIES += VBox-libxml2-x86
VBox-libxml2-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
VBox-libxml2-x86_EXTENDS = VBox-libxml2
endif
LIBRARIES += VBox-libxml2-static
VBox-libxml2-static_TEMPLATE = VBOXR3STATIC
VBox-libxml2-static_EXTENDS = VBox-libxml2
include $(FILE_KBUILD_SUB_FOOTER)