summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/conf
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-17 20:00:00 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-17 20:00:00 +0300
commit16cbf3c076a0aca6d47adaf3f719493674cf2363 (patch)
treee6530480020f62a2bdbf249988ec3e2a751d3927 /auto/modules/conf
downloadunit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.gz
unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.bz2
Initial version.
Diffstat (limited to 'auto/modules/conf')
-rw-r--r--auto/modules/conf50
1 files changed, 50 insertions, 0 deletions
diff --git a/auto/modules/conf b/auto/modules/conf
new file mode 100644
index 00000000..141bd098
--- /dev/null
+++ b/auto/modules/conf
@@ -0,0 +1,50 @@
+
+# Copyright (C) NGINX, Inc.
+# Copyright (C) Valentin V. Bartenev
+
+
+NXT_MODULES_INIT=
+NXT_MODULES_SRCS=
+
+
+if [ $NXT_PYTHON_MODULE != NO ]; then
+ . auto/modules/python/conf
+fi
+
+
+NXT_MODULES_SRC=$NXT_BUILD_DIR/nxt_modules.c
+
+
+cat << END > $NXT_MODULES_SRC
+
+#include <nxt_main.h>
+#include <nxt_cycle.h>
+
+
+END
+
+
+for nxt_init in $NXT_MODULES_INIT
+do
+ $echo "extern nxt_int_t $nxt_init(nxt_thread_t *thr, nxt_cycle_t *cycle);" \
+ >> $NXT_MODULES_SRC
+done
+
+
+cat << END >> $NXT_MODULES_SRC
+
+
+nxt_module_init_t nxt_init_modules[] = {
+END
+
+for nxt_init in $NXT_MODULES_INIT
+do
+ $echo " $nxt_init," >> $NXT_MODULES_SRC
+done
+
+cat << END >> $NXT_MODULES_SRC
+};
+
+
+nxt_uint_t nxt_init_modules_n = nxt_nitems(nxt_init_modules);
+END