sfox            Sun Jul 20 01:19:45 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/win32/build        block.template.dsw projectgen.js template.dsw 
  Log:
  - Update get_define() calls to reflect earlier change in return value on 
failure
  - Rename output files (to avoid that build option for "php5ts.exe")
  - Add libpath to intermediate dir path (avoids a naming collision that wasn't 
there last week)
  - Don't make assumptions about trailing whitespace in incoming data
  
http://cvs.php.net/viewvc.cgi/php-src/win32/build/block.template.dsw?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/win32/build/block.template.dsw
diff -u php-src/win32/build/block.template.dsw:1.1.2.2 
php-src/win32/build/block.template.dsw:1.1.2.3
--- php-src/win32/build/block.template.dsw:1.1.2.2      Wed Jul 16 22:25:46 2008
+++ php-src/win32/build/block.template.dsw      Sun Jul 20 01:19:45 2008
@@ -8,7 +8,7 @@
 Package=<4>
 {{{
     Begin Project Dependency
-    Project_Dep_Name php5dllts
+    Project_Dep_Name php5ts
     End Project Dependency
 }}}
 
http://cvs.php.net/viewvc.cgi/php-src/win32/build/projectgen.js?r1=1.1.2.6&r2=1.1.2.7&diff_format=u
Index: php-src/win32/build/projectgen.js
diff -u php-src/win32/build/projectgen.js:1.1.2.6 
php-src/win32/build/projectgen.js:1.1.2.7
--- php-src/win32/build/projectgen.js:1.1.2.6   Fri Jul 18 17:35:37 2008
+++ php-src/win32/build/projectgen.js   Sun Jul 20 01:19:45 2008
@@ -39,6 +39,7 @@
        FSO.FolderExists("tmp\\src") ? "" : FSO.CreateFolder("tmp\\src");
        var src = FSO.CreateTextFile("tmp\\src\\" + fname, true);
        var out = get_define("BUILD_DIR");
+       var libpath = "";
 
        for (i = 0; i < arr.length; i++) {
                if (arr[i].length > 1) {
@@ -49,9 +50,15 @@
                                
arr[i].match(/zend_(ini|language)_scanner_defs\.h/)) {
                                continue;
                        }
+
+                       libpath = arr[i].substr(2, arr[i].lastIndexOf("\\") - 
2);
+                       if (libpath) {
+                               libpath = "\\" + libpath;
+                       }
+
                        src.WriteLine("# Begin Source File");
                        src.WriteLine("SOURCE=" + arr[i]);
-                       src.WriteLine('# PROP Intermediate_Dir "' + intpath + 
out + '\\' + path + '"');
+                       src.WriteLine('# PROP Intermediate_Dir "' + intpath + 
out + '\\' + path + libpath + '"');
                        src.WriteLine("# End Source File");
                        src.WriteBlankLines(1);
                }
@@ -195,21 +202,21 @@
        return headers;
 }
 
-/* generate php5dll[ts].dsp */
+/* generate php5[ts].dsp */
 function generate_core_dsp(core_headers, core_sources, headers, sources, 
cflags, ldflags, libs)
 {
        var ts = (PHP_ZTS != "no" ? "ts" : "");
-       var extname = "php5dll" + ts;
+       var extname = "php5" + ts;
        var tmpl = generate_dsp_file(extname, ".", false, false);
 
-       cflags += (get_define("CFLAGS_PHP") ? 
get_define("CFLAGS_PHP").replace("/D _USRDLL", "") : "");
+       cflags += get_define("CFLAGS_PHP").replace("/D _USRDLL", "");
        cflags = cflags.replace(/\/(I|D)(\S)/g, "/$1 $2");
-       ldflags += (get_define("LDFLAGS_PHP") ? get_define("LDFLAGS_PHP") : "");
-       libs += (get_define("LIBS_PHP") ? " " + get_define("LIBS_PHP") : "");
+       ldflags += get_define("LDFLAGS_PHP");
+       libs += get_define("LIBS_PHP");
 
-       tmpl = tmpl.replace(/ LOCALCPP/, cflags.replace(/\"ext/g, '"../ext') + 
" /c");
-       tmpl = tmpl.replace(/ LOCALLIBS/, libs.substr(1));
-       tmpl = tmpl.replace(/ LOCALLDFLAGS/, ldflags);
+       tmpl = tmpl.replace(/LOCALCPP/, cflags.replace(/\"ext/g, '"../ext') + " 
/c");
+       tmpl = tmpl.replace(/LOCALLIBS/, libs);
+       tmpl = tmpl.replace(/LOCALLDFLAGS/, ldflags);
        tmpl = tmpl.replace(extname + ".dll", get_define("PHPDLL"));
 
        wsyslog = (core_headers.match("wsyslog.h") ? "" : 
generate_wsyslog(core_headers));
@@ -225,8 +232,8 @@
        defs = generate_php_defs();
        tmpl = tmpl.replace(/DEFS/, defs);
 
-       dsp = FSO.CreateTextFile("win32\\php5dll" + ts + ".dsp", true);
-       STDOUT.WriteLine("\tGenerating win32\\php5dll" + ts + ".dsp");
+       dsp = FSO.CreateTextFile("win32\\php5" + ts + ".dsp", true);
+       STDOUT.WriteLine("\tGenerating win32\\php5" + ts + ".dsp");
        dsp.Write(tmpl);
        dsp.Close();
 
@@ -297,15 +304,15 @@
                }
 
                /* pick up local flags and libs */
-               cflags = (get_define("CFLAGS_" + EXT) ? get_define("CFLAGS_" + 
EXT) : "");
+               cflags = 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);
-               ldflags = (ldflags ? ldflags.replace(/(\.\.\\)/g, rel + "$1") : 
"");
+               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);
+               contents = contents.replace(/LOCALLIBS/, libs);
+               contents = contents.replace(/LOCALLDFLAGS/, ldflags);
 
                if (ext.match("Zend")) {
                        arr = new Array("ini", "language");
@@ -322,20 +329,18 @@
 
                        if (ext == "cli") {
 
-                               /* change of address: php5ts.dsp */
-                               newext = "php5" + (PHP_ZTS != "no" ? "ts" : "");
-                               address = "win32\\" + newext + ".dsp";
+                               /* change of address: php.dsp */
+                               newext = "cli";
+                               address = "win32\\php.dsp";
                                srcpath = "..\\" + path;
-                               contents = contents.replace(/\"cli/g, '"' + 
newext);
                                contents = contents.replace(/cli\.exe/g, 
"php.exe");
 
                        } else if (ext == "cgi") {
 
-                               /* change of address: php5ts_cgi.dsp */
-                               newext = "php5" + (PHP_ZTS != "no" ? "ts" : "") 
+ "_cgi";
-                               address = "win32\\" + newext + ".dsp";
+                               /* change of address: php-cgi.dsp */
+                               newext = "cgi";
+                               address = "win32\\php-cgi.dsp";
                                srcpath = "..\\" + path;
-                               contents = contents.replace(/\"cgi/g, '"' + 
newext);
                                contents = contents.replace(/cgi\.exe/g, 
"php-cgi.exe");
 
                        } else {
@@ -347,9 +352,9 @@
                                oldext = new RegExp(('[^=\\\\]'+ext), "g");
                                contents = contents.replace(oldext, newext);
                                contents = contents.replace(ext + ".dll", 
newext + ".dll");
+                               contents = contents.replace("CFG=" + ext, 
"CFG=" + newext);
                        }
 
-                       contents = contents.replace("CFG=" + ext, "CFG=" + 
newext);
                        contents = read_src_files(ext, contents, (srcpath ? 
srcpath : false));
                        dsp = FSO.CreateTextFile(address, true);
                        STDOUT.WriteLine("\tGenerating " + address);
@@ -384,7 +389,7 @@
 
                } else {
 
-                       /* bound for php5dll[ts].dsp */
+                       /* bound for php5[ts].dsp */
                        cflags = get_define("CFLAGS_" + EXT);
                        cflags = cflags ? cflags.replace(/-(I|D)/g, " /$1") : 
"";
                        cflags = cflags? cflags.replace(/\/(I|D)\s+/g, "/$1") : 
"";
@@ -534,7 +539,7 @@
        var baseflags = "";
 
        /* store the final path and value of shared in the tmp file */
-       if (!ext.match("php5dll")) {
+       if (!ext.match("php5")) {
                tmpl = ext_dir + "\\" + ext + ".dsp#" + shared + tmpl;
        }
 
@@ -563,7 +568,7 @@
                        path += "..\\";
                }
                type = ".lib";
-       } else if (ext.match("php5dll")) {
+       } else if (ext.match("php5")) {
                path = "..\\";
                type = ".dll";
        } else {
@@ -594,7 +599,7 @@
        incs = incs.replace('"' + path + '."', '".."');
        lcflags = cflags.replace(/\$\(BASE_INCLUDES\)/, incs + (type == ".exe" 
? '/I "..\\sapi" ' : "") + '/I "' + path + '..\\bindlib_w32"');
        tmpl = tmpl.replace(/BASECPP/, (type == ".dll" ? lcflags : 
lcflags.replace(ld + " ", "")));
-       tmpl = tmpl.replace(/BASELIBS/, "/nologo " + get_define("LIBS") + " " + 
(ext.match("php5dll") ? "" : get_define("PHPLIB")));
+       tmpl = tmpl.replace(/BASELIBS/, "/nologo " + get_define("LIBS") + " " + 
(ext.match("php5") ? "" : get_define("PHPLIB")));
        ldflags = 
get_define("LDFLAGS").replace(/\s?(\/nologo|\/libpath:\S+)\s?/g, "");
        tmpl = tmpl.replace(/BASELDFLAGS/, ldflags + (type == ".dll" ? " " + 
get_define("DLL_LDFLAGS") : "") + (debug ? ' /nodefaultlib:"msvcrt"' : ""));
        out = '/out:"' + outpath + "\\" + ext + type + '"' + ' /libpath:"' + 
outpath + '"' + ' /libpath:"..\\' + path + 'bindlib_w32\\' + status + '"';
@@ -606,7 +611,7 @@
        tmpl = tmpl.replace(/TEXTFILES/, txt);
        tmpl = tmpl.replace(/RESOURCEFILES/, res);
 
-       if (ext.match("php5dll")) {
+       if (ext.match("php5")) {
                return tmpl;
        }
 
http://cvs.php.net/viewvc.cgi/php-src/win32/build/template.dsw?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/win32/build/template.dsw
diff -u php-src/win32/build/template.dsw:1.1.2.2 
php-src/win32/build/template.dsw:1.1.2.3
--- php-src/win32/build/template.dsw:1.1.2.2    Wed Jul 16 22:25:46 2008
+++ php-src/win32/build/template.dsw    Sun Jul 20 01:19:45 2008
@@ -30,7 +30,7 @@
 
 ###############################################################################
 
-Project: "php5dllts"=..\win32\php5dllts.dsp - Package Owner=<4>
+Project: "php5ts"=..\win32\php5ts.dsp - Package Owner=<4>
 
 Package=<5>
 {{{

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to