2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
11 -DENTRY_PREFIX=OLEAUTPS_
12 -DPROXY_CLSID=CLSID_PSFactoryBuffer)
14 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
16 spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB)
18 add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl)
39 add_asm_files(oleaut32_asm msvc.S)
42 add_library(oleaut32 SHARED
46 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_stubs.c
47 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
48 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_oaidl_p.c
49 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_ocidl_p.c
50 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
52 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
53 target_link_libraries(oleaut32 mingwex)
54 #FIXME: http://llvm.org/bugs/show_bug.cgi?id=19027
55 set_property(SOURCE vartype.c APPEND_STRING PROPERTY COMPILE_FLAGS " -no-integrated-as")
58 add_idl_headers(oleaut32_idlheader oleaut32_oaidl.idl)
59 add_dependencies(oleaut32 oleaut32_idlheader)
60 set_module_type(oleaut32 win32dll)
61 target_link_libraries(oleaut32 wine wineldr uuid ${PSEH_LIB})
62 add_delay_importlibs(oleaut32 comctl32 urlmon windowscodecs)
63 add_importlibs(oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
64 add_pch(oleaut32 precomp.h SOURCE)
65 add_cd_file(TARGET oleaut32 DESTINATION reactos/system32 FOR all)