cvs: php-src(PHP_5_3) /win32/build projectgen.js
| From: | Steph Fox | Date: | Fri, 18 Jul 2008 02:53:06 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /win32/build projectgen.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-51225@lists.php.net to get a copy of this message | ||
sfox Fri Jul 18 02:53:06 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/win32/build projectgen.js
Log:
- SAPIs are go.
Caveat: aolserver, isapi, nsapi, pi3web and (obviously) Linux-specific modules not tested.
http://cvs.php.net/viewvc.cgi/php-src/win32/build/projectgen.js?r1=1.1.2.4&r2=1.1.2.5&diff_format=u
Index: php-src/win32/build/projectgen.js
diff -u php-src/win32/build/projectgen.js:1.1.2.4 php-src/win32/build/projectgen.js:1.1.2.5
--- php-src/win32/build/projectgen.js:1.1.2.4 Wed Jul 16 22:25:46 2008
+++ php-src/win32/build/projectgen.js Fri Jul 18 02:53:06 2008
@@ -290,15 +290,22 @@
ext = address.slice(address.lastIndexOf("\\")+1, address.length-4);
EXT = ext.toUpperCase();
+ if (path.match(/(sapi|ext)/)) {
+ rel = "..\\..\\";
+ } else {
+ rel = "..\\";
+ }
+
/* pick up local flags and libs */
cflags = (get_define("CFLAGS_" + EXT) ? get_define("CFLAGS_" + EXT) :
"");
cflags += (ext.match(/(TSRM|Zend)/) ? "/D TSRM_EXPORTS " : "");
cflags += (ext.match(/Zend/) ? "/D LIBZEND_EXPORTS " : "");
libs = get_define("LIBS_" + EXT);
ldflags = get_define("LDFLAGS_" + EXT);
- contents = contents.replace(/LOCALCPP/, cflags + "/c");
+ ldflags = (ldflags ? ldflags.replace(/(\.\.\\)/g, rel + "$1") : "");
+ contents = contents.replace(/LOCALCPP/, cflags + " /c");
contents = contents.replace(/LOCALLIBS\s/, (libs ? libs + " " : ""));
- contents = contents.replace(/LOCALLDFLAGS\s/, (ldflags ? ldflags + " " :
""));
+ contents = contents.replace(/LOCALLDFLAGS\s/, ldflags);
if (ext.match("Zend")) {
arr = new Array("ini", "language");
@@ -331,18 +338,14 @@
contents = contents.replace(/\"cgi/g, '"' + newext);
contents = contents.replace(/cgi\.exe/g, "php-cgi.exe");
- } else if (ext == "embed") {
-
- /* leave embed alone for now */
- continue;
-
} else {
- /* change of address: server modules get a prefix */
- /* DOESN'T WORK YET */
- continue;
- newext = "php5" + ext;
+ /* there's always one... most sapis just get a 'php5' prefix */
+ newext = (ext.match(/apache2handler/) ? "php5apache2" : "php5" + ext);
address = address.replace(ext + ".dsp", newext + ".dsp");
+ srcpath = ".\\";
+ oldext = new RegExp(ext, "g");
+ contents = contents.replace(oldext, newext);
}
contents = contents.replace("CFG=" + ext, "CFG=" + newext);