Tarantool nginx upstream module
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ngx_addon_name="ngx_http_tnt_module"
  2. libs="-lyajl -lmsgpuck"
  3. include_paths=" \
  4. $ngx_addon_dir/src \
  5. $ngx_addon_dir/third_party \
  6. "
  7. test -f $ngx_addon_dir/third_party/yajl/build/yajl-2.1.0/lib/libyajl_s.a &&
  8. test -f $ngx_addon_dir/third_party/msgpuck/libmsgpuck.a && {
  9. libs=" \
  10. $ngx_addon_dir/third_party/yajl/build/yajl-2.1.0/lib/libyajl_s.a \
  11. $ngx_addon_dir/third_party/msgpuck/libmsgpuck.a \
  12. "
  13. include_paths="${include_paths} \
  14. $ngx_addon_dir/third_party/msgpuck \
  15. $ngx_addon_dir/third_party/yajl/build/yajl-2.1.0/include \
  16. "
  17. }
  18. module_src_dir="$ngx_addon_dir/src"
  19. sources=" \
  20. $module_src_dir/json_encoders.c \
  21. $module_src_dir/tp_transcode.c \
  22. $module_src_dir/ngx_http_tnt_module.c \
  23. "
  24. headers=" \
  25. $module_src_dir/debug.h \
  26. $module_src_dir/tp_ext.h \
  27. $module_src_dir/json_encoders.h \
  28. $module_src_dir/tp_transcode.h \
  29. "
  30. old_style_build=yes
  31. if test -n "$ngx_module_link"; then
  32. old_style_build=no
  33. fi
  34. #
  35. # Old-style build [[
  36. if test "$old_style_build" = "yes"; then
  37. CORE_INCS=" \
  38. $CORE_INCS \
  39. $ngx_feature_path \
  40. "
  41. CORE_LIBS=" \
  42. $CORE_LIBS \
  43. $ngx_feature_libs \
  44. $libs \
  45. "
  46. HTTP_MODULES=" \
  47. $HTTP_MODULES \
  48. $ngx_addon_name \
  49. "
  50. NGX_ADDON_SRCS=" \
  51. $NGX_ADDON_SRCS \
  52. $sources \
  53. "
  54. for path in $include_paths; do
  55. CFLAGS="$CFLAGS -I$path"
  56. done
  57. # ]]
  58. # New-style build [[
  59. else
  60. ngx_module_type=HTTP
  61. ngx_module_name=$ngx_addon_name
  62. ngx_module_incs=$include_paths
  63. ngx_module_deps=$headers
  64. ngx_module_srcs=$sources
  65. ngx_module_libs=$libs
  66. . auto/module
  67. # ]]
  68. fi