Skip to content

Commit c5ccaf1

Browse files
committed
implemented copy libs of core exts in phpize mode
1 parent 35b077f commit c5ccaf1

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

win32/build/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ msi-installer: dist
183183
# need to redirect, since INSTALL is a file in the root...
184184
install: really-install install-sdk
185185

186-
build-lib:
186+
build-lib: build-ext-libs
187187
@if not exist $(BUILD_DIR_DEV)\lib mkdir $(BUILD_DIR_DEV)\lib >nul
188188
@copy $(BUILD_DIR)\$(PHPLIB) $(BUILD_DIR_DEV)\lib /y >nul
189189

win32/build/confutils.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,8 +1952,18 @@ function generate_makefile()
19521952
for (var i in extensions_enabled) {
19531953
var lib = "php_" + extensions_enabled[i][0] + ".lib";
19541954
var dll = "php_" + extensions_enabled[i][0] + ".dll";
1955-
MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib\\" + lib);
1956-
MF.WriteLine(" @copy $(BUILD_DIR)\\" + dll + " $(PHP_PREFIX)\\" + dll);
1955+
MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib");
1956+
MF.WriteLine(" @copy $(BUILD_DIR)\\" + dll + " $(PHP_PREFIX)");
1957+
}
1958+
} else {
1959+
MF.WriteBlankLines(1);
1960+
MF.WriteLine("build-ext-libs:");
1961+
for (var i in extensions_enabled) {
1962+
var lib = "php_" + extensions_enabled[i][0] + ".lib";
1963+
1964+
if ('shared' == extensions_enabled[i][1]) {
1965+
MF.WriteLine(" @copy $(BUILD_DIR)\\" + lib + " $(BUILD_DIR_DEV)\\lib");
1966+
}
19571967
}
19581968
}
19591969
TF.Close();

0 commit comments

Comments
 (0)