2011-05-16 13:12:07 +00:00
|
|
|
|
2014-03-05 10:42:27 +00:00
|
|
|
include_directories(
|
|
|
|
include
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__MINGW32__
|
|
|
|
-DLIBXML_STATIC
|
|
|
|
-D_REENTRANT
|
|
|
|
-DHAVE_WIN32_THREADS
|
|
|
|
-D_MBCS
|
|
|
|
-D_WINDOWS
|
|
|
|
-DWIN32
|
|
|
|
-DHAVE_CONFIG_H
|
2014-03-05 10:42:27 +00:00
|
|
|
-DICONV_CONST=const
|
2011-05-16 13:12:07 +00:00
|
|
|
-D_DLL -D__USE_CRTIMP)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2013-02-09 14:08:22 +00:00
|
|
|
buf.c
|
2011-05-16 13:12:07 +00:00
|
|
|
c14n.c
|
|
|
|
catalog.c
|
|
|
|
chvalid.c
|
|
|
|
debugXML.c
|
|
|
|
dict.c
|
|
|
|
DOCBparser.c
|
|
|
|
encoding.c
|
|
|
|
entities.c
|
|
|
|
error.c
|
|
|
|
globals.c
|
|
|
|
hash.c
|
|
|
|
HTMLparser.c
|
|
|
|
HTMLtree.c
|
|
|
|
legacy.c
|
|
|
|
list.c
|
|
|
|
nanoftp.c
|
|
|
|
nanohttp.c
|
|
|
|
parser.c
|
|
|
|
parserInternals.c
|
|
|
|
pattern.c
|
|
|
|
relaxng.c
|
|
|
|
SAX.c
|
|
|
|
SAX2.c
|
|
|
|
threads.c
|
|
|
|
tree.c
|
|
|
|
uri.c
|
|
|
|
valid.c
|
|
|
|
xinclude.c
|
|
|
|
xlink.c
|
|
|
|
xmlIO.c
|
|
|
|
xmlmemory.c
|
|
|
|
xmlreader.c
|
|
|
|
xmlregexp.c
|
|
|
|
xmlmodule.c
|
|
|
|
xmlsave.c
|
|
|
|
xmlschemas.c
|
|
|
|
xmlschemastypes.c
|
|
|
|
xmlunicode.c
|
|
|
|
xmlwriter.c
|
|
|
|
xpath.c
|
|
|
|
xpointer.c
|
2014-02-09 21:43:42 +00:00
|
|
|
xmlstring.c
|
|
|
|
libxml.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(libxml2 ${SOURCE})
|
2011-09-04 17:32:30 +00:00
|
|
|
|
2022-05-25 22:37:23 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
2020-02-24 11:36:05 +00:00
|
|
|
# Unreferenced local variable
|
2020-09-18 09:49:18 +00:00
|
|
|
remove_target_compile_option(libxml2 "/we4101")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(libxml2 PRIVATE "/wd4101")
|
2015-10-18 08:39:56 +00:00
|
|
|
# Local variable initialized but not referenced
|
2020-09-18 09:49:18 +00:00
|
|
|
remove_target_compile_option(libxml2 "/we4189")
|
2015-05-09 22:44:52 +00:00
|
|
|
else()
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(libxml2 PRIVATE "-w")
|
2011-09-04 17:32:30 +00:00
|
|
|
endif()
|
2017-12-03 22:30:10 +00:00
|
|
|
|
|
|
|
target_link_libraries(libxml2 oldnames)
|
|
|
|
add_pch(libxml2 libxml.h SOURCE)
|
|
|
|
add_dependencies(libxml2 psdk)
|