* Sync up to trunk HEAD (r62286).
[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 htmldoc3.c
25 htmldoc5.c
26 htmlelem.c
27 htmlelem2.c
28 htmlelem3.c
29 htmlelemcol.c
30 htmlembed.c
31 htmlevent.c
32 htmlform.c
33 htmlframe.c
34 htmlframebase.c
35 htmlgeneric.c
36 htmlhead.c
37 htmliframe.c
38 htmlimg.c
39 htmlinput.c
40 htmllink.c
41 htmllocation.c
42 htmlmeta.c
43 htmlnode.c
44 htmlobject.c
45 htmloption.c
46 htmlscreen.c
47 htmlscript.c
48 htmlselect.c
49 htmlstorage.c
50 htmlstyle.c
51 htmlstyle2.c
52 htmlstyle3.c
53 htmlstyleelem.c
54 htmlstylesheet.c
55 htmltable.c
56 htmltablecell.c
57 htmltablerow.c
58 htmltextarea.c
59 htmltextcont.c
60 htmltextnode.c
61 htmlwindow.c
62 ifacewrap.c
63 ipwindow.c
64 loadopts.c
65 main.c
66 mutation.c
67 navigate.c
68 npplugin.c
69 nsembed.c
70 nsevents.c
71 nsio.c
72 nsservice.c
73 olecmd.c
74 oleobj.c
75 olewnd.c
76 omnavigator.c
77 persist.c
78 pluginhost.c
79 propbag.c
80 protocol.c
81 script.c
82 secmgr.c
83 selection.c
84 service.c
85 task.c
86 txtrange.c
87 view.c
88 mshtml_private.h)
89
90 if(MSVC)
91 add_asm_files(mshtml_asm msvc.S)
92 endif()
93
94 add_library(mshtml SHARED
95 ${SOURCE}
96 ${mshtml_asm}
97 guid.c
98 rsrc.rc
99 ${CMAKE_CURRENT_BINARY_DIR}/mshtml_stubs.c
100 ${CMAKE_CURRENT_BINARY_DIR}/mshtml.def)
101
102 list(APPEND mshtml_rc_deps
103 ${CMAKE_CURRENT_SOURCE_DIR}/blank.htm
104 ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.inf
105 ${CMAKE_CURRENT_SOURCE_DIR}/mshtml_classes.rgs)
106
107 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${mshtml_rc_deps}")
108
109 set_module_type(mshtml win32dll)
110 target_link_libraries(mshtml uuid wine strmiids oldnames)
111 add_delay_importlibs(mshtml wininet)
112 add_importlibs(mshtml urlmon shlwapi shell32 ole32 oleaut32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
113 add_dependencies(mshtml mshtml_nsiface_header)
114 add_pch(mshtml mshtml_private.h SOURCE)
115 add_cd_file(TARGET mshtml DESTINATION reactos/system32 FOR all)