2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-DENTRY_PREFIX=STI_
|
|
|
|
-DPROXY_DELEGATION
|
|
|
|
-DREGISTER_PROXY_DLL)
|
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
|
|
|
spec2def(sti.dll sti.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
regsvr.c
|
|
|
|
sti.c
|
|
|
|
sti_main.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/sti_wia_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/sti.def)
|
|
|
|
|
|
|
|
add_rpcproxy_files(sti_wia.idl)
|
|
|
|
|
|
|
|
add_library(sti SHARED ${SOURCE})
|
|
|
|
|
|
|
|
set_entrypoint(sti 0)
|
|
|
|
|
|
|
|
target_link_libraries(sti
|
|
|
|
wine
|
|
|
|
uuid
|
|
|
|
${PSEH_LIB})
|
|
|
|
|
|
|
|
add_importlibs(sti
|
|
|
|
ole32
|
|
|
|
oleaut32
|
|
|
|
rpcrt4
|
|
|
|
advapi32
|
2011-06-06 11:44:58 +00:00
|
|
|
msvcrt
|
2011-05-16 13:12:07 +00:00
|
|
|
kernel32
|
|
|
|
ntdll)
|
|
|
|
|
|
|
|
add_cd_file(TARGET sti DESTINATION reactos/system32 FOR all)
|