[3RDPARTY] Make some warnings non-fatal
[reactos.git] / 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}/sdk/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 if(MSVC)
11 # error C4133: 'function': incompatible types - from 'UINT *' to 'MSIINSTALLCONTEXT *'
12 replace_compile_flags("/we4133" " ")
13
14 # error C4312: 'type cast': conversion from 'unsigned int' to 'HANDLE' of greater size
15 replace_compile_flags("/we4312" " ")
16 endif()
17
18 list(APPEND SOURCE
19 action.c
20 alter.c
21 appsearch.c
22 assembly.c
23 automation.c
24 classes.c
25 cond.tab.c
26 create.c
27 custom.c
28 database.c
29 delete.c
30 dialog.c
31 distinct.c
32 drop.c
33 files.c
34 font.c
35 format.c
36 handle.c
37 insert.c
38 install.c
39 media.c
40 msi.c
41 msi_main.c
42 msiquery.c
43 package.c
44 patch.c
45 record.c
46 registry.c
47 script.c
48 select.c
49 source.c
50 sql.tab.c
51 storages.c
52 streams.c
53 string.c
54 suminfo.c
55 table.c
56 tokenize.c
57 update.c
58 upgrade.c
59 where.c
60 precomp.h)
61
62 # cond.tab.c/sql.tab.c have been generated with relative file paths...
63 set_source_files_properties(cond.tab.c sql.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
64
65 add_library(msi MODULE
66 ${SOURCE}
67 ${CMAKE_CURRENT_BINARY_DIR}/msiserver_i.c
68 ${CMAKE_CURRENT_BINARY_DIR}/msi_stubs.c
69 msi.rc
70 ${CMAKE_CURRENT_BINARY_DIR}/msi.def)
71
72 add_idl_headers(msi_idlheader msiserver.idl)
73 add_typelib(msiserver.idl)
74 set_source_files_properties(msi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msiserver.tlb)
75 set_module_type(msi win32dll)
76 target_link_libraries(msi uuid ${PSEH_LIB} wine)
77 add_dependencies(msi msi_idlheader)
78 add_delay_importlibs(msi odbccp32 crypt32 wintrust)
79 add_importlibs(msi advapi32 advapi32_vista cabinet comctl32 gdi32 ole32 oleaut32 shell32 shlwapi urlmon user32 version wininet mspatcha
80 #FIXME : should be in delayed imports
81 imagehlp
82 msvcrt
83 kernel32_vista
84 kernel32
85 ntdll)
86
87 #add_pch(msi precomp.h SOURCE)
88 add_cd_file(TARGET msi DESTINATION reactos/system32 FOR all)