pajoye                                   Sun, 02 Jan 2011 18:03:00 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306997

Log:
- generate a list of ext and how they are built, should be updated by phpize'd 
make (un)install as well, later

Changed paths:
    U   php/php-src/branches/PHP_5_3/win32/build/Makefile
    U   php/php-src/branches/PHP_5_3/win32/build/confutils.js
    U   php/php-src/branches/PHP_5_3/win32/build/phpize.js.in
    U   php/php-src/trunk/win32/build/Makefile
    U   php/php-src/trunk/win32/build/confutils.js

Modified: php/php-src/branches/PHP_5_3/win32/build/Makefile
===================================================================
--- php/php-src/branches/PHP_5_3/win32/build/Makefile   2011-01-02 17:22:06 UTC 
(rev 306996)
+++ php/php-src/branches/PHP_5_3/win32/build/Makefile   2011-01-02 18:03:00 UTC 
(rev 306997)
@@ -182,6 +182,7 @@
        @copy win32\build\template.rc $(BUILD_DIR_DEV)\build\ /y >nul
        @copy $(BUILD_DIR)\devel\config.phpize.js $(BUILD_DIR_DEV)\script\ /y 
>nul
        @copy $(BUILD_DIR)\devel\phpize.js $(BUILD_DIR_DEV)\script\ /y >nul
+       @copy $(BUILD_DIR)\devel\ext_dep.js $(BUILD_DIR_DEV)\script\ /y >nul

 install-sdk: build-devel
        @xcopy /Q /Y /E /I $(BUILD_DIR_DEV)\* $(PHP_PREFIX)\SDK

Modified: php/php-src/branches/PHP_5_3/win32/build/confutils.js
===================================================================
--- php/php-src/branches/PHP_5_3/win32/build/confutils.js       2011-01-02 
17:22:06 UTC (rev 306996)
+++ php/php-src/branches/PHP_5_3/win32/build/confutils.js       2011-01-02 
18:03:00 UTC (rev 306997)
@@ -1666,6 +1666,7 @@
        }

        var MF = FSO.CreateTextFile(dest + "/phpize.js", true);
+       var DEPS = FSO.CreateTextFile(dest + "/ext_deps.js", true);
        prefix = get_define("PHP_PREFIX");
        prefix = prefix.replace(new RegExp("/", "g"), "\\");
        prefix = prefix.replace(new RegExp("\\\\", "g"), "\\\\");
@@ -1675,11 +1676,22 @@
        MF.WriteLine("var PHP_VERSION=" + PHP_VERSION);
        MF.WriteLine("var PHP_MINOR_VERSION=" + PHP_MINOR_VERSION);
        MF.WriteLine("var PHP_RELEASE_VERSION=" + PHP_RELEASE_VERSION);
+       MF.WriteBlankLines(1);
+       MF.WriteLine("/* Genereted extensions list with mode (static/shared) 
*/");
+
+       var count = extensions_enabled.length;
+       for (i in extensions_enabled) {
+               out = "PHP_" + extensions_enabled[i][0].toUpperCase() + 
"_SHARED=" + (extensions_enabled[i][1] == 'shared' ? 'True' : 'False');
+               DEPS.WriteLine(out);
+               MF.WriteLine(out);
+       }
+
        MF.WriteBlankLines(2);
        MF.WriteLine("/* Genereted win32/build/phpize.js.in */");
        MF.WriteBlankLines(1);
        MF.Write(file_get_contents("win32/build/phpize.js.in"));
        MF.Close();
+       DEPS.Close();

        /* Generate flags file */
        /* spit out variable definitions */

Modified: php/php-src/branches/PHP_5_3/win32/build/phpize.js.in
===================================================================
--- php/php-src/branches/PHP_5_3/win32/build/phpize.js.in       2011-01-02 
17:22:06 UTC (rev 306996)
+++ php/php-src/branches/PHP_5_3/win32/build/phpize.js.in       2011-01-02 
18:03:00 UTC (rev 306997)
@@ -223,6 +223,7 @@
 }

 // Pull in code from sapi and extensions
+
 modules = file_get_contents(PHP_DIR + "/script/config.w32.phpize.in");

 C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols', \"no\");");

Modified: php/php-src/trunk/win32/build/Makefile
===================================================================
--- php/php-src/trunk/win32/build/Makefile      2011-01-02 17:22:06 UTC (rev 
306996)
+++ php/php-src/trunk/win32/build/Makefile      2011-01-02 18:03:00 UTC (rev 
306997)
@@ -182,6 +182,7 @@
        @copy win32\build\template.rc $(BUILD_DIR_DEV)\build\ /y >nul
        @copy $(BUILD_DIR)\devel\config.phpize.js $(BUILD_DIR_DEV)\script\ /y 
>nul
        @copy $(BUILD_DIR)\devel\phpize.js $(BUILD_DIR_DEV)\script\ /y >nul
+       @copy $(BUILD_DIR)\devel\ext_dep.js $(BUILD_DIR_DEV)\script\ /y >nul

 install-sdk: build-devel
        @xcopy /Q /Y /E /I $(BUILD_DIR_DEV)\* $(PHP_PREFIX)\SDK

Modified: php/php-src/trunk/win32/build/confutils.js
===================================================================
--- php/php-src/trunk/win32/build/confutils.js  2011-01-02 17:22:06 UTC (rev 
306996)
+++ php/php-src/trunk/win32/build/confutils.js  2011-01-02 18:03:00 UTC (rev 
306997)
@@ -1666,6 +1666,7 @@
        }

        var MF = FSO.CreateTextFile(dest + "/phpize.js", true);
+       var DEPS = FSO.CreateTextFile(dest + "/ext_deps.js", true);
        prefix = get_define("PHP_PREFIX");
        prefix = prefix.replace(new RegExp("/", "g"), "\\");
        prefix = prefix.replace(new RegExp("\\\\", "g"), "\\\\");
@@ -1675,11 +1676,22 @@
        MF.WriteLine("var PHP_VERSION=" + PHP_VERSION);
        MF.WriteLine("var PHP_MINOR_VERSION=" + PHP_MINOR_VERSION);
        MF.WriteLine("var PHP_RELEASE_VERSION=" + PHP_RELEASE_VERSION);
+       MF.WriteBlankLines(1);
+       MF.WriteLine("/* Genereted extensions list with mode (static/shared) 
*/");
+
+       var count = extensions_enabled.length;
+       for (i in extensions_enabled) {
+               out = "PHP_" + extensions_enabled[i][0].toUpperCase() + 
"_SHARED=" + (extensions_enabled[i][1] == 'shared' ? 'True' : 'False');
+               DEPS.WriteLine(out);
+               MF.WriteLine(out);
+       }
+
        MF.WriteBlankLines(2);
        MF.WriteLine("/* Genereted win32/build/phpize.js.in */");
        MF.WriteBlankLines(1);
        MF.Write(file_get_contents("win32/build/phpize.js.in"));
        MF.Close();
+       DEPS.Close();

        /* Generate flags file */
        /* spit out variable definitions */

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

Reply via email to