2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2014-10-17 23:28:29 +00:00
|
|
|
add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T)
|
2014-10-05 10:02:34 +00:00
|
|
|
spec2def(msi.dll msi.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
generate_idl_iids(msiserver.idl)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
action.c
|
|
|
|
alter.c
|
|
|
|
appsearch.c
|
2011-06-13 15:31:11 +00:00
|
|
|
assembly.c
|
2011-05-16 13:12:07 +00:00
|
|
|
automation.c
|
|
|
|
classes.c
|
|
|
|
cond.tab.c
|
|
|
|
create.c
|
|
|
|
custom.c
|
|
|
|
database.c
|
|
|
|
delete.c
|
|
|
|
dialog.c
|
|
|
|
distinct.c
|
|
|
|
drop.c
|
|
|
|
files.c
|
|
|
|
font.c
|
|
|
|
format.c
|
|
|
|
handle.c
|
|
|
|
insert.c
|
|
|
|
install.c
|
|
|
|
media.c
|
|
|
|
msi.c
|
|
|
|
msi_main.c
|
|
|
|
msiquery.c
|
|
|
|
package.c
|
2012-01-21 17:19:12 +00:00
|
|
|
patch.c
|
2011-05-16 13:12:07 +00:00
|
|
|
record.c
|
|
|
|
registry.c
|
|
|
|
script.c
|
|
|
|
select.c
|
|
|
|
source.c
|
|
|
|
sql.tab.c
|
|
|
|
storages.c
|
|
|
|
streams.c
|
|
|
|
string.c
|
|
|
|
suminfo.c
|
|
|
|
table.c
|
|
|
|
tokenize.c
|
|
|
|
update.c
|
|
|
|
upgrade.c
|
|
|
|
where.c
|
2014-10-05 09:56:48 +00:00
|
|
|
msipriv.h)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
|
|
|
add_library(msi SHARED
|
|
|
|
${SOURCE}
|
2014-10-05 09:56:48 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msiserver_i.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msi_stubs.c
|
2014-02-10 12:19:56 +00:00
|
|
|
msi.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msi.def)
|
|
|
|
|
2011-09-04 00:52:28 +00:00
|
|
|
add_idl_headers(msi_idlheader msiserver.idl)
|
2012-01-03 00:17:18 +00:00
|
|
|
add_typelib(msiserver.idl)
|
|
|
|
set_source_files_properties(msi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msiserver.tlb)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(msi win32dll)
|
|
|
|
target_link_libraries(msi uuid ${PSEH_LIB} wine)
|
2012-01-03 00:17:18 +00:00
|
|
|
add_dependencies(msi msi_idlheader)
|
2012-04-12 17:08:38 +00:00
|
|
|
add_delay_importlibs(msi odbccp32 crypt32 wintrust)
|
2015-11-21 16:44:38 +00:00
|
|
|
add_importlibs(msi advapi32 advapi32_vista cabinet comctl32 gdi32 ole32 oleaut32 shell32 shlwapi urlmon user32 version wininet mspatcha
|
2014-10-17 23:28:29 +00:00
|
|
|
#FIXME : should be in delayed imports
|
2012-04-12 17:08:38 +00:00
|
|
|
imagehlp
|
2011-05-16 13:12:07 +00:00
|
|
|
msvcrt
|
2014-09-25 18:25:47 +00:00
|
|
|
kernel32_vista
|
2011-05-16 13:12:07 +00:00
|
|
|
kernel32
|
|
|
|
ntdll)
|
|
|
|
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(msi msipriv.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all)
|