[BLUE] Improve initialization and interfacing with INBV.
[reactos.git] / dll / win32 / msxml3 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_WINE
5 -DLIBXML_STATIC
6 -DCOM_NO_WINDOWS_H)
7
8 if(MSVC)
9 add_compile_flags("/FIwine/typeof.h /FImsvc.h")
10 endif()
11
12 include_directories(
13 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
14 ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv)
15
16 spec2def(msxml3.dll msxml3.spec ADD_IMPORTLIB NO_PRIVATE_WARNINGS)
17 add_typelib(msxml3_v1.idl)
18
19 list(APPEND SOURCE
20 attribute.c
21 bsc.c
22 cdata.c
23 comment.c
24 dispex.c
25 docfrag.c
26 doctype.c
27 domdoc.c
28 domimpl.c
29 element.c
30 entityref.c
31 httprequest.c
32 main.c
33 mxnamespace.c
34 mxwriter.c
35 node.c
36 nodelist.c
37 nodemap.c
38 parseerror.c
39 pi.c
40 saxreader.c
41 schema.c
42 selection.c
43 stylesheet.c
44 text.c
45 xdr.c
46 xmldoc.c
47 xmlelem.c
48 xmlparser.c
49 xmlview.c
50 precomp.h
51 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c)
52
53 # xslpattern.tab.c/xslpattern.yy.c have been generated with relative file paths...
54 set_source_files_properties(xslpattern.tab.c xslpattern.yy.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
55
56 list(APPEND msxml3_rc_deps
57 ${CMAKE_CURRENT_SOURCE_DIR}/msxml3.manifest
58 ${CMAKE_CURRENT_SOURCE_DIR}/msxml3_v1.rgs
59 ${CMAKE_CURRENT_SOURCE_DIR}/xmlparser.rgs
60 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_v1.tlb)
61
62 set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${msxml3_rc_deps}")
63
64 add_library(msxml3 MODULE
65 ${SOURCE}
66 xslpattern.tab.c
67 xslpattern.yy.c
68 factory.c
69 uuid.c
70 version.rc
71 ${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
72
73 add_idl_headers(xmlparser_idlheader xmlparser.idl)
74 set_module_type(msxml3 win32dll)
75 target_link_libraries(msxml3 libxml2 iconv-static uuid wine zlib)
76 add_importlibs(msxml3 urlmon ws2_32 shlwapi oleaut32 ole32 user32 msvcrt kernel32 ntdll)
77 add_dependencies(msxml3 xmlparser_idlheader stdole2) # msxml3_v1.tlb needs stdole2.tlb
78 add_pch(msxml3 precomp.h SOURCE)
79 add_cd_file(TARGET msxml3 DESTINATION reactos/system32 FOR all)