2011-05-16 13:12:07 +00:00
|
|
|
|
2011-06-21 13:22:07 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-DCOM_NO_WINDOWS_H
|
|
|
|
-D_OLEAUT32_
|
|
|
|
-DPROXY_DELEGATION
|
2012-12-12 13:52:25 +00:00
|
|
|
-DWINE_REGISTER_DLL
|
|
|
|
-DENTRY_PREFIX=OLEAUTPS_
|
|
|
|
-DPROXY_CLSID=CLSID_PSFactoryBuffer)
|
2011-06-21 13:22:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB)
|
2011-06-21 13:22:07 +00:00
|
|
|
add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
connpt.c
|
|
|
|
dispatch.c
|
|
|
|
hash.c
|
|
|
|
oleaut.c
|
|
|
|
olefont.c
|
|
|
|
olepicture.c
|
2012-12-12 13:52:25 +00:00
|
|
|
olepropframe.c
|
2011-05-16 13:12:07 +00:00
|
|
|
recinfo.c
|
|
|
|
safearray.c
|
|
|
|
tmarshal.c
|
|
|
|
typelib.c
|
|
|
|
usrmarshal.c
|
|
|
|
varformat.c
|
|
|
|
variant.c
|
|
|
|
vartype.c
|
2014-02-10 12:19:56 +00:00
|
|
|
precomp.h)
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
add_asm_files(oleaut32_asm msvc.S)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(oleaut32 SHARED
|
|
|
|
${SOURCE}
|
|
|
|
${oleaut32_asm}
|
2011-05-16 13:12:07 +00:00
|
|
|
oleaut32.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleaut32_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleaut32_oaidl_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleaut32_ocidl_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
|
|
|
|
|
2012-12-12 13:52:25 +00:00
|
|
|
add_idl_headers(oleaut32_idlheader oleaut32_oaidl.idl)
|
|
|
|
add_dependencies(oleaut32 oleaut32_idlheader)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(oleaut32 win32dll)
|
2012-12-12 13:52:25 +00:00
|
|
|
target_link_libraries(oleaut32 wine wineldr uuid ${PSEH_LIB})
|
2011-09-04 00:52:28 +00:00
|
|
|
add_delay_importlibs(oleaut32 comctl32 urlmon windowscodecs)
|
2015-11-17 11:59:11 +00:00
|
|
|
add_importlibs(oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 kernel32_vista msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(oleaut32 precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET oleaut32 DESTINATION reactos/system32 FOR all)
|