Partial merge of the condrv_restructure branch, including:
[reactos.git] / reactos / dll / win32 / ole32 / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(
6 -D__WINESRC__
7 -D_OLE32_
8 -DCOM_NO_WINDOWS_H
9 -DENTRY_PREFIX=OLE32_
10 -DPROXY_CLSID=CLSID_PSFactoryBuffer
11 -DWINE_REGISTER_DLL)
12
13 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
14
15 spec2def(ole32.dll ole32.spec ADD_IMPORTLIB)
16 generate_idl_iids(dcom.idl)
17 add_idl_headers(ole32idl dcom.idl irot.idl)
18 add_rpc_files(client irot.idl)
19
20 add_rpcproxy_files(
21 dcom.idl
22 ole32_unknwn.idl
23 ole32_objidl.idl
24 ole32_oleidl.idl)
25
26 list(APPEND SOURCE
27 antimoniker.c
28 bindctx.c
29 classmoniker.c
30 clipboard.c
31 comcat.c
32 compobj.c
33 compositemoniker.c
34 datacache.c
35 defaulthandler.c
36 dictionary.c
37 enumx.c
38 errorinfo.c
39 filelockbytes.c
40 filemoniker.c
41 ftmarshal.c
42 git.c
43 hglobalstream.c
44 ifs.c
45 itemmoniker.c
46 marshal.c
47 memlockbytes.c
48 moniker.c
49 ole2.c
50 ole2impl.c
51 ole2stubs.c
52 ole32_main.c
53 oleobj.c
54 oleproxy.c
55 pointermoniker.c
56 rpc.c
57 stg_prop.c
58 stg_stream.c
59 storage32.c
60 stubmanager.c
61 usrmarshal.c
62 precomp.h
63 ${CMAKE_CURRENT_BINARY_DIR}/dcom_i.c
64 ${CMAKE_CURRENT_BINARY_DIR}/irot_c.c)
65
66 if(MSVC AND (ARCH STREQUAL "i386"))
67 list(APPEND SOURCE msvc-thiscall.c)
68 endif()
69
70 add_library(ole32 SHARED
71 ${SOURCE}
72 guid.c
73 ole32res.rc
74 ${CMAKE_CURRENT_BINARY_DIR}/dcom_p.c
75 ${CMAKE_CURRENT_BINARY_DIR}/ole32_objidl_p.c
76 ${CMAKE_CURRENT_BINARY_DIR}/ole32_oleidl_p.c
77 ${CMAKE_CURRENT_BINARY_DIR}/ole32_unknwn_p.c
78 ${CMAKE_CURRENT_BINARY_DIR}/ole32_stubs.c
79 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
80 ${CMAKE_CURRENT_BINARY_DIR}/ole32.def)
81
82 set_module_type(ole32 win32dll)
83 target_link_libraries(ole32 wine uuid ${PSEH_LIB})
84 add_importlibs(ole32 advapi32 user32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
85 add_delay_importlibs(ole32 oleaut32)
86 add_dependencies(ole32 ole32idl)
87 add_pch(ole32 precomp.h SOURCE)
88 add_cd_file(TARGET ole32 DESTINATION reactos/system32 FOR all)