mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +00:00
23373acbb9
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
36 lines
965 B
CMake
36 lines
965 B
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
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
|
|
precomp.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 MODULE
|
|
${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 ole32 crypt32 secur32)
|
|
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy kernel32_vista msvcrt kernel32 ntdll)
|
|
add_dependencies(winhttp stdole2)
|
|
add_pch(winhttp precomp.h SOURCE)
|
|
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
|