[CMAKE]
[reactos.git] / reactos / dll / win32 / mshtml / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(-D__WINESRC__)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 add_idl_Headers(mshtml_nsiface_header nsiface.idl)
9
10 set_rc_compiler()
11
12 spec2def(mshtml.dll mshtml.spec GENERATE_STUBS)
13
14 list(APPEND SOURCE
15 conpoint.c
16 dispex.c
17 editor.c
18 hlink.c
19 htmlanchor.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 htmlevent.c
31 htmlform.c
32 htmlframe.c
33 htmlframebase.c
34 htmlgeneric.c
35 htmliframe.c
36 htmlimg.c
37 htmlinput.c
38 htmllocation.c
39 htmlnode.c
40 htmloption.c
41 htmlscreen.c
42 htmlscript.c
43 htmlselect.c
44 htmlstyle.c
45 htmlstyle2.c
46 htmlstyle3.c
47 htmlstylesheet.c
48 htmltable.c
49 htmltablerow.c
50 htmltextarea.c
51 htmltextcont.c
52 htmltextnode.c
53 htmlwindow.c
54 install.c
55 loadopts.c
56 main.c
57 mutation.c
58 navigate.c
59 nsembed.c
60 nsevents.c
61 nsio.c
62 nsservice.c
63 olecmd.c
64 oleobj.c
65 olewnd.c
66 omnavigator.c
67 persist.c
68 protocol.c
69 script.c
70 secmgr.c
71 selection.c
72 service.c
73 task.c
74 txtrange.c
75 view.c
76 rsrc.rc
77 ${CMAKE_CURRENT_BINARY_DIR}/mshtml_stubs.c
78 ${CMAKE_CURRENT_BINARY_DIR}/mshtml.def)
79
80 add_library(mshtml SHARED ${SOURCE})
81
82 set_module_type(mshtml win32dll)
83
84 target_link_libraries(mshtml
85 uuid
86 wine
87 strmiids
88 oldnames)
89
90 add_importlibs(mshtml
91 urlmon
92 shlwapi
93 ole32
94 oleaut32
95 user32
96 gdi32
97 advapi32
98 wininet
99 msvcrt
100 kernel32
101 ntdll)
102
103 add_dependencies(mshtml mshtml_nsiface_header)
104 add_cd_file(TARGET mshtml DESTINATION reactos/system32 FOR all)