1 2add_definitions( 3 -D__WINESRC__ 4 -D_SHDOCVW_) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(shdocvw.dll shdocvw.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 shdocvw_main.c 11 shlinstobj.c 12 precomp.h 13 ${CMAKE_CURRENT_BINARY_DIR}/shdocvw_stubs.c) 14 15add_typelib(shdocvw_v1.idl) 16set_source_files_properties(shdocvw.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/shdocvw_v1.tlb) 17 18add_library(shdocvw MODULE 19 ${SOURCE} 20 mrulist.cpp 21 shdocvw.rc 22 ${CMAKE_CURRENT_BINARY_DIR}/shdocvw.def) 23 24set_module_type(shdocvw win32dll) 25target_link_libraries(shdocvw uuid wine) 26add_delay_importlibs(shdocvw shell32 ole32 oleaut32 ieframe) 27add_importlibs(shdocvw shlwapi advapi32 msvcrt kernel32 ntdll) 28add_dependencies(shdocvw stdole2) 29add_pch(shdocvw precomp.h SOURCE) 30add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all) 31