xref: /php-src/sapi/phpdbg/config.w32 (revision 6e825dfe)
1ARG_ENABLE('phpdbg', 'Build phpdbg', 'no');
2ARG_ENABLE('phpdbgs', 'Build phpdbg shared', 'no');
3ARG_ENABLE('phpdbg-debug', 'Build phpdbg in debug mode to enable additional \
4diagnostic output for developing and troubleshooting phpdbg itself', 'no');
5
6PHPDBG_SOURCES='phpdbg.c phpdbg_prompt.c phpdbg_cmd.c phpdbg_info.c phpdbg_help.c phpdbg_break.c ' +
7		'phpdbg_print.c phpdbg_bp.c phpdbg_list.c phpdbg_utils.c ' +
8		'phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_win.c phpdbg_btree.c '+
9		'phpdbg_parser.c phpdbg_lexer.c phpdbg_sigsafe.c phpdbg_io.c phpdbg_out.c';
10PHPDBG_DLL='php' + PHP_VERSION + 'phpdbg.dll';
11PHPDBG_EXE='phpdbg.exe';
12PHPDBG_CFLAGS='/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1';
13
14var PHP_PHPDBG_PGO = false;
15var PHP_PHPDBGS_PGO = false;
16
17if (PHP_PHPDBG == "yes") {
18	SAPI('phpdbg', PHPDBG_SOURCES, PHPDBG_EXE, PHPDBG_CFLAGS);
19	ADD_FLAG("LIBS_PHPDBG", "ws2_32.lib user32.lib");
20	ADD_FLAG("CFLAGS_PHPDBG", "/D YY_NO_UNISTD_H");
21	ADD_FLAG("LDFLAGS_PHPDBG", "/stack:8388608");
22
23	if(PHP_PHPDBG_DEBUG == "yes") {
24		ADD_FLAG("CFLAGS_PHPDBG", "/D PHPDBG_DEBUG=1");
25	}
26}
27
28if (PHP_PHPDBGS == "yes") {
29	SAPI('phpdbgs', PHPDBG_SOURCES, PHPDBG_DLL, '/D PHP_PHPDBG_EXPORTS');
30	ADD_FLAG("LIBS_PHPDBGS", "ws2_32.lib user32.lib");
31	ADD_FLAG("CFLAGS_PHPDBGS", "/D YY_NO_UNISTD_H");
32
33	if(PHP_PHPDBG_DEBUG == "yes") {
34		ADD_FLAG("CFLAGS_PHPDBGS", "/D PHPDBG_DEBUG=1");
35	}
36}
37