1 2remove_definitions(-DWINVER=0x502) 3add_definitions(-DWINVER=0x600) 4 5add_definitions( 6 -D__WINESRC__ 7 -D_WINE 8 -Dclose=_close) 9 10include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine 11 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib) 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 netconnection.c 23 urlcache.c 24 utility.c) 25 26list(APPEND PCH_SKIP_SOURCE 27 ${CMAKE_CURRENT_BINARY_DIR}/wininet_stubs.c) 28 29add_library(wininet MODULE 30 ${SOURCE} 31 ${PCH_SKIP_SOURCE} 32 rsrc.rc 33 ${CMAKE_CURRENT_BINARY_DIR}/wininet.def) 34 35set_module_type(wininet win32dll) 36target_link_libraries(wininet wine ${PSEH_LIB} zlib) 37add_delay_importlibs(wininet secur32 crypt32 cryptui) 38add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 normaliz kernel32_vista msvcrt kernel32 ntdll) 39add_pch(wininet precomp.h "${PCH_SKIP_SOURCE}") 40add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all) 41