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