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