Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira...
[reactos.git] / dll / win32 / msxml3 / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x601)
4
5 add_definitions(
6 -D__WINESRC__
7 -D_WINE
8 -DLIBXML_STATIC
9 -DCOM_NO_WINDOWS_H)
10
11 if(MSVC)
12 add_compile_flags("/FIwine/typeof.h /FImsvc.h")
13 endif()
14
15 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
16
17 spec2def(msxml3.dll msxml3.spec ADD_IMPORTLIB)
18
19 add_typelib(msxml3_v1.idl)
20
21 list(APPEND SOURCE
22 attribute.c
23 bsc.c
24 cdata.c
25 comment.c
26 dispex.c
27 docfrag.c
28 doctype.c
29 domdoc.c
30 domimpl.c
31 element.c
32 entityref.c
33 factory.c
34 httprequest.c
35 main.c
36 mxnamespace.c
37 mxwriter.c
38 node.c
39 nodelist.c
40 nodemap.c
41 parseerror.c
42 pi.c
43 saxreader.c
44 schema.c
45 selection.c
46 stylesheet.c
47 text.c
48 uuid.c
49 xdr.c
50 xmldoc.c
51 xmlelem.c
52 xmlparser.c
53 xmlview.c
54 xslpattern.tab.c
55 xslpattern.yy.c
56 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c
57 ${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
58
59 add_library(msxml3 SHARED ${SOURCE} version.rc)
60
61 if(NOT MSVC)
62 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
63 #allow_warnings(msxml3)
64 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
65 endif()
66
67 add_idl_headers(xmlparser_idlheader xmlparser.idl)
68 add_dependencies(msxml3 xmlparser_idlheader)
69
70 set_module_type(msxml3 win32dll)
71 set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msxml3_v1.tlb)
72 target_link_libraries(msxml3 libxml2 uuid wine wineldr)
73
74 add_importlibs(msxml3 urlmon wininet ws2_32 comctl32 shell32 shlwapi cabinet oleaut32 ole32 version user32 gdi32 advapi32 msvcrt kernel32 ntdll)
75
76 # msxml3_v1.tlb needs stdole2.tlb
77 add_dependencies(msxml3 stdole2)
78
79 add_cd_file(TARGET msxml3 DESTINATION reactos/system32 FOR all)