2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_OLE32_
|
2012-12-12 21:01:41 +00:00
|
|
|
-DCOM_NO_WINDOWS_H
|
2011-05-16 13:12:07 +00:00
|
|
|
-DENTRY_PREFIX=OLE32_
|
|
|
|
-DPROXY_CLSID=CLSID_PSFactoryBuffer
|
2012-12-12 21:01:41 +00:00
|
|
|
-DWINE_REGISTER_DLL)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-08-07 00:53:19 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
2012-05-17 15:16:51 +00:00
|
|
|
|
2013-09-26 13:58:03 +00:00
|
|
|
spec2def(ole32.dll ole32.spec ADD_IMPORTLIB)
|
|
|
|
generate_idl_iids(dcom.idl)
|
|
|
|
add_idl_headers(ole32idl dcom.idl irot.idl)
|
2011-08-07 00:53:19 +00:00
|
|
|
add_rpc_files(client irot.idl)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_rpcproxy_files(
|
|
|
|
dcom.idl
|
|
|
|
ole32_unknwn.idl
|
|
|
|
ole32_objidl.idl
|
|
|
|
ole32_oleidl.idl)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
antimoniker.c
|
|
|
|
bindctx.c
|
|
|
|
classmoniker.c
|
|
|
|
clipboard.c
|
|
|
|
comcat.c
|
|
|
|
compobj.c
|
|
|
|
compositemoniker.c
|
|
|
|
datacache.c
|
|
|
|
defaulthandler.c
|
|
|
|
dictionary.c
|
|
|
|
enumx.c
|
|
|
|
errorinfo.c
|
|
|
|
filelockbytes.c
|
|
|
|
filemoniker.c
|
|
|
|
ftmarshal.c
|
|
|
|
git.c
|
|
|
|
hglobalstream.c
|
|
|
|
ifs.c
|
|
|
|
itemmoniker.c
|
|
|
|
marshal.c
|
|
|
|
memlockbytes.c
|
|
|
|
moniker.c
|
|
|
|
ole2.c
|
|
|
|
ole2impl.c
|
2012-05-17 15:16:51 +00:00
|
|
|
ole2stubs.c
|
2011-05-16 13:12:07 +00:00
|
|
|
ole32_main.c
|
|
|
|
oleobj.c
|
|
|
|
oleproxy.c
|
|
|
|
pointermoniker.c
|
|
|
|
rpc.c
|
|
|
|
stg_prop.c
|
|
|
|
stg_stream.c
|
|
|
|
storage32.c
|
|
|
|
stubmanager.c
|
|
|
|
usrmarshal.c
|
2014-02-10 12:19:56 +00:00
|
|
|
precomp.h
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dcom_i.c
|
2014-02-10 12:19:56 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/irot_c.c)
|
|
|
|
|
|
|
|
if(MSVC AND (ARCH STREQUAL "i386"))
|
|
|
|
list(APPEND SOURCE msvc-thiscall.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(ole32 SHARED
|
|
|
|
${SOURCE}
|
|
|
|
guid.c
|
|
|
|
ole32res.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dcom_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ole32_objidl_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ole32_oleidl_p.c
|
2013-09-26 13:58:03 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ole32_unknwn_p.c
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ole32_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ole32.def)
|
|
|
|
|
|
|
|
set_module_type(ole32 win32dll)
|
2012-05-17 15:16:51 +00:00
|
|
|
target_link_libraries(ole32 wine uuid ${PSEH_LIB})
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlibs(ole32 advapi32 user32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
|
2012-12-12 21:01:41 +00:00
|
|
|
add_delay_importlibs(ole32 oleaut32)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(ole32 ole32idl)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(ole32 precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET ole32 DESTINATION reactos/system32 FOR all)
|