xref: /PHP-7.0/sapi/phpdbg/config.w32 (revision 03a43d50)
1ARG_ENABLE('phpdbg', 'Build phpdbg', 'no');
2ARG_ENABLE('phpdbgs', 'Build phpdbg shared', 'no');
3ARG_ENABLE('phpdbg-webhelper', 'Build phpdbg webhelper', 'yes');
4
5PHPDBG_SOURCES='phpdbg.c phpdbg_prompt.c phpdbg_cmd.c phpdbg_info.c phpdbg_help.c phpdbg_break.c ' +
6		'phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c ' +
7		'phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_win.c phpdbg_btree.c '+
8		'phpdbg_parser.c phpdbg_lexer.c phpdbg_sigsafe.c phpdbg_wait.c phpdbg_io.c ' +
9		'phpdbg_sigio_win32.c phpdbg_eol.c phpdbg_out.c';
10PHPDBG_DLL='php' + PHP_VERSION + 'phpdbg.dll';
11PHPDBG_EXE='phpdbg.exe';
12PHPDBG_CFLAGS='/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1';
13
14if (PHP_PHPDBG == "yes") {
15	SAPI('phpdbg', PHPDBG_SOURCES, PHPDBG_EXE, PHPDBG_CFLAGS);
16	ADD_FLAG("LIBS_PHPDBG", "ws2_32.lib user32.lib");
17	ADD_FLAG("CFLAGS_PHPDBG", "/D YY_NO_UNISTD_H");
18	ADD_FLAG("LDFLAGS_PHPDBG", "/stack:8388608");
19
20	if (PHP_PHPDBG_WEBHELPER == "yes") {
21		EXTENSION('phpdbg_webhelper', 'phpdbg_rinit_hook.c phpdbg_webdata_transfer.c');
22	}
23}
24
25if (PHP_PHPDBGS == "yes") {
26	SAPI('phpdbgs', PHPDBG_SOURCES, PHPDBG_DLL, '/D PHP_PHPDBG_EXPORTS /I win32');
27	ADD_FLAG("LIBS_PHPDBGS", "ws2_32.lib user32.lib");
28	ADD_FLAG("CFLAGS_PHPDBGS", "/D YY_NO_UNISTD_H");
29}
30
31