1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions( 6 -D__WINESRC__ 7 -D_WINE) 8 9include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 10spec2def(winhttp.dll winhttp.spec ADD_IMPORTLIB) 11 12list(APPEND SOURCE 13 cookie.c 14 handle.c 15 main.c 16 net.c 17 request.c 18 session.c 19 url.c 20 winhttp_private.h) 21 22set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winhttp_tlb.tlb) 23add_typelib(winhttp_tlb.idl) 24 25add_library(winhttp SHARED 26 ${SOURCE} 27 rsrc.rc 28 ${CMAKE_CURRENT_BINARY_DIR}/winhttp.def) 29 30set_module_type(winhttp win32dll) 31target_link_libraries(winhttp uuid wine) 32add_delay_importlibs(winhttp oleaut32 ole32 crypt32 secur32) 33add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy kernel32_vista msvcrt kernel32 ntdll) 34add_dependencies(winhttp stdole2) 35add_pch(winhttp winhttp_private.h SOURCE) 36add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all) 37