xref: /reactos/dll/win32/oleaut32/CMakeLists.txt (revision d2c71d76)
1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x600)
4
5add_definitions(
6    -D__WINESRC__
7    -DCOM_NO_WINDOWS_H
8    -D_OLEAUT32_
9    -DPROXY_DELEGATION
10    -DWINE_REGISTER_DLL
11    -DENTRY_PREFIX=OLEAUTPS_
12    -DPROXY_CLSID=CLSID_PSFactoryBuffer)
13
14include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
15spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB)
16add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl)
17
18list(APPEND SOURCE
19    connpt.c
20    dispatch.c
21    hash.c
22    oleaut.c
23    olefont.c
24    olepicture.c
25    olepropframe.c
26    recinfo.c
27    safearray.c
28    typelib.c
29    usrmarshal.c
30    varformat.c
31    variant.c
32    vartype.c
33    precomp.h)
34
35if(MSVC)
36    add_asm_files(oleaut32_asm msvc.S)
37endif()
38
39add_library(oleaut32 SHARED
40    ${SOURCE}
41    ${oleaut32_asm}
42    oleaut32.rc
43    ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_stubs.c
44    ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
45    ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_oaidl_p.c
46    ${CMAKE_CURRENT_BINARY_DIR}/oleaut32_ocidl_p.c
47    ${CMAKE_CURRENT_BINARY_DIR}/oleaut32.def)
48
49add_idl_headers(oleaut32_idlheader oleaut32_oaidl.idl)
50add_dependencies(oleaut32 oleaut32_idlheader)
51set_module_type(oleaut32 win32dll)
52target_link_libraries(oleaut32 wine wineldr uuid ${PSEH_LIB})
53add_delay_importlibs(oleaut32 comctl32 urlmon windowscodecs)
54add_importlibs(oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 kernel32_vista msvcrt kernel32 ntdll)
55add_pch(oleaut32 precomp.h SOURCE)
56add_cd_file(TARGET oleaut32 DESTINATION reactos/system32 FOR all)
57