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