summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-01-02 18:03:00 (GMT)
committerPierre Joye <pajoye@php.net>2011-01-02 18:03:00 (GMT)
commit163780af5655c8581375e318796034ab168269eb (patch)
tree729088b4327f3f342e9e4ab3adade1732fed0d50 /win32
parent97c5d74d7842dde1d7c1d8c1dfb7b918e2b7c6f3 (diff)
downloadphp-163780af5655c8581375e318796034ab168269eb.tar.gz
- generate a list of ext and how they are built, should be updated by phpize'd make (un)install as well, later
Diffstat (limited to 'win32')
-rw-r--r--win32/build/Makefile1
-rw-r--r--win32/build/confutils.js12
2 files changed, 13 insertions, 0 deletions
diff --git a/win32/build/Makefile b/win32/build/Makefile
index 0ae5e23..61734bb 100644
--- a/win32/build/Makefile
+++ b/win32/build/Makefile
@@ -182,6 +182,7 @@ build-devel: build-headers build-lib
@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
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index c2a4b93..ed5c8a5 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -1666,6 +1666,7 @@ function generate_phpize()
}
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 @@ function generate_phpize()
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 */