1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions( 6 -D__WINESRC__ 7 -D__ROS_LONG64__ 8 -DCOM_NO_WINDOWS_H) 9 10include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 11add_idl_headers(mshtml_nsiface_header nsiface.idl) 12spec2def(mshtml.dll mshtml.spec ADD_IMPORTLIB) 13 14if(MSVC) 15 # error C4028: formal parameter 3 different from declaration 16 replace_compile_flags("/we4028" " ") 17endif() 18 19list(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 93if(MSVC) 94 add_asm_files(mshtml_asm msvc.S) 95endif() 96 97list(APPEND PCH_SKIP_SOURCE 98 guid.c 99 ${CMAKE_CURRENT_BINARY_DIR}/mshtml_stubs.c) 100 101add_library(mshtml MODULE 102 ${SOURCE} 103 ${mshtml_asm} 104 ${PCH_SKIP_SOURCE} 105 rsrc.rc 106 ${CMAKE_CURRENT_BINARY_DIR}/mshtml.def) 107 108list(APPEND mshtml_rc_deps 109 ${CMAKE_CURRENT_SOURCE_DIR}/blank.htm 110 ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.inf 111 ${CMAKE_CURRENT_SOURCE_DIR}/mshtml_classes.rgs) 112 113set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${mshtml_rc_deps}") 114set_module_type(mshtml win32dll) 115target_link_libraries(mshtml uuid wine strmiids oldnames) 116add_delay_importlibs(mshtml wininet) 117add_importlibs(mshtml urlmon shlwapi shell32 ole32 oleaut32 user32 gdi32 advapi32 msvcrt kernel32 ntdll) 118add_dependencies(mshtml mshtml_nsiface_header) 119add_pch(mshtml mshtml_private.h "${PCH_SKIP_SOURCE}") 120add_cd_file(TARGET mshtml DESTINATION reactos/system32 FOR all) 121