[CMAKE]
[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 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
23
24 remove_definitions(-D_WIN32_WINNT=0x502)
25 add_definitions(-D_WIN32_WINNT=0x600)
26 add_definitions(-D__WINESRC__)
27 #FIXME: this should be quotes enclosed
28 add_definitions(-DPROXY_CLSID_IS={0xb196b286,0xbab4,0x101a,{0xb6,0x9c,0x00,0xaa,0x00,0x34,0x1d,0x07}})
29 #add_definitions(-DPROXY_CLSID_IS="{0xb196b286,0xbab4,0x101a,{0xb6,0x9c,0x00,0xaa,0x00,0x34,0x1d,0x07}}")
30
31 add_definitions(-DCOM_NO_WINDOWS_H)
32 add_definitions(-D_OLEAUT32_)
33 add_definitions(-DPROXY_DELEGATION)
34 add_definitions(-DREGISTER_PROXY_DLL)
35 add_definitions(-DENTRY_PREFIX=OLEAUTPS_)
36 if(MSC)
37 # seems to work, but is this correct ?
38 # <compilerflag compilerset="msc">/FIwine/typeof.h</compilerflag>
39 add_definitions(/FIwine/typeof.h)
40 endif(MSC)
41
42 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg)
43 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
44
45 spec2def(oleaut32.dll oleaut32.spec)
46
47 add_library(oleaut32 SHARED ${SOURCE})
48
49 set_module_type(oleaut32 win32dll)
50
51 target_link_libraries(oleaut32
52 oleaut32_proxy
53 wine
54 wineldr
55 uuid
56 pseh)
57
58 add_importlibs(oleaut32 windowscodecs ole32 rpcrt4 user32 gdi32 advapi32 comctl32 urlmon msvcrt kernel32 ntdll)
59
60
61 rpcproxy(oleaut32 oleaut32_oaidl.idl oleaut32_ocidl.idl)
62
63 add_cab_target(oleaut32 1)