mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
23373acbb9
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
22 lines
549 B
CMake
22 lines
549 B
CMake
|
|
add_definitions(-DLE)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(mswsock.dll mswsock.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
extensions.c
|
|
mswhelper.c
|
|
nsplookup.c
|
|
stubs.c
|
|
precomp.h)
|
|
|
|
add_library(mswsock MODULE
|
|
${SOURCE}
|
|
mswsock.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/mswsock.def)
|
|
|
|
set_module_type(mswsock win32dll UNICODE)
|
|
add_importlibs(mswsock ws2_32 advapi32 dnsapi msvcrt kernel32 ntdll)
|
|
add_pch(mswsock precomp.h SOURCE)
|
|
add_cd_file(TARGET mswsock DESTINATION reactos/system32 FOR all)
|