[MSXML3] When renaming an icon identifier in the header, do it in the resource file...
[reactos.git] / reactos / 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}/include/reactos/wine
14 ${REACTOS_SOURCE_DIR}/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 xslpattern.tab.c
51 xslpattern.yy.c
52 precomp.h
53 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_stubs.c)
54
55 list(APPEND msxml3_rc_deps
56 ${CMAKE_CURRENT_SOURCE_DIR}/msxml3.manifest
57 ${CMAKE_CURRENT_SOURCE_DIR}/msxml3_v1.rgs
58 ${CMAKE_CURRENT_SOURCE_DIR}/xmlparser.rgs
59 ${CMAKE_CURRENT_BINARY_DIR}/msxml3_v1.tlb)
60
61 set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${msxml3_rc_deps}")
62
63 add_library(msxml3 SHARED
64 ${SOURCE}
65 factory.c
66 uuid.c
67 version.rc
68 ${CMAKE_CURRENT_BINARY_DIR}/msxml3.def)
69
70 add_idl_headers(xmlparser_idlheader xmlparser.idl)
71 set_module_type(msxml3 win32dll)
72 target_link_libraries(msxml3 libxml2 iconv-static uuid wine zlib)
73 add_importlibs(msxml3 urlmon ws2_32 shlwapi oleaut32 ole32 user32 msvcrt kernel32 ntdll)
74 add_dependencies(msxml3 xmlparser_idlheader stdole2) # msxml3_v1.tlb needs stdole2.tlb
75 add_pch(msxml3 precomp.h SOURCE)
76 add_cd_file(TARGET msxml3 DESTINATION reactos/system32 FOR all)