2011-05-16 13:12:07 +00:00
|
|
|
|
2022-03-13 00:35:24 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -D_CRT_NON_CONFORMING_SWPRINTFS)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2020-03-26 13:40:39 +00:00
|
|
|
add_definitions(-D__WINESRC__ -D__ROS_LONG64__ -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)
|
2022-03-12 14:11:45 +00:00
|
|
|
generate_idl_iids(winemsi.idl)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
create.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
|
|
|
|
storages.c
|
|
|
|
streams.c
|
|
|
|
string.c
|
|
|
|
table.c
|
|
|
|
tokenize.c
|
|
|
|
update.c
|
|
|
|
upgrade.c
|
2020-05-09 21:37:40 +00:00
|
|
|
where.c)
|
|
|
|
|
2022-03-13 23:16:50 +00:00
|
|
|
BISON_TARGET(cond cond.y ${CMAKE_CURRENT_BINARY_DIR}/cond.tab.c)
|
|
|
|
BISON_TARGET(sql sql.y ${CMAKE_CURRENT_BINARY_DIR}/sql.tab.c)
|
2021-01-28 03:36:00 +00:00
|
|
|
|
2022-03-12 14:12:08 +00:00
|
|
|
set(OLD_IDL_FLAGS ${IDL_FLAGS})
|
|
|
|
set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_)
|
|
|
|
add_rpc_files(client winemsi.idl)
|
|
|
|
add_rpc_files(server winemsi.idl)
|
|
|
|
set(IDL_FLAGS ${OLD_IDL_FLAGS})
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
2022-03-13 23:16:47 +00:00
|
|
|
custom.c # Need custom defines for WIN32_NO_STATUS
|
2022-03-13 20:43:46 +00:00
|
|
|
suminfo.c # The only file without NONAMELESSUNION
|
2021-01-28 03:36:00 +00:00
|
|
|
${BISON_cond_OUTPUTS}
|
|
|
|
${BISON_sql_OUTPUTS}
|
2020-05-09 21:37:40 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msiserver_i.c
|
2022-03-12 14:12:08 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winemsi_c.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winemsi_s.c
|
2020-05-09 21:37:40 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msi_stubs.c)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(msi MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
msi.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msi.def)
|
|
|
|
|
2020-09-18 09:49:18 +00:00
|
|
|
if(MSVC)
|
2021-06-29 08:03:28 +00:00
|
|
|
# Disable warning C4090: 'function': different 'const' qualifiers
|
|
|
|
# Disable warning C4133: 'function': incompatible types - from 'UINT *' to 'MSIINSTALLCONTEXT *'
|
|
|
|
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
|
|
|
|
# Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'HANDLE' of greater size
|
|
|
|
target_compile_options(msi PRIVATE /wd4090 /wd4133 /wd4146 /wd4312)
|
2020-09-18 09:49:18 +00:00
|
|
|
endif()
|
|
|
|
|
2022-03-12 14:11:45 +00:00
|
|
|
add_idl_headers(msi_idlheader msiserver.idl winemsi.idl)
|
|
|
|
add_typelib(msiserver.idl winemsi.idl)
|
|
|
|
set_source_files_properties(msi.rc PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/msiserver.tlb;${CMAKE_CURRENT_BINARY_DIR}/winemsi.tlb")
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(msi win32dll)
|
2022-03-13 21:12:17 +00:00
|
|
|
target_link_libraries(msi uuid ${PSEH_LIB} wine_dll_register oldnames)
|
2012-01-03 00:17:18 +00:00
|
|
|
add_dependencies(msi msi_idlheader)
|
2022-09-13 18:46:51 +00:00
|
|
|
add_delay_importlibs(msi odbccp32 crypt32 wintrust apphelp)
|
2022-03-12 23:16:44 +00:00
|
|
|
add_importlibs(msi advapi32 advapi32_vista cabinet comctl32 gdi32 ole32 oleaut32 shell32 shlwapi rpcrt4 urlmon user32 version wininet sxs
|
|
|
|
#FIXME : imagehlp, mspatcha should be in delayed imports
|
2012-04-12 17:08:38 +00:00
|
|
|
imagehlp
|
2022-03-12 23:16:44 +00:00
|
|
|
mspatcha
|
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)
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(msi precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all)
|