mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00

- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
63 lines
1.6 KiB
CMake
63 lines
1.6 KiB
CMake
list(APPEND SOURCE
|
|
connpt.c
|
|
dispatch.c
|
|
hash.c
|
|
oleaut.c
|
|
olefont.c
|
|
olepicture.c
|
|
recinfo.c
|
|
regsvr.c
|
|
safearray.c
|
|
stubs.c
|
|
tmarshal.c
|
|
typelib.c
|
|
typelib2.c
|
|
ungif.c
|
|
usrmarshal.c
|
|
varformat.c
|
|
variant.c
|
|
vartype.c
|
|
oleaut32.rc
|
|
oleaut32_oaidl.idl
|
|
${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
add_definitions(-D__WINESRC__)
|
|
#FIXME: this should be quotes enclosed
|
|
add_definitions(-DPROXY_CLSID_IS={0xb196b286,0xbab4,0x101a,{0xb6,0x9c,0x00,0xaa,0x00,0x34,0x1d,0x07}})
|
|
#add_definitions(-DPROXY_CLSID_IS="{0xb196b286,0xbab4,0x101a,{0xb6,0x9c,0x00,0xaa,0x00,0x34,0x1d,0x07}}")
|
|
|
|
add_definitions(-DCOM_NO_WINDOWS_H)
|
|
add_definitions(-D_OLEAUT32_)
|
|
add_definitions(-DPROXY_DELEGATION)
|
|
add_definitions(-DREGISTER_PROXY_DLL)
|
|
add_definitions(-DENTRY_PREFIX=OLEAUTPS_)
|
|
if(MSC)
|
|
# seems to work, but is this correct ?
|
|
# <compilerflag compilerset="msc">/FIwine/typeof.h</compilerflag>
|
|
add_definitions(/FIwine/typeof.h)
|
|
endif(MSC)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(oleaut32.dll oleaut32.spec)
|
|
|
|
add_library(oleaut32 SHARED ${SOURCE})
|
|
|
|
set_module_type(oleaut32 win32dll)
|
|
|
|
target_link_libraries(oleaut32
|
|
oleaut32_proxy
|
|
wine
|
|
wineldr
|
|
uuid
|
|
pseh)
|
|
|
|
add_importlibs(oleaut32 windowscodecs ole32 rpcrt4 user32 gdi32 advapi32 comctl32 urlmon msvcrt kernel32 ntdll)
|
|
|
|
|
|
rpcproxy(oleaut32 oleaut32_oaidl.idl oleaut32_ocidl.idl)
|
|
|
|
add_cab_target(oleaut32 1)
|