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