Klaus Demo nginx / e24b57a
ngx_cpp_test_module Igor Sysoev 13 years ago
4 changed file(s) with 36 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
391391 fi
392392
393393
394 if [ $NGX_CPP_TEST_MODULE = YES ]; then
395 NGX_MISC_SRCS="$NGX_MISC_SRCS $NGX_CPP_TEST_SRCS"
396 fi
397
398
394399 cat << END > $NGX_MODULES_C
395400
396401 #include <ngx_config.h>
118118 USE_LIBXSLT=NO
119119
120120 NGX_GOOGLE_PERFTOOLS=NO
121 NGX_CPP_TEST=NO
121122
122123 NGX_CPU_CACHE_LINE=
123124
207208 --without-mail_smtp_module) MAIL_SMTP=NO ;;
208209
209210 --with-google_perftools_module) NGX_GOOGLE_PERFTOOLS=YES ;;
211 --with-cpp_test_module) NGX_CPP_TEST_MODULE=YES ;;
210212
211213 --add-module=*) NGX_ADDONS="$NGX_ADDONS $value" ;;
212214
326328 --without-mail_smtp_module disable ngx_mail_smtp_module
327329
328330 --with-google_perftools_module enable ngx_google_perftools_module
331 --with-cpp_test_module enable ngx_cpp_test_module
329332
330333 --add-module=PATH enable an external module
331334
473473 NGX_GOOGLE_PERFTOOLS_MODULE=ngx_google_perftools_module
474474 NGX_GOOGLE_PERFTOOLS_SRCS=src/misc/ngx_google_perftools_module.c
475475
476 NGX_CPP_TEST_SRCS=src/misc/ngx_cpp_test_module.cpp
0
1 // stub module to test header files' C++ compatibilty
2
3 extern "C" {
4 #include <ngx_config.h>
5 #include <ngx_core.h>
6 #include <ngx_event.h>
7 #include <ngx_event_connect.h>
8 #include <ngx_event_pipe.h>
9
10 #include <ngx_http.h>
11
12 #include <ngx_mail.h>
13 #include <ngx_mail_pop3_module.h>
14 #include <ngx_mail_imap_module.h>
15 #include <ngx_mail_smtp_module.h>
16 }
17
18 // nginx header files should go before other, because they define 64-bit off_t
19 // #include <string>
20
21
22 void
23 ngx_cpp_test_handler(void *data)
24 {
25 return;
26 }