1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 6add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T) 7spec2def(msi.dll msi.spec ADD_IMPORTLIB) 8generate_idl_iids(msiserver.idl) 9 10list(APPEND SOURCE 11 action.c 12 alter.c 13 appsearch.c 14 assembly.c 15 automation.c 16 classes.c 17 cond.tab.c 18 create.c 19 custom.c 20 database.c 21 delete.c 22 dialog.c 23 distinct.c 24 drop.c 25 files.c 26 font.c 27 format.c 28 handle.c 29 insert.c 30 install.c 31 media.c 32 msi.c 33 msi_main.c 34 msiquery.c 35 package.c 36 patch.c 37 record.c 38 registry.c 39 script.c 40 select.c 41 source.c 42 sql.tab.c 43 storages.c 44 streams.c 45 string.c 46 suminfo.c 47 table.c 48 tokenize.c 49 update.c 50 upgrade.c 51 where.c 52 msipriv.h) 53 54add_library(msi SHARED 55 ${SOURCE} 56 ${CMAKE_CURRENT_BINARY_DIR}/msiserver_i.c 57 ${CMAKE_CURRENT_BINARY_DIR}/msi_stubs.c 58 msi.rc 59 ${CMAKE_CURRENT_BINARY_DIR}/msi.def) 60 61add_idl_headers(msi_idlheader msiserver.idl) 62add_typelib(msiserver.idl) 63set_source_files_properties(msi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msiserver.tlb) 64set_module_type(msi win32dll) 65target_link_libraries(msi uuid ${PSEH_LIB} wine) 66add_dependencies(msi msi_idlheader) 67add_delay_importlibs(msi odbccp32 crypt32 wintrust) 68add_importlibs(msi advapi32 advapi32_vista cabinet comctl32 gdi32 ole32 oleaut32 shell32 shlwapi urlmon user32 version wininet mspatcha 69 #FIXME : should be in delayed imports 70 imagehlp 71 msvcrt 72 kernel32_vista 73 kernel32 74 ntdll) 75 76add_pch(msi msipriv.h SOURCE) 77add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all) 78