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 -Dclose=_close) 13 14spec2def(wininet.dll wininet.spec ADD_IMPORTLIB) 15 16list(APPEND SOURCE 17 cookie.c 18 dialogs.c 19 ftp.c 20 gopher.c 21 http.c 22 internet.c 23 utility.c) 24 25list(APPEND PCH_SKIP_SOURCE 26 # Sometimes wine uses nameless structs & unions. Sometimes not... */ 27 netconnection.c 28 urlcache.c 29 ${CMAKE_CURRENT_BINARY_DIR}/wininet_stubs.c) 30 31add_library(wininet_inflate OBJECT inflate.c) 32target_include_directories(wininet_inflate BEFORE PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 33add_dependencies(wininet_inflate psdk) 34 35add_library(wininet MODULE 36 ${SOURCE} 37 ${PCH_SKIP_SOURCE} 38 $<TARGET_OBJECTS:wininet_inflate> 39 rsrc.rc 40 ${CMAKE_CURRENT_BINARY_DIR}/wininet.def) 41 42set_module_type(wininet win32dll) 43target_link_libraries(wininet wine ${PSEH_LIB} oldnames) 44 45add_delay_importlibs(wininet secur32 crypt32 cryptui iphlpapi dhcpcsvc) 46add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 normaliz kernel32_vista msvcrt kernel32 ntdll) 47add_pch(wininet precomp.h "${PCH_SKIP_SOURCE}") 48add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all) 49