mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 18:24:24 +00:00
5690b9a8d2
which I could observe all the way from releases/0.4.7 up to releases/0.4.14 with MSVC 2010SP1 (16.0.40219.1) x86 target in dbg configuration Creating library dll\win32\winhttp\winhttp.lib and object dll\win32\winhttp\winhttp.exp LINK : warning LNK4199: /DELAYLOAD:ole32.dll ignored; no imports found from ole32.dll Fix picked from 0.4.15-dev-4326-g2f7dc168f2
And just for the record: Wine did the same with their:f400f25c25
34 lines
880 B
CMake
34 lines
880 B
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_WINE)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(winhttp.dll winhttp.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
cookie.c
|
|
handle.c
|
|
main.c
|
|
net.c
|
|
request.c
|
|
session.c
|
|
url.c
|
|
winhttp_private.h)
|
|
|
|
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winhttp_tlb.tlb)
|
|
add_typelib(winhttp_tlb.idl)
|
|
|
|
add_library(winhttp SHARED
|
|
${SOURCE}
|
|
rsrc.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/winhttp.def)
|
|
|
|
set_module_type(winhttp win32dll)
|
|
target_link_libraries(winhttp uuid wine)
|
|
add_delay_importlibs(winhttp oleaut32 crypt32 secur32)
|
|
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy msvcrt kernel32 ntdll)
|
|
add_dependencies(winhttp stdole2)
|
|
add_pch(winhttp winhttp_private.h SOURCE)
|
|
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
|