xref: /unit/auto/sources (revision 216:07257705cd64)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6NXT_LIB_DEPS=" \
7    src/nxt_main.h \
8    src/nxt_clang.h \
9    src/nxt_types.h \
10    src/nxt_atomic.h \
11    src/nxt_errno.h \
12    src/nxt_time.h \
13    src/nxt_unix.h \
14    src/nxt_malloc.h \
15    src/nxt_file.h \
16    src/nxt_mem_map.h \
17    src/nxt_socket.h \
18    src/nxt_process.h \
19    src/nxt_signal.h \
20    src/nxt_port.h \
21    src/nxt_port_hash.h \
22    src/nxt_port_memory.h \
23    src/nxt_port_memory_int.h \
24    src/nxt_dyld.h \
25    src/nxt_thread.h \
26    src/nxt_thread_id.h \
27    src/nxt_spinlock.h \
28    src/nxt_random.h \
29    src/nxt_queue.h \
30    src/nxt_rbtree.h \
31    src/nxt_string.h \
32    src/nxt_utf8.h \
33    src/nxt_unicode_lowcase.h \
34    src/nxt_parse.h \
35    src/nxt_mp.h \
36    src/nxt_mem_zone.h \
37    src/nxt_sprintf.h \
38    src/nxt_file_name.h \
39    src/nxt_log.h \
40    src/nxt_djb_hash.h \
41    src/nxt_murmur_hash.h \
42    src/nxt_lvlhsh.h \
43    src/nxt_hash.h \
44    src/nxt_sort.h \
45    src/nxt_array.h \
46    src/nxt_vector.h \
47    src/nxt_list.h \
48    src/nxt_buf.h \
49    src/nxt_buf_pool.h \
50    src/nxt_buf_filter.h \
51    src/nxt_recvbuf.h \
52    src/nxt_sendbuf.h \
53    src/nxt_thread_log.h \
54    src/nxt_thread_time.h \
55    src/nxt_work_queue.h \
56    src/nxt_service.h \
57    src/nxt_fiber.h \
58    src/nxt_log_moderation.h \
59    src/nxt_event_engine.h \
60    src/nxt_timer.h \
61    src/nxt_fd_event.h \
62    src/nxt_file_event.h \
63    src/nxt_conn.h \
64    src/nxt_job.h \
65    src/nxt_job_file.h \
66    src/nxt_sockaddr.h \
67    src/nxt_job_resolve.h \
68    src/nxt_listen_socket.h \
69    src/nxt_http_parse.h \
70    src/nxt_runtime.h \
71    src/nxt_conf.h \
72    src/nxt_application.h \
73    src/nxt_master_process.h \
74    src/nxt_router.h \
75    src/nxt_port_hash.h \
76"
77
78NXT_LIB_SRCS=" \
79    src/nxt_lib.c \
80    src/nxt_gmtime.c \
81    src/nxt_errno.c \
82    src/nxt_time.c \
83    src/nxt_malloc.c \
84    src/nxt_file.c \
85    src/nxt_mem_map.c \
86    src/nxt_socket.c \
87    src/nxt_socketpair.c \
88    src/nxt_process.c \
89    src/nxt_process_title.c \
90    src/nxt_signal.c \
91    src/nxt_port_socket.c \
92    src/nxt_port_memory.c \
93    src/nxt_port_rpc.c \
94    src/nxt_port.c \
95    src/nxt_dyld.c \
96    src/nxt_random.c \
97    src/nxt_queue.c \
98    src/nxt_rbtree.c \
99    src/nxt_mp.c \
100    src/nxt_mem_zone.c \
101    src/nxt_string.c \
102    src/nxt_utf8.c \
103    src/nxt_parse.c \
104    src/nxt_sprintf.c \
105    src/nxt_file_name.c \
106    src/nxt_log.c \
107    src/nxt_djb_hash.c \
108    src/nxt_murmur_hash.c \
109    src/nxt_lvlhsh.c \
110    src/nxt_array.c \
111    src/nxt_vector.c \
112    src/nxt_list.c \
113    src/nxt_buf.c \
114    src/nxt_buf_pool.c \
115    src/nxt_recvbuf.c \
116    src/nxt_sendbuf.c \
117    src/nxt_thread_time.c \
118    src/nxt_time_parse.c \
119    src/nxt_work_queue.c \
120    src/nxt_service.c \
121    src/nxt_fiber.c \
122    src/nxt_log_moderation.c \
123    src/nxt_event_engine.c \
124    src/nxt_timer.c \
125    src/nxt_fd_event.c \
126    src/nxt_conn.c \
127    src/nxt_conn_connect.c \
128    src/nxt_conn_accept.c \
129    src/nxt_conn_read.c \
130    src/nxt_conn_write.c \
131    src/nxt_conn_close.c \
132    src/nxt_event_conn_job_sendfile.c \
133    src/nxt_conn_proxy.c \
134    src/nxt_job.c \
135    src/nxt_job_resolve.c \
136    src/nxt_sockaddr.c \
137    src/nxt_listen_socket.c \
138    src/nxt_upstream_round_robin.c \
139    src/nxt_http_parse.c \
140    src/nxt_app_log.c \
141    src/nxt_runtime.c \
142    src/nxt_conf.c \
143    src/nxt_conf_validation.c \
144    src/nxt_stream_module.c \
145    src/nxt_master_process.c \
146    src/nxt_worker_process.c \
147    src/nxt_controller.c \
148    src/nxt_router.c \
149    src/nxt_application.c \
150    src/nxt_go.c \
151    src/nxt_port_hash.c \
152"
153
154NXT_LIB_SRC0=" \
155    src/nxt_buf_filter.c \
156    src/nxt_job_file.c \
157    src/nxt_stream_source.c \
158    src/nxt_upstream_source.c \
159    src/nxt_http_source.c \
160    src/nxt_http_chunk_parse.c \
161    src/nxt_fastcgi_source.c \
162    src/nxt_fastcgi_record_parse.c \
163\
164    src/nxt_mem_pool_cleanup.h \
165    src/nxt_mem_pool_cleanup.c \
166"
167
168NXT_LIB_THREAD_DEPS=" \
169    src/nxt_semaphore.h \
170    src/nxt_thread_pool.h \
171"
172
173NXT_LIB_THREAD_SRCS=" \
174    src/nxt_thread.c \
175    src/nxt_thread_id.c \
176    src/nxt_thread_mutex.c \
177    src/nxt_thread_cond.c \
178    src/nxt_spinlock.c \
179    src/nxt_semaphore.c \
180    src/nxt_thread_pool.c \
181"
182
183NXT_LIB_SSLTLS_DEPS="src/nxt_ssltls.h"
184NXT_LIB_SSLTLS_SRCS="src/nxt_ssltls.c"
185NXT_LIB_OPENSSL_SRCS="src/nxt_openssl.c"
186NXT_LIB_GNUTLS_SRCS="src/nxt_gnutls.c"
187NXT_LIB_CYASSL_SRCS="src/nxt_cyassl.c"
188NXT_LIB_POLARSSL_SRCS="src/nxt_polarssl.c"
189
190NXT_LIB_EPOLL_SRCS="src/nxt_epoll_engine.c"
191NXT_LIB_KQUEUE_SRCS="src/nxt_kqueue_engine.c"
192NXT_LIB_EVENTPORT_SRCS="src/nxt_eventport_engine.c"
193NXT_LIB_DEVPOLL_SRCS="src/nxt_devpoll_engine.c"
194NXT_LIB_POLLSET_SRCS="src/nxt_pollset_engine.c"
195NXT_LIB_POLL_SRCS="src/nxt_poll_engine.c"
196NXT_LIB_SELECT_SRCS="src/nxt_select_engine.c"
197
198NXT_LIB_LINUX_SENDFILE_SRCS="src/nxt_linux_sendfile.c"
199NXT_LIB_FREEBSD_SENDFILE_SRCS="src/nxt_freebsd_sendfile.c"
200NXT_LIB_SOLARIS_SENDFILEV_SRCS="src/nxt_solaris_sendfilev.c"
201NXT_LIB_MACOSX_SENDFILE_SRCS="src/nxt_macosx_sendfile.c"
202NXT_LIB_AIX_SEND_FILE_SRCS="src/nxt_aix_send_file.c"
203NXT_LIB_HPUX_SENDFILE_SRCS="src/nxt_hpux_sendfile.c"
204
205NXT_LIB_TEST_BUILD_DEPS="src/nxt_test_build.h"
206NXT_LIB_TEST_BUILD_SRCS="src/nxt_test_build.c"
207
208NXT_LIB_UNIT_TEST_DEPS="test/nxt_lib_unit_test.h \
209    test/nxt_rbtree1.h \
210"
211
212NXT_LIB_UNIT_TEST_SRCS=" \
213    test/nxt_lib_unit_test.c \
214    test/nxt_rbtree1.c \
215    test/nxt_rbtree_unit_test.c \
216    test/nxt_term_parse_unit_test.c \
217    test/nxt_msec_diff_unit_test.c \
218    test/nxt_mp_unit_test.c \
219    test/nxt_mem_zone_unit_test.c \
220    test/nxt_lvlhsh_unit_test.c \
221    test/nxt_gmtime_unit_test.c \
222    test/nxt_sprintf_unit_test.c \
223    test/nxt_malloc_unit_test.c \
224    test/nxt_utf8_unit_test.c \
225    test/nxt_rbtree1_unit_test.c \
226    test/nxt_http_parse_unit_test.c \
227"
228
229NXT_LIB_UTF8_FILE_NAME_TEST_SRCS=" \
230    test/nxt_utf8_file_name_test.c \
231"
232
233
234if [ $NXT_THREADS = YES ]; then
235    NXT_LIB_DEPS="$NXT_LIB_DEPS $NXT_LIB_THREAD_DEPS"
236    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_THREAD_SRCS"
237fi
238
239
240if [ $NXT_SSLTLS = YES ]; then
241    nxt_have=NXT_SSLTLS . auto/have
242    NXT_LIB_DEPS="$NXT_LIB_DEPS $NXT_LIB_SSLTLS_DEPS"
243    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SSLTLS_SRCS"
244fi
245
246
247if [ $NXT_OPENSSL = YES ]; then
248    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_OPENSSL_SRCS"
249fi
250
251
252if [ $NXT_GNUTLS = YES ]; then
253    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_GNUTLS_SRCS"
254fi
255
256
257if [ $NXT_CYASSL = YES ]; then
258    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_CYASSL_SRCS"
259fi
260
261
262if [ $NXT_POLARSSL = YES ]; then
263    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLARSSL_SRCS"
264fi
265
266
267if [ "$NXT_HAVE_EPOLL" = "YES" -o "$NXT_TEST_BUILD_EPOLL" = "YES" ]; then
268    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_EPOLL_SRCS"
269fi
270
271
272if [ "$NXT_HAVE_KQUEUE" = "YES" ]; then
273    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_KQUEUE_SRCS"
274fi
275
276
277if [ "$NXT_HAVE_EVENTPORT" = "YES" -o "$NXT_TEST_BUILD_EVENTPORT" = "YES" ];
278then
279    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_EVENTPORT_SRCS"
280fi
281
282
283if [ "$NXT_HAVE_DEVPOLL" = "YES" -o "$NXT_TEST_BUILD_DEVPOLL" = "YES" ]; then
284    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_DEVPOLL_SRCS"
285fi
286
287
288if [ "$NXT_HAVE_POLLSET" = "YES" -o "$NXT_TEST_BUILD_POLLSET" = "YES" ]; then
289    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLLSET_SRCS"
290fi
291
292
293NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_POLL_SRCS"
294NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SELECT_SRCS"
295
296
297if [ "$NXT_HAVE_LINUX_SENDFILE" = "YES" \
298     -o "$NXT_TEST_BUILD_LINUX_SENDFILE" = "YES" ]; then
299    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_LINUX_SENDFILE_SRCS"
300fi
301
302
303if [ "$NXT_HAVE_FREEBSD_SENDFILE" = "YES" \
304     -o "$NXT_TEST_BUILD_FREEBSD_SENDFILE" = "YES" ]; then
305    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_FREEBSD_SENDFILE_SRCS"
306fi
307
308
309if [ "$NXT_HAVE_SOLARIS_SENDFILEV" = "YES" \
310     -o "$NXT_TEST_BUILD_SOLARIS_SENDFILEV" = "YES" ];
311then
312    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_SOLARIS_SENDFILEV_SRCS"
313fi
314
315
316if [ "$NXT_HAVE_MACOSX_SENDFILE" = "YES" \
317     -o "$NXT_TEST_BUILD_MACOSX_SENDFILE" = "YES" ]; then
318    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_MACOSX_SENDFILE_SRCS"
319fi
320
321
322if [ "$NXT_HAVE_AIX_SEND_FILE" = "YES" \
323     -o "$NXT_TEST_BUILD_AIX_SEND_FILE" = "YES" ];
324then
325    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_AIX_SEND_FILE_SRCS"
326fi
327
328
329if [ "$NXT_HAVE_HPUX_SENDFILE" = "YES" \
330     -o "$NXT_TEST_BUILD_HPUX_SENDFILE" = "YES" ]; then
331    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_HPUX_SENDFILE_SRCS"
332fi
333
334
335if [ "$NXT_TEST_BUILD" = "YES" ]; then
336    NXT_LIB_DEPS="$NXT_LIB_DEPS $NXT_LIB_TEST_BUILD_DEPS"
337    NXT_LIB_SRCS="$NXT_LIB_SRCS $NXT_LIB_TEST_BUILD_SRCS"
338fi
339
340
341if [ $NXT_LIB_UNIT_TEST = YES ]; then
342    nxt_have=NXT_LIB_UNIT_TEST . auto/have
343fi
344
345NXT_DEPS=" \
346"
347
348NXT_SRCS=" \
349    src/nxt_main.c \
350"
351