2011-05-16 13:12:07 +00:00
|
|
|
|
2012-07-14 16:13:51 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_WINE)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/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
|
2014-02-10 12:19:56 +00:00
|
|
|
winhttp_private.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)
|
2012-07-14 16:13:51 +00:00
|
|
|
add_importlibs(winhttp user32 advapi32 ws2_32 msvcrt kernel32 ntdll)
|
2013-09-28 15:23:56 +00:00
|
|
|
add_dependencies(winhttp stdole2) # wininet_tlb.tlb needs stdole2.tlb
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(winhttp winhttp_private.h SOURCE)
|
2012-07-14 16:13:51 +00:00
|
|
|
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
|