edink Sun May 7 00:07:53 2006 UTC Modified files: /php-src/win32/build confutils.js Log: MFB: Enable separate build dir for SAPIs, the same way it is possible for EXTENSIONs http://cvs.php.net/viewcvs.cgi/php-src/win32/build/confutils.js?r1=1.61&r2=1.62&diff_format=u Index: php-src/win32/build/confutils.js diff -u php-src/win32/build/confutils.js:1.61 php-src/win32/build/confutils.js:1.62 --- php-src/win32/build/confutils.js:1.61 Sun Jan 1 13:09:59 2006 +++ php-src/win32/build/confutils.js Sun May 7 00:07:53 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -// $Id: confutils.js,v 1.61 2006/01/01 13:09:59 sniper Exp $ +// $Id: confutils.js,v 1.62 2006/05/07 00:07:53 edink Exp $ var STDOUT = WScript.StdOut; var STDERR = WScript.StdErr; @@ -871,14 +871,20 @@ return resname; } -function SAPI(sapiname, file_list, makefiletarget, cflags) +function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir) { var SAPI = sapiname.toUpperCase(); var ldflags; var resname; var ld = "@$(LD)"; - STDOUT.WriteLine("Enabling SAPI " + configure_module_dirname); + if (typeof(obj_dir) == "undefined") { + sapiname_for_printing = configure_module_dirname; + } else { + sapiname_for_printing = configure_module_dirname + " (via " + obj_dir + ")"; + } + + STDOUT.WriteLine("Enabling SAPI " + sapiname_for_printing); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); @@ -888,7 +894,7 @@ ADD_FLAG('CFLAGS_' + SAPI, cflags); } - ADD_SOURCES(configure_module_dirname, file_list, sapiname); + ADD_SOURCES(configure_module_dirname, file_list, sapiname, obj_dir); MFO.WriteBlankLines(1); MFO.WriteLine("# SAPI " + sapiname); MFO.WriteBlankLines(1); @@ -897,7 +903,7 @@ resname = generate_version_info_resource(makefiletarget, configure_module_dirname); MFO.WriteLine(makefiletarget + ": $(BUILD_DIR)\\" + makefiletarget); - MFO.WriteLine("[EMAIL PROTECTED] SAPI " + configure_module_dirname + " build complete"); + MFO.WriteLine("[EMAIL PROTECTED] SAPI " + sapiname_for_printing + " build complete"); MFO.WriteLine("$(BUILD_DIR)\\" + makefiletarget + ": $(DEPS_" + SAPI + ") $(" + SAPI + "_GLOBAL_OBJS) $(BUILD_DIR)\\$(PHPLIB) $(BUILD_DIR)\\" + resname); if (makefiletarget.match(new RegExp("\\.dll$"))) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php