[rshell]
[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(${REACTOS_SOURCE_DIR}/include/reactos/wine)
13 spec2def(msxml3.dll msxml3.spec ADD_IMPORTLIB)
14 add_typelib(msxml3_v1.idl)
15
16 list(APPEND SOURCE
17 attribute.c
18 bsc.c
19 cdata.c
20 comment.c
21 dispex.c
22 docfrag.c
23 doctype.c
24 domdoc.c
25 domimpl.c
26 element.c
27 entityref.c
28 factory.c
29 httprequest.c
30 main.c
31 mxnamespace.c
32 mxwriter.c
33 node.c
34 nodelist.c
35 nodemap.c
36 parseerror.c
37 pi.c
38 saxreader.c
39 schema.c
40 selection.c
41 stylesheet.c
42 text.c
43 uuid.c
44 xdr.c
45 xmldoc.c
46 xmlelem.c
47 xmlparser.c
48 xmlview.c
49 xslpattern.tab.c
50 xslpattern.yy.c
51 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c
52 ${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
53
54 list(APPEND msxml3_rc_deps
55 ${CMAKE_CURRENT_SOURCE_DIR}/msxml3.manifest
56 ${CMAKE_CURRENT_SOURCE_DIR}/msxml3_v1.rgs
57 ${CMAKE_CURRENT_SOURCE_DIR}/xmlparser.rgs
58 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_v1.tlb)
59
60 set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${msxml3_rc_deps}")
61 add_library(msxml3 SHARED ${SOURCE} version.rc)
62 add_idl_headers(xmlparser_idlheader xmlparser.idl)
63 set_module_type(msxml3 win32dll)
64 target_link_libraries(msxml3 libxml2 uuid wine)
65 add_importlibs(msxml3 urlmon ws2_32 shlwapi oleaut32 ole32 user32 msvcrt kernel32 ntdll)
66 add_dependencies(msxml3 xmlparser_idlheader stdole2) # msxml3_v1.tlb needs stdole2.tlb
67 add_cd_file(TARGET msxml3 DESTINATION reactos/system32 FOR all)