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