2011-05-16 13:12:07 +00:00
|
|
|
|
2012-06-21 09:05:15 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-DCOM_NO_WINDOWS_H)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2011-05-16 13:12:07 +00:00
|
|
|
spec2def(wuapi.dll wuapi.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
downloader.c
|
|
|
|
installer.c
|
|
|
|
main.c
|
|
|
|
searcher.c
|
|
|
|
session.c
|
2012-06-21 09:05:15 +00:00
|
|
|
systeminfo.c
|
2011-05-16 13:12:07 +00:00
|
|
|
updates.c
|
2014-02-10 12:19:56 +00:00
|
|
|
wuapi_private.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2013-09-28 15:35:15 +00:00
|
|
|
add_typelib(wuapi_tlb.idl)
|
2012-06-21 09:05:15 +00:00
|
|
|
set_source_files_properties(wuapi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wuapi_tlb.tlb)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
|
|
|
add_library(wuapi SHARED
|
|
|
|
${SOURCE}
|
|
|
|
wuapi.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/wuapi.def)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(wuapi win32dll)
|
|
|
|
target_link_libraries(wuapi uuid wine wuguid)
|
2013-09-28 15:35:15 +00:00
|
|
|
add_importlibs(wuapi msvcrt kernel32 ntdll)
|
|
|
|
add_dependencies(wuapi stdole2) # wuapi_tlb.tlb needs stdole2.tlb
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(wuapi wuapi_private.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET wuapi DESTINATION reactos/system32 FOR all)
|