1 2add_definitions( 3 -D__WINESRC__ 4 -DCOM_NO_WINDOWS_H) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(wuapi.dll wuapi.spec) 8 9list(APPEND SOURCE 10 downloader.c 11 installer.c 12 main.c 13 searcher.c 14 session.c 15 systeminfo.c 16 updates.c 17 precomp.h) 18 19add_typelib(wuapi_tlb.idl) 20set_source_files_properties(wuapi.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wuapi_tlb.tlb) 21 22add_library(wuapi MODULE 23 ${SOURCE} 24 wuapi.rc 25 ${CMAKE_CURRENT_BINARY_DIR}/wuapi.def) 26 27set_module_type(wuapi win32dll) 28target_link_libraries(wuapi uuid wine wuguid) 29add_importlibs(wuapi msvcrt kernel32 ntdll) 30add_dependencies(wuapi stdole2) # wuapi_tlb.tlb needs stdole2.tlb 31add_pch(wuapi precomp.h SOURCE) 32add_cd_file(TARGET wuapi DESTINATION reactos/system32 FOR all) 33