3e5247790f2c8b9ef525313ac1a6d34fd91e6511
[reactos.git] / reactos / dll / win32 / msi / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6 add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T)
7 spec2def(msi.dll msi.spec ADD_IMPORTLIB)
8 generate_idl_iids(msiserver.idl)
9
10 list(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
54 add_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
61 add_idl_headers(msi_idlheader msiserver.idl)
62 add_typelib(msiserver.idl)
63 set_source_files_properties(msi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msiserver.tlb)
64 set_module_type(msi win32dll)
65 target_link_libraries(msi uuid ${PSEH_LIB} wine)
66 add_dependencies(msi msi_idlheader)
67 add_delay_importlibs(msi odbccp32 crypt32 wintrust)
68 add_importlibs(msi advapi32 cabinet comctl32 gdi32 ole32 oleaut32 shell32 shlwapi urlmon user32 version wininet
69 #FIXME : should be in delayed imports
70 imagehlp
71 msvcrt
72 kernel32_vista
73 kernel32
74 ntdll)
75
76 add_pch(msi msipriv.h SOURCE)
77 add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all)