config.w32 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. ARG_ENABLE('phpdbg', 'Build phpdbg', 'no');
  2. ARG_ENABLE('phpdbgs', 'Build phpdbg shared', 'no');
  3. ARG_ENABLE('phpdbg-webhelper', 'Build phpdbg webhelper', 'yes');
  4. PHPDBG_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_opcode.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_wait.c phpdbg_io.c ' +
  8. 'phpdbg_sigio_win32.c phpdbg_eol.c phpdbg_out.c';
  9. PHPDBG_DLL='php' + PHP_VERSION + 'phpdbg.dll';
  10. PHPDBG_EXE='phpdbg.exe';
  11. PHPDBG_CFLAGS='/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1';
  12. var PHP_PHPDBG_PGO = false;
  13. var PHP_PHPDBG_WEBHELPER_PGO = false;
  14. var PHP_PHPDBGS_PGO = false;
  15. if (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. if (PHP_PHPDBG_WEBHELPER == "yes") {
  21. EXTENSION('phpdbg_webhelper', 'phpdbg_rinit_hook.c phpdbg_webdata_transfer.c');
  22. }
  23. }
  24. if (PHP_PHPDBGS == "yes") {
  25. SAPI('phpdbgs', PHPDBG_SOURCES, PHPDBG_DLL, '/D PHP_PHPDBG_EXPORTS /I win32');
  26. ADD_FLAG("LIBS_PHPDBGS", "ws2_32.lib user32.lib");
  27. ADD_FLAG("CFLAGS_PHPDBGS", "/D YY_NO_UNISTD_H");
  28. }