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 internet.h) 26 27add_library(wininet SHARED 28 ${SOURCE} 29 rsrc.rc 30 ${CMAKE_CURRENT_BINARY_DIR}/wininet_stubs.c 31 ${CMAKE_CURRENT_BINARY_DIR}/wininet.def) 32 33set_module_type(wininet win32dll) 34target_link_libraries(wininet wine ${PSEH_LIB} zlib) 35add_delay_importlibs(wininet secur32 crypt32 cryptui) 36add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 normaliz kernel32_vista msvcrt kernel32 ntdll) 37add_pch(wininet internet.h SOURCE) 38add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all) 39