Skip to content

Commit

Permalink
Merge pull request #3 from GetPageSpeed/master
Browse files Browse the repository at this point in the history
Update config to allow dynamic module
  • Loading branch information
limithit authored Apr 17, 2017
2 parents 10b5f6f + 15a6781 commit 3fc25d5
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions config
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
ngx_addon_name=ngx_http_execute_module
HTTP_MODULES="$HTTP_MODULES ngx_http_execute_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_execute_module.c $ngx_addon_dir/ngx_process.c $ngx_addon_dir/ngx_result.c"

EXECUTE_SRCS=" \
$ngx_addon_dir/ngx_http_execute_module.c \
$ngx_addon_dir/ngx_process.c \
$ngx_addon_dir/ngx_result.c \
"

EXECUTE_DEPS=" \
$ngx_addon_dir/ngx_str.h \
$ngx_addon_dir/ngx_result.h \
"

if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=ngx_http_execute_module
ngx_module_deps="$EXECUTE_DEPS"
ngx_module_srcs="$EXECUTE_SRCS"

. auto/module
else
HTTP_MODULES="$HTTP_MODULES ngx_http_execute_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $EXECUTE_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $EXECUTE_DEPS"
fi

0 comments on commit 3fc25d5

Please sign in to comment.