xref: /reactos/dll/win32/ws2_32/CMakeLists.txt (revision ac43fd2b)
1
2add_definitions(-DLE)
3spec2def(ws2_32.dll ws2_32.spec ADD_IMPORTLIB)
4
5include_directories(
6    inc
7    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/winsock)
8
9list(APPEND SOURCE
10    src/addrconv.c
11    src/addrinfo.c
12    src/async.c
13    src/bhook.c
14    src/dcatalog.c
15    src/dcatitem.c
16    src/dllmain.c
17    src/dprocess.c
18    src/dprovide.c
19    src/dsocket.c
20    src/dthread.c
21    src/dupsock.c
22    src/enumprot.c
23    src/event.c
24    src/getproto.c
25    src/getxbyxx.c
26    src/ioctl.c
27    src/nscatalo.c
28    src/nscatent.c
29    src/nspinstl.c
30    src/nsprovid.c
31    src/nsquery.c
32    src/qos.c
33    src/qshelpr.c
34    src/rasdial.c
35    src/recv.c
36    src/rnr.c
37    #src/scihlpr.c
38    src/select.c
39    src/send.c
40    src/sockctrl.c
41    src/socklife.c
42    src/spinstal.c
43    src/sputil.c
44    src/startup.c
45    src/wsautil.c
46    inc/ws2_32.h)
47
48add_library(ws2_32 MODULE
49    ${SOURCE}
50    ws2_32.rc
51    ${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def)
52
53set_module_type(ws2_32 win32dll)
54target_link_libraries(ws2_32 ${PSEH_LIB})
55add_importlibs(ws2_32 user32 advapi32 ws2help msvcrt kernel32 ntdll)
56add_pch(ws2_32 inc/ws2_32.h SOURCE)
57add_cd_file(TARGET ws2_32 DESTINATION reactos/system32 FOR all)
58