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