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(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
15 spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB)
16 add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl)
37 add_asm_files(oleaut32_asm msvc.S)
40 add_library(oleaut32 SHARED
44 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_stubs.c
45 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
46 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_oaidl_p.c
47 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_ocidl_p.c
48 ${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
50 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
51 target_link_libraries(oleaut32 mingwex)
52 #FIXME: http://llvm.org/bugs/show_bug.cgi?id=19027
53 set_property(SOURCE vartype.c APPEND_STRING PROPERTY COMPILE_FLAGS " -no-integrated-as")
56 add_idl_headers(oleaut32_idlheader oleaut32_oaidl.idl)
57 add_dependencies(oleaut32 oleaut32_idlheader)
58 set_module_type(oleaut32 win32dll)
59 target_link_libraries(oleaut32 wine wineldr uuid ${PSEH_LIB})
60 add_delay_importlibs(oleaut32 comctl32 urlmon windowscodecs)
61 add_importlibs(oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 kernel32_vista msvcrt kernel32 ntdll)
62 add_pch(oleaut32 precomp.h SOURCE)
63 add_cd_file(TARGET oleaut32 DESTINATION reactos/system32 FOR all)