mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
- generate a list of ext and how they are built, should be updated by phpize'd make (un)install as well, later
This commit is contained in:
parent
e13c26a141
commit
f62ca3e4bf
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -223,6 +223,7 @@ if (DSP == true) {
|
||||
}
|
||||
|
||||
// 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\");");
|
||||
|
Loading…
Reference in New Issue
Block a user