* Sync up to trunk head (r64894).
[reactos.git] / dll / win32 / mshtml / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(
6 -D__WINESRC__
7 -DCOM_NO_WINDOWS_H)
8
9 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
10 add_idl_headers(mshtml_nsiface_header nsiface.idl)
11 spec2def(mshtml.dll mshtml.spec)
12
13 list(APPEND SOURCE
14 conpoint.c
15 dispex.c
16 editor.c
17 hlink.c
18 htmlanchor.c
19 htmlattr.c
20 htmlbody.c
21 htmlcomment.c
22 htmlcurstyle.c
23 htmldoc.c
24 htmlelem.c
25 htmlelem2.c
26 htmlelem3.c
27 htmlelemcol.c
28 htmlembed.c
29 htmlevent.c
30 htmlform.c
31 htmlframe.c
32 htmlframebase.c
33 htmlgeneric.c
34 htmlhead.c
35 htmliframe.c
36 htmlimg.c
37 htmlinput.c
38 htmllink.c
39 htmllocation.c
40 htmlmeta.c
41 htmlnode.c
42 htmlobject.c
43 htmloption.c
44 htmlscreen.c
45 htmlscript.c
46 htmlselect.c
47 htmlstorage.c
48 htmlstyle.c
49 htmlstyle2.c
50 htmlstyle3.c
51 htmlstyleelem.c
52 htmlstylesheet.c
53 htmltable.c
54 htmltablecell.c
55 htmltablerow.c
56 htmltextarea.c
57 htmltextcont.c
58 htmltextnode.c
59 htmlwindow.c
60 ifacewrap.c
61 ipwindow.c
62 loadopts.c
63 main.c
64 mutation.c
65 navigate.c
66 npplugin.c
67 nsembed.c
68 nsevents.c
69 nsio.c
70 nsservice.c
71 olecmd.c
72 oleobj.c
73 olewnd.c
74 omnavigator.c
75 persist.c
76 pluginhost.c
77 propbag.c
78 protocol.c
79 script.c
80 secmgr.c
81 selection.c
82 service.c
83 task.c
84 txtrange.c
85 view.c
86 mshtml_private.h)
87
88 if(MSVC)
89 add_asm_files(mshtml_asm msvc.S)
90 endif()
91
92 add_library(mshtml SHARED
93 ${SOURCE}
94 ${mshtml_asm}
95 guid.c
96 rsrc.rc
97 ${CMAKE_CURRENT_BINARY_DIR}/mshtml_stubs.c
98 ${CMAKE_CURRENT_BINARY_DIR}/mshtml.def)
99
100 list(APPEND mshtml_rc_deps
101 ${CMAKE_CURRENT_SOURCE_DIR}/blank.htm
102 ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.inf
103 ${CMAKE_CURRENT_SOURCE_DIR}/mshtml_classes.rgs)
104
105 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${mshtml_rc_deps}")
106 set_module_type(mshtml win32dll)
107 target_link_libraries(mshtml uuid wine strmiids oldnames)
108
109 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
110 target_link_libraries(mshtml mingwex)
111 endif()
112
113 add_delay_importlibs(mshtml wininet)
114 add_importlibs(mshtml urlmon shlwapi shell32 ole32 oleaut32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
115 add_dependencies(mshtml mshtml_nsiface_header)
116 add_pch(mshtml mshtml_private.h SOURCE)
117 add_cd_file(TARGET mshtml DESTINATION reactos/system32 FOR all)