X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=dll%2Fwin32%2Fws2_32_new%2FCMakeLists.txt;h=5999316ca9ab23d75547b09047120c0432576315;hp=329226fd1155d4663b085249b9fda7c2e37b9371;hb=91f3191275d4f7a56ea26402dcab162cffe7b3f8;hpb=f1283c58c66148026f1aca2d2cad04053148347e diff --git a/dll/win32/ws2_32_new/CMakeLists.txt b/dll/win32/ws2_32_new/CMakeLists.txt index 329226fd115..5999316ca9a 100644 --- a/dll/win32/ws2_32_new/CMakeLists.txt +++ b/dll/win32/ws2_32_new/CMakeLists.txt @@ -5,7 +5,9 @@ include_directories( inc ${REACTOS_SOURCE_DIR}/include/reactos/winsock) -add_library(ws2_32_new SHARED +spec2def(ws2_32_new.dll ws2_32.spec) + +list(APPEND SOURCE src/addrconv.c src/addrinfo.c src/async.c @@ -43,16 +45,11 @@ add_library(ws2_32_new SHARED src/startup.c src/wsautil.c ws2_32.rc - ws2_32.def) + ${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def) -if(NOT MSVC) - set_source_files_properties(ws2_32.def PROPERTIES EXTERNAL_OBJECT TRUE) -endif() +add_library(ws2_32_new SHARED ${SOURCE}) set_module_type(ws2_32_new win32dll) - target_link_libraries(ws2_32_new wine) - -add_importlibs(ws2_32_new user32 advapi32 dnsapi ws2help kernel32 ntdll) - -add_cab_target(ws2_32_new 1) +add_importlibs(ws2_32_new user32 advapi32 dnsapi ws2help msvcrt kernel32 ntdll) +add_cd_file(TARGET ws2_32_new DESTINATION reactos/system32 FOR all)