xref: /unit/auto/sources (revision 1721:53b6ab9b324b)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6NXT_LIB_SRCS=" \
7    src/nxt_lib.c \
8    src/nxt_gmtime.c \
9    src/nxt_errno.c \
10    src/nxt_time.c \
11    src/nxt_malloc.c \
12    src/nxt_file.c \
13    src/nxt_mem_map.c \
14    src/nxt_socket.c \
15    src/nxt_socketpair.c \
16    src/nxt_credential.c \
17    src/nxt_isolation.c \
18    src/nxt_process.c \
19    src/nxt_process_title.c \
20    src/nxt_signal.c \
21    src/nxt_port_socket.c \
22    src/nxt_port_memory.c \
23    src/nxt_port_rpc.c \
24    src/nxt_port.c \
25    src/nxt_dyld.c \
26    src/nxt_random.c \
27    src/nxt_queue.c \
28    src/nxt_rbtree.c \
29    src/nxt_mp.c \
30    src/nxt_mem_zone.c \
31    src/nxt_string.c \
32    src/nxt_utf8.c \
33    src/nxt_parse.c \
34    src/nxt_sprintf.c \
35    src/nxt_var.c \
36    src/nxt_file_name.c \
37    src/nxt_log.c \
38    src/nxt_djb_hash.c \
39    src/nxt_murmur_hash.c \
40    src/nxt_lvlhsh.c \
41    src/nxt_array.c \
42    src/nxt_vector.c \
43    src/nxt_list.c \
44    src/nxt_buf.c \
45    src/nxt_buf_pool.c \
46    src/nxt_recvbuf.c \
47    src/nxt_sendbuf.c \
48    src/nxt_thread.c \
49    src/nxt_thread_mutex.c \
50    src/nxt_thread_cond.c \
51    src/nxt_spinlock.c \
52    src/nxt_semaphore.c \
53    src/nxt_thread_pool.c \
54    src/nxt_thread_time.c \
55    src/nxt_time_parse.c \
56    src/nxt_work_queue.c \
57    src/nxt_service.c \
58    src/nxt_log_moderation.c \
59    src/nxt_event_engine.c \
60    src/nxt_timer.c \
61    src/nxt_fd_event.c \
62    src/nxt_conn.c \
63    src/nxt_conn_connect.c \
64    src/nxt_conn_accept.c \
65    src/nxt_conn_read.c \
66    src/nxt_conn_write.c \
67    src/nxt_conn_close.c \
68    src/nxt_event_conn_job_sendfile.c \
69    src/nxt_conn_proxy.c \
70    src/nxt_job.c \
71    src/nxt_job_resolve.c \
72    src/nxt_sockaddr.c \
73    src/nxt_listen_socket.c \
74    src/nxt_upstream.c \
75    src/nxt_upstream_round_robin.c \
76    src/nxt_http_parse.c \
77    src/nxt_app_log.c \
78    src/nxt_capability.c \
79    src/nxt_runtime.c \
80    src/nxt_conf.c \
81    src/nxt_conf_validation.c \
82    src/nxt_main_process.c \
83    src/nxt_signal_handlers.c \
84    src/nxt_controller.c \
85    src/nxt_router.c \
86    src/nxt_h1proto.c \
87    src/nxt_http_request.c \
88    src/nxt_http_response.c \
89    src/nxt_http_error.c \
90    src/nxt_http_route.c \
91    src/nxt_http_route_addr.c \
92    src/nxt_http_return.c \
93    src/nxt_http_static.c \
94    src/nxt_http_proxy.c \
95    src/nxt_http_chunk_parse.c \
96    src/nxt_http_variables.c \
97    src/nxt_application.c \
98    src/nxt_external.c \
99    src/nxt_port_hash.c \
100    src/nxt_sha1.c \
101    src/nxt_websocket.c \
102    src/nxt_websocket_accept.c \
103    src/nxt_http_websocket.c \
104    src/nxt_h1proto_websocket.c \
105"
106
107NXT_LIB_SRC0=" \
108    src/nxt_buf_filter.c \
109    src/nxt_job_file.c \
110    src/nxt_stream_module.c \
111    src/nxt_stream_source.c \
112    src/nxt_upstream_source.c \
113    src/nxt_http_source.c \
114    src/nxt_fastcgi_source.c \
115    src/nxt_fastcgi_record_parse.c \
116\
117    src/nxt_mem_pool_cleanup.h \
118    src/nxt_mem_pool_cleanup.c \
119"
120
121NXT_LIB_UNIT_SRCS="src/nxt_unit.c"
122
123
124NXT_LIB_TLS_DEPS="src/nxt_tls.h"
125NXT_LIB_TLS_SRCS="src/nxt_cert.c"
126NXT_LIB_OPENSSL_SRCS="src/nxt_openssl.c"
127NXT_LIB_GNUTLS_SRCS="src/nxt_gnutls.c"
128NXT_LIB_CYASSL_SRCS="src/nxt_cyassl.c"
129NXT_LIB_POLARSSL_SRCS="src/nxt_polarssl.c"
130
131NXT_LIB_PCRE_SRCS="src/nxt_pcre.c"
132NXT_LIB_PCRE2_SRCS="src/nxt_pcre2.c"
133
134NXT_LIB_EPOLL_SRCS="src/nxt_epoll_engine.c"
135NXT_LIB_KQUEUE_SRCS="src/nxt_kqueue_engine.c"
136NXT_LIB_EVENTPORT_SRCS="src/nxt_eventport_engine.c"
137NXT_LIB_DEVPOLL_SRCS="src/nxt_devpoll_engine.c"
138NXT_LIB_POLLSET_SRCS="src/nxt_pollset_engine.c"
139NXT_LIB_POLL_SRCS="src/nxt_poll_engine.c"
140NXT_LIB_SELECT_SRCS="src/nxt_select_engine.c"
141
142NXT_LIB_LINUX_SENDFILE_SRCS="src/nxt_linux_sendfile.c"
143NXT_LIB_FREEBSD_SENDFILE_SRCS="src/nxt_freebsd_sendfile.c"
144NXT_LIB_SOLARIS_SENDFILEV_SRCS="src/nxt_solaris_sendfilev.c"
145NXT_LIB_MACOSX_SENDFILE_SRCS="src/nxt_macosx_sendfile.c"
146NXT_LIB_AIX_SEND_FILE_SRCS="src/nxt_aix_send_file.c"
147NXT_LIB_HPUX_SENDFILE_SRCS="src/nxt_hpux_sendfile.c"
148NXT_LIB_CLONE_SRCS="src/nxt_clone.c"
149
150NXT_TEST_BUILD_DEPS="src/nxt_test_build.h"
151NXT_TEST_BUILD_SRCS="src/nxt_test_build.c"
152
153NXT_TEST_DEPS="src/test/nxt_tests.h \
154    src/test/nxt_rbtree1.h \
155"
156
157NXT_TEST_SRCS=" \
158    src/test/nxt_tests.c \
159    src/test/nxt_rbtree1.c \
160    src/test/nxt_rbtree_test.c \
161    src/test/nxt_term_parse_test.c \
162    src/test/nxt_msec_diff_test.c \
163    src/test/nxt_mp_test.c \
164    src/test/nxt_mem_zone_test.c \
165    src/test/nxt_lvlhsh_test.c \
166    src/test/nxt_gmtime_test.c \
167    src/test/nxt_sprintf_test.c \
168    src/test/nxt_malloc_test.c \
169    src/test/nxt_utf8_test.c \
170    src/test/nxt_rbtree1_test.c \
171    src/test/nxt_http_parse_test.c \
172    src/test/nxt_strverscmp_test.c \
173"
174
175
176if [ $NXT_HAVE_CLONE_NEWUSER = YES ]; then
177    NXT_TEST_SRCS="$NXT_TEST_SRCS src/test/nxt_clone_test.c"
178fi
179
180
181NXT_LIB_UTF8_FILE_NAME_TEST_SRCS=" \
182    src/test/nxt_utf8_file_name_test.c \
183"
184
185
186if [ $NXT_HAVE_ROOTFS = YES ]; then
187    NXT_LIB_SRCS="$NXT_LIB_SRCS src/nxt_fs.c"
188fi
189
190
191if [ $NXT_TLS = YES ]; then
192    nxt_have=NXT_TLS . auto/have
193    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_TLS_SRCS"
194fi
195
196
197if [ $NXT_OPENSSL = YES ]; then
198    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_OPENSSL_SRCS"
199fi
200
201
202if [ $NXT_GNUTLS = YES ]; then
203    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_GNUTLS_SRCS"
204fi
205
206
207if [ $NXT_CYASSL = YES ]; then
208    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_CYASSL_SRCS"
209fi
210
211
212if [ $NXT_POLARSSL = YES ]; then
213    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLARSSL_SRCS"
214fi
215
216
217if [ "$NXT_REGEX" = "YES" ]; then
218    if [ "$NXT_HAVE_PCRE2" = "YES" ]; then
219        NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_PCRE2_SRCS"
220    else
221        NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_PCRE_SRCS"
222    fi
223fi
224
225if [ "$NXT_HAVE_EPOLL" = "YES" -o "$NXT_TEST_BUILD_EPOLL" = "YES" ]; then
226    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_EPOLL_SRCS"
227fi
228
229
230if [ "$NXT_HAVE_KQUEUE" = "YES" ]; then
231    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_KQUEUE_SRCS"
232fi
233
234
235if [ "$NXT_HAVE_EVENTPORT" = "YES" -o "$NXT_TEST_BUILD_EVENTPORT" = "YES" ];
236then
237    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_EVENTPORT_SRCS"
238fi
239
240
241if [ "$NXT_HAVE_DEVPOLL" = "YES" -o "$NXT_TEST_BUILD_DEVPOLL" = "YES" ]; then
242    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_DEVPOLL_SRCS"
243fi
244
245
246if [ "$NXT_HAVE_POLLSET" = "YES" -o "$NXT_TEST_BUILD_POLLSET" = "YES" ]; then
247    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLLSET_SRCS"
248fi
249
250
251NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLL_SRCS"
252NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SELECT_SRCS"
253
254
255if [ "$NXT_HAVE_LINUX_SENDFILE" = "YES" \
256     -o "$NXT_TEST_BUILD_LINUX_SENDFILE" = "YES" ]; then
257    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_LINUX_SENDFILE_SRCS"
258fi
259
260
261if [ "$NXT_HAVE_FREEBSD_SENDFILE" = "YES" \
262     -o "$NXT_TEST_BUILD_FREEBSD_SENDFILE" = "YES" ]; then
263    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_FREEBSD_SENDFILE_SRCS"
264fi
265
266
267if [ "$NXT_HAVE_SOLARIS_SENDFILEV" = "YES" \
268     -o "$NXT_TEST_BUILD_SOLARIS_SENDFILEV" = "YES" ];
269then
270    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SOLARIS_SENDFILEV_SRCS"
271fi
272
273
274if [ "$NXT_HAVE_MACOSX_SENDFILE" = "YES" \
275     -o "$NXT_TEST_BUILD_MACOSX_SENDFILE" = "YES" ]; then
276    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_MACOSX_SENDFILE_SRCS"
277fi
278
279
280if [ "$NXT_HAVE_AIX_SEND_FILE" = "YES" \
281     -o "$NXT_TEST_BUILD_AIX_SEND_FILE" = "YES" ];
282then
283    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_AIX_SEND_FILE_SRCS"
284fi
285
286
287if [ "$NXT_HAVE_HPUX_SENDFILE" = "YES" \
288     -o "$NXT_TEST_BUILD_HPUX_SENDFILE" = "YES" ]; then
289    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_HPUX_SENDFILE_SRCS"
290fi
291
292
293if [ "$NXT_HAVE_CLONE" = "YES" ]; then
294    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_CLONE_SRCS"
295fi
296
297
298if [ "$NXT_TEST_BUILD" = "YES" ]; then
299    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_TEST_BUILD_SRCS"
300fi
301
302
303if [ $NXT_TESTS = YES ]; then
304    nxt_have=NXT_TESTS . auto/have
305fi
306
307
308NXT_SRCS=" \
309    src/nxt_main.c \
310"
311