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