wez Sat Jun 4 21:57:04 2005 EDT
Modified files:
/php-src/win32/build config.w32
Log:
Add option for placing the big binaries outside of the source tree.
I find that having Debug_TS sitting in the source tree makes cvs seem much
slower.
http://cvs.php.net/diff.php/php-src/win32/build/config.w32?r1=1.38&r2=1.39&ty=u
Index: php-src/win32/build/config.w32
diff -u php-src/win32/build/config.w32:1.38 php-src/win32/build/config.w32:1.39
--- php-src/win32/build/config.w32:1.38 Sat Jun 4 21:39:07 2005
+++ php-src/win32/build/config.w32 Sat Jun 4 21:57:03 2005
@@ -1,5 +1,5 @@
// vim:ft=javascript
-// $Id: config.w32,v 1.38 2005/06/05 01:39:07 wez Exp $
+// $Id: config.w32,v 1.39 2005/06/05 01:57:03 wez Exp $
// "Master" config file; think of it as a configure.in
// equivalent.
@@ -28,6 +28,14 @@
// avoid picking up midnight commander from cygwin
PATH_PROG('mc', WshShell.Environment("Process").Item("PATH"));
+// stick objects somewhere outside of the source tree
+ARG_ENABLE('object-out-dir', 'Alternate location for binary objects during
build', '');
+if (PHP_OBJECT_OUT_DIR.length) {
+ if (!FSO.FolderExists(PHP_OBJECT_OUT_DIR)) {
+ ERROR('you chosen output directory ' + PHP_OBJECT_OUT_DIR + '
does not exist');
+ }
+ PHP_OBJECT_OUT_DIR += '\\';
+}
ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols
(--enable-debug must not be specified)', 'no');
@@ -99,19 +107,19 @@
// set up the build dir and DLL name
if (PHP_DEBUG == "yes" && PHP_ZTS == "yes") {
- DEFINE("BUILD_DIR", "Debug_TS");
+ DEFINE("BUILD_DIR", PHP_OBJECT_OUT_DIR + "Debug_TS");
DEFINE("PHPDLL", "php5ts_debug.dll");
DEFINE("PHPLIB", "php5ts_debug.lib");
} else if (PHP_DEBUG == "yes" && PHP_ZTS == "no") {
- DEFINE("BUILD_DIR", "Debug");
+ DEFINE("BUILD_DIR", PHP_OBJECT_OUT_DIR + "Debug");
DEFINE("PHPDLL", "php5_debug.dll");
DEFINE("PHPLIB", "php5_debug.lib");
} else if (PHP_DEBUG == "no" && PHP_ZTS == "yes") {
- DEFINE("BUILD_DIR", "Release_TS");
+ DEFINE("BUILD_DIR", PHP_OBJECT_OUT_DIR + "Release_TS");
DEFINE("PHPDLL", "php5ts.dll");
DEFINE("PHPLIB", "php5ts.lib");
} else if (PHP_DEBUG == "no" && PHP_ZTS == "no") {
- DEFINE("BUILD_DIR", "Release");
+ DEFINE("BUILD_DIR", PHP_OBJECT_OUT_DIR + "Release");
DEFINE("PHPDLL", "php5.dll");
DEFINE("PHPLIB", "php5.lib");
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php