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