7854983009b8d36f697918f52980e14a43e1f523
[reactos.git] / dll / win32 / oleaut32 / CMakeLists.txt
1 list(APPEND SOURCE
2 connpt.c
3 dispatch.c
4 hash.c
5 oleaut.c
6 olefont.c
7 olepicture.c
8 recinfo.c
9 regsvr.c
10 safearray.c
11 stubs.c
12 tmarshal.c
13 typelib.c
14 typelib2.c
15 ungif.c
16 usrmarshal.c
17 varformat.c
18 variant.c
19 vartype.c
20 oleaut32.rc
21 oleaut32_oaidl.idl)
22
23 remove_definitions(-D_WIN32_WINNT=0x502)
24 add_definitions(-D_WIN32_WINNT=0x600)
25 add_definitions(-D__WINESRC__)
26 add_definitions(-DPROXY_CLSID_IS={0xb196b286,0xbab4,0x101a,{0xb6,0x9c,0x00,0xaa,0x00,0x34,0x1d,0x07}})
27 add_definitions(-DCOM_NO_WINDOWS_H)
28 add_definitions(-D_OLEAUT32_)
29 add_definitions(-DPROXY_DELEGATION)
30 add_definitions(-DREGISTER_PROXY_DLL)
31 add_definitions(-DENTRY_PREFIX=OLEAUTPS_)
32 if(MSC)
33 # seems to work, but is this correct ?
34 # <compilerflag compilerset="msc">/FIwine/typeof.h</compilerflag>
35 add_definitions(/FIwine/typeof.h)
36 endif(MSC)
37
38 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg)
39 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
40
41 spec2def(oleaut32 ${CMAKE_CURRENT_SOURCE_DIR}/oleaut32.spec ${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
42
43 add_library(oleaut32 SHARED ${SOURCE})
44
45 set_module_type(oleaut32 win32dll)
46
47 target_link_libraries(oleaut32
48 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def
49 oleaut32_proxy
50 wine
51 wineldr
52 uuid
53 pseh)
54
55 add_importlibs(oleaut32 windowscodecs ole32 rpcrt4 user32 gdi32 advapi32 comctl32 urlmon msvcrt kernel32 ntdll)
56 add_dependencies(oleaut32 oleaut32_def)
57
58 rpcproxy(oleaut32 oleaut32_oaidl.idl oleaut32_ocidl.idl)
59