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