File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ msi-installer: dist
183
183
# need to redirect, since INSTALL is a file in the root...
184
184
install : really-install install-sdk
185
185
186
- build-lib :
186
+ build-lib : build-ext-libs
187
187
@if not exist $(BUILD_DIR_DEV ) \l ib mkdir $(BUILD_DIR_DEV ) \l ib > nul
188
188
@copy $(BUILD_DIR ) \$ (PHPLIB) $(BUILD_DIR_DEV ) \l ib /y > nul
189
189
Original file line number Diff line number Diff line change @@ -1952,8 +1952,18 @@ function generate_makefile()
1952
1952
for ( var i in extensions_enabled ) {
1953
1953
var lib = "php_" + extensions_enabled [ i ] [ 0 ] + ".lib" ;
1954
1954
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
+ }
1957
1967
}
1958
1968
}
1959
1969
TF . Close ( ) ;
You can’t perform that action at this time.
0 commit comments