-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig
77 lines (59 loc) · 2.58 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
ngx_addon_name="ngx_sqlite_config_module \
ngx_http_api_gateway_module \
ngx_dynamic_conf_module \
ngx_stream_api_gateway_module"
SRCS="$ngx_addon_dir/src/ngx_api_gateway.c \
$ngx_addon_dir/src/ngx_trie.c \
$ngx_addon_dir/src/ngx_http_api_gateway_module.c \
$ngx_addon_dir/src/ngx_stream_api_gateway_module.c \
$ngx_addon_dir/src/ngx_api_gateway_router.c \
$ngx_addon_dir/src/ngx_regex_shm.c \
$ngx_addon_dir/src/ngx_api_gateway_util.c \
$ngx_addon_dir/src/ngx_dynamic_conf_module.cpp"
DEPS="$ngx_addon_dir/src/ngx_trie.h \
$ngx_addon_dir/src/ngx_api_gateway.h \
$ngx_addon_dir/src/ngx_api_gateway_router.h \
$ngx_addon_dir/src/ngx_api_gateway_util.h \
$ngx_addon_dir/src/ngx_regex_shm.h"
CORE_MODULE_SRCS="$ngx_addon_dir/src/ngx_api_gateway_cfg_module.c"
CORE_MODULE_DEPS="$ngx_addon_dir/src/ngx_api_gateway_cfg.h"
REQUIRED_INCS="$YAML_PREFIX/include $SQLITE_PREFIX/include"
REQUIRED_LIBS="-L$YAML_PREFIX/lib -lyaml -L$SQLITE_PREFIX/lib -lsqlite3 -lstdc++"
if [ "$ngx_module_link" = DYNAMIC ]; then
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name="ngx_http_api_gateway_module"
ngx_module_incs=$REQUIRED_INCS
ngx_module_libs=$REQUIRED_LIBS
ngx_module_deps="$DEPS"
ngx_module_srcs="$SRCS"
. auto/module
ngx_module_type=HTTP_AUX_FILTER
ngx_module_name="ngx_dynamic_conf_module"
ngx_module_incs=$REQUIRED_INCS
ngx_module_libs=$REQUIRED_LIBS
ngx_module_deps="$DEPS"
ngx_module_srcs="$SRCS"
. auto/module
ngx_module_type=STREAM
ngx_module_name="ngx_stream_api_gateway_module"
ngx_module_incs=$REQUIRED_INCS
ngx_module_libs=$REQUIRED_LIBS
ngx_module_deps="$DEPS"
ngx_module_srcs="$SRCS"
. auto/module
ngx_module_type=CORE
ngx_module_name="ngx_api_gateway_cfg_module"
ngx_module_incs=$REQUIRED_INCS
ngx_module_libs=$REQUIRED_LIBS
ngx_module_deps="$CORE_MODULE_DEPS"
ngx_module_srcs="$CORE_MODULE_SRCS"
. auto/module
elif [ "$ngx_module_link" = ADDON ]; then
STREAM_MODULES="$STREAM_MODULES ngx_stream_api_gateway_module"
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_api_gateway_module ngx_dynamic_conf_module"
EVENT_MODULES="$EVENT_MODULES ngx_api_gateway_cfg_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $SRCS $CORE_MODULE_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $DEPS $CORE_MODULE_DEPS"
CORE_INCS="$CORE_INCS $REQUIRED_INCS"
CORE_LIBS="$CORE_LIBS $REQUIRED_LIBS"
fi