• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# libwebsockets - small server side websockets and web server implementation
3#
4# Copyright (C) 2010 - 2020 Andy Green <andy@warmcat.com>
5#
6# Permission is hereby granted, free of charge, to any person obtaining a copy
7# of this software and associated documentation files (the "Software"), to
8# deal in the Software without restriction, including without limitation the
9# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10# sell copies of the Software, and to permit persons to whom the Software is
11# furnished to do so, subject to the following conditions:
12#
13# The above copyright notice and this permission notice shall be included in
14# all copies or substantial portions of the Software.
15#
16# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22# IN THE SOFTWARE.
23#
24
25include_directories(.)
26
27list(APPEND SOURCES
28	core-net/dummy-callback.c
29	core-net/output.c
30	core-net/close.c
31	core-net/network.c
32	core-net/vhost.c
33	core-net/pollfd.c
34	core-net/service.c
35	core-net/sorted-usec-list.c
36	core-net/wsi.c
37	core-net/wsi-timeout.c
38	core-net/adopt.c
39	roles/pipe/ops-pipe.c
40)
41
42if (LWS_WITH_SYS_STATE)
43	list(APPEND SOURCES
44		core-net/state.c
45	)
46endif()
47
48if (LWS_WITH_NETLINK)
49	list(APPEND SOURCES
50		core-net/route.c
51	)
52endif()
53
54if (LWS_WITH_LWS_DSH)
55	list(APPEND SOURCES
56		core-net/lws-dsh.c)
57endif()
58
59if (LWS_WITH_SEQUENCER)
60	list(APPEND SOURCES
61		core-net/sequencer.c)
62endif()
63
64if (LWS_WITH_CLIENT)
65	list(APPEND SOURCES
66		core-net/client/client.c
67		core-net/client/connect.c
68		core-net/client/connect2.c
69		core-net/client/connect3.c
70		core-net/client/connect4.c
71		core-net/client/sort-dns.c
72	)
73	if (LWS_WITH_CONMON)
74		list(APPEND SOURCES
75			core-net/client/conmon.c
76		)
77	endif()
78endif()
79
80if (LWS_WITH_SOCKS5 AND NOT LWS_WITHOUT_CLIENT)
81	list(APPEND SOURCES
82		core-net/socks5-client.c)
83endif()
84
85exports_to_parent_scope()
86