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