* Sync up to trunk head (r65481).
[reactos.git] / dll / win32 / ws2_32 / CMakeLists.txt
1
2 add_definitions(-DLE)
3 add_definitions(-DWINSOCK_API_LINKAGE=DECLSPEC_EXPORT)
4 include_directories(BEFORE include)
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6 spec2def(ws2_32.dll ws2_32.spec ADD_IMPORTLIB)
7
8 list(APPEND SOURCE
9 misc/bsd.c
10 misc/catalog.c
11 misc/dllmain.c
12 misc/event.c
13 misc/handle.c
14 misc/ns.c
15 misc/sndrcv.c
16 misc/stubs.c
17 misc/upcall.c
18 include/ws2_32.h)
19
20 add_library(ws2_32 SHARED
21 ${SOURCE}
22 misc/async.c
23 ws2_32.rc
24 ${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def)
25
26 set_module_type(ws2_32 win32dll UNICODE)
27 target_link_libraries(ws2_32 wine)
28 add_delay_importlibs(ws2_32 user32)
29 add_importlibs(ws2_32 advapi32 dnsapi ws2help msvcrt kernel32 ntdll)
30 add_pch(ws2_32 include/ws2_32.h SOURCE)
31 add_cd_file(TARGET ws2_32 DESTINATION reactos/system32 FOR all)