f3f1305fb84ed58f671e5d233349aba3bf567995
[reactos.git] / reactos / lib / 3rdparty / libxml2 / CMakeLists.txt
1
2 include_directories(
3 include
4 ${REACTOS_SOURCE_DIR}/lib/3rdparty/libwin-iconv)
5
6 add_definitions(
7 -D__MINGW32__
8 -DLIBXML_STATIC
9 -D_REENTRANT
10 -DHAVE_WIN32_THREADS
11 -D_MBCS
12 -D_WINDOWS
13 -DWIN32
14 -DHAVE_CONFIG_H
15 -DLIBXML_ICONV_ENABLED
16 -DICONV_CONST=const
17 -D_DLL -D__USE_CRTIMP)
18
19 list(APPEND SOURCE
20 c14n.c
21 catalog.c
22 chvalid.c
23 debugXML.c
24 dict.c
25 DOCBparser.c
26 encoding.c
27 entities.c
28 error.c
29 globals.c
30 hash.c
31 HTMLparser.c
32 HTMLtree.c
33 legacy.c
34 list.c
35 nanoftp.c
36 nanohttp.c
37 parser.c
38 parserInternals.c
39 pattern.c
40 relaxng.c
41 SAX.c
42 SAX2.c
43 threads.c
44 tree.c
45 uri.c
46 valid.c
47 xinclude.c
48 xlink.c
49 xmlIO.c
50 xmlmemory.c
51 xmlreader.c
52 xmlregexp.c
53 xmlmodule.c
54 xmlsave.c
55 xmlschemas.c
56 xmlschemastypes.c
57 xmlunicode.c
58 xmlwriter.c
59 xpath.c
60 xpointer.c
61 xmlstring.c)
62
63 add_library(libxml2 ${SOURCE})
64 target_link_libraries(libxml2 oldnames)
65 add_dependencies(libxml2 psdk)
66
67 if(NOT MSVC)
68 add_target_compile_flags(libxml2 "-Wno-format -Wno-pointer-sign")
69 allow_warnings(libxml2)
70 endif()