xref: /unit/auto/sources (revision 1975:6a47cab8f271)
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    src/test/nxt_base64_test.c \
174"
175
176
177if [ $NXT_HAVE_CLONE_NEWUSER = YES ]; then
178    NXT_TEST_SRCS="$NXT_TEST_SRCS src/test/nxt_clone_test.c"
179fi
180
181
182NXT_LIB_UTF8_FILE_NAME_TEST_SRCS=" \
183    src/test/nxt_utf8_file_name_test.c \
184"
185
186
187if [ $NXT_HAVE_ROOTFS = YES ]; then
188    NXT_LIB_SRCS="$NXT_LIB_SRCS src/nxt_fs.c"
189fi
190
191
192if [ $NXT_TLS = YES ]; then
193    nxt_have=NXT_TLS . auto/have
194    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_TLS_SRCS"
195fi
196
197
198if [ $NXT_OPENSSL = YES ]; then
199    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_OPENSSL_SRCS"
200fi
201
202
203if [ $NXT_GNUTLS = YES ]; then
204    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_GNUTLS_SRCS"
205fi
206
207
208if [ $NXT_CYASSL = YES ]; then
209    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_CYASSL_SRCS"
210fi
211
212
213if [ $NXT_POLARSSL = YES ]; then
214    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLARSSL_SRCS"
215fi
216
217
218if [ "$NXT_REGEX" = "YES" ]; then
219    if [ "$NXT_HAVE_PCRE2" = "YES" ]; then
220        NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_PCRE2_SRCS"
221    else
222        NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_PCRE_SRCS"
223    fi
224fi
225
226if [ "$NXT_HAVE_EPOLL" = "YES" -o "$NXT_TEST_BUILD_EPOLL" = "YES" ]; then
227    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_EPOLL_SRCS"
228fi
229
230
231if [ "$NXT_HAVE_KQUEUE" = "YES" ]; then
232    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_KQUEUE_SRCS"
233fi
234
235
236if [ "$NXT_HAVE_EVENTPORT" = "YES" -o "$NXT_TEST_BUILD_EVENTPORT" = "YES" ];
237then
238    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_EVENTPORT_SRCS"
239fi
240
241
242if [ "$NXT_HAVE_DEVPOLL" = "YES" -o "$NXT_TEST_BUILD_DEVPOLL" = "YES" ]; then
243    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_DEVPOLL_SRCS"
244fi
245
246
247if [ "$NXT_HAVE_POLLSET" = "YES" -o "$NXT_TEST_BUILD_POLLSET" = "YES" ]; then
248    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLLSET_SRCS"
249fi
250
251
252NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLL_SRCS"
253NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SELECT_SRCS"
254
255
256if [ "$NXT_HAVE_LINUX_SENDFILE" = "YES" \
257     -o "$NXT_TEST_BUILD_LINUX_SENDFILE" = "YES" ]; then
258    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_LINUX_SENDFILE_SRCS"
259fi
260
261
262if [ "$NXT_HAVE_FREEBSD_SENDFILE" = "YES" \
263     -o "$NXT_TEST_BUILD_FREEBSD_SENDFILE" = "YES" ]; then
264    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_FREEBSD_SENDFILE_SRCS"
265fi
266
267
268if [ "$NXT_HAVE_SOLARIS_SENDFILEV" = "YES" \
269     -o "$NXT_TEST_BUILD_SOLARIS_SENDFILEV" = "YES" ];
270then
271    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SOLARIS_SENDFILEV_SRCS"
272fi
273
274
275if [ "$NXT_HAVE_MACOSX_SENDFILE" = "YES" \
276     -o "$NXT_TEST_BUILD_MACOSX_SENDFILE" = "YES" ]; then
277    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_MACOSX_SENDFILE_SRCS"
278fi
279
280
281if [ "$NXT_HAVE_AIX_SEND_FILE" = "YES" \
282     -o "$NXT_TEST_BUILD_AIX_SEND_FILE" = "YES" ];
283then
284    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_AIX_SEND_FILE_SRCS"
285fi
286
287
288if [ "$NXT_HAVE_HPUX_SENDFILE" = "YES" \
289     -o "$NXT_TEST_BUILD_HPUX_SENDFILE" = "YES" ]; then
290    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_HPUX_SENDFILE_SRCS"
291fi
292
293
294if [ "$NXT_HAVE_CLONE" = "YES" ]; then
295    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_CLONE_SRCS"
296fi
297
298
299if [ "$NXT_TEST_BUILD" = "YES" ]; then
300    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_TEST_BUILD_SRCS"
301fi
302
303
304if [ $NXT_TESTS = YES ]; then
305    nxt_have=NXT_TESTS . auto/have
306fi
307
308
309NXT_SRCS=" \
310    src/nxt_main.c \
311"
312