2011-05-16 13:12:07 +00:00
|
|
|
|
2017-09-24 11:17:43 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2012-07-14 16:13:51 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_WINE)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(winhttp.dll winhttp.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
cookie.c
|
|
|
|
handle.c
|
|
|
|
main.c
|
|
|
|
net.c
|
|
|
|
request.c
|
|
|
|
session.c
|
|
|
|
url.c
|
2018-03-24 12:15:44 +00:00
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-07-14 16:13:51 +00:00
|
|
|
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winhttp_tlb.tlb)
|
2013-09-28 15:23:56 +00:00
|
|
|
add_typelib(winhttp_tlb.idl)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
|
|
|
add_library(winhttp SHARED
|
|
|
|
${SOURCE}
|
|
|
|
rsrc.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winhttp.def)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(winhttp win32dll)
|
2012-07-14 16:13:51 +00:00
|
|
|
target_link_libraries(winhttp uuid wine)
|
2013-05-21 20:06:46 +00:00
|
|
|
add_delay_importlibs(winhttp oleaut32 ole32 crypt32 secur32)
|
2017-09-24 11:17:43 +00:00
|
|
|
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy kernel32_vista msvcrt kernel32 ntdll)
|
2014-10-17 23:28:29 +00:00
|
|
|
add_dependencies(winhttp stdole2)
|
2018-03-24 12:15:44 +00:00
|
|
|
add_pch(winhttp precomp.h SOURCE)
|
2012-07-14 16:13:51 +00:00
|
|
|
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
|