1 2remove_definitions( 3 -DWINVER=0x502 4 -D_WIN32_WINNT=0x502) 5add_definitions( 6 -DWINVER=0x600 7 -D_WIN32_WINNT=0x600) 8 9add_definitions( 10 -D__WINESRC__ 11 -D_WINE) 12 13spec2def(wininet.dll wininet.spec ADD_IMPORTLIB) 14 15list(APPEND SOURCE 16 cookie.c 17 dialogs.c 18 ftp.c 19 gopher.c 20 http.c 21 internet.c 22 utility.c) 23 24list(APPEND PCH_SKIP_SOURCE 25 # Sometimes wine uses nameless structs & unions. Sometimes not... */ 26 netconnection.c 27 urlcache.c 28 ${CMAKE_CURRENT_BINARY_DIR}/wininet_stubs.c) 29 30add_library(wininet_inflate OBJECT inflate.c) 31target_include_directories(wininet_inflate BEFORE PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 32add_dependencies(wininet_inflate psdk) 33 34add_library(wininet MODULE 35 ${SOURCE} 36 ${PCH_SKIP_SOURCE} 37 $<TARGET_OBJECTS:wininet_inflate> 38 rsrc.rc 39 ${CMAKE_CURRENT_BINARY_DIR}/wininet.def) 40 41if(MSVC) 42 # Disable warning C4090: 'function': different 'const' qualifiers 43 target_compile_options(wininet PRIVATE /wd4090) 44endif() 45 46set_module_type(wininet win32dll) 47target_link_libraries(wininet wine ${PSEH_LIB} oldnames) 48 49add_delay_importlibs(wininet secur32 crypt32 cryptui iphlpapi dhcpcsvc) 50add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 normaliz kernel32_vista msvcrt kernel32 ntdll) 51add_pch(wininet precomp.h "${PCH_SKIP_SOURCE}") 52add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all) 53