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