cvs: php-gtk /win32 buildconf.js config.w32.in confutils.js
| From: | Steph Fox | Date: | Mon, 31 Oct 2005 11:44:43 +0000 |
| Subject: | cvs: php-gtk /win32 buildconf.js config.w32.in confutils.js | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-1983@lists.php.net to get a copy of this message | ||
sfox Mon Oct 31 06:44:43 2005 EDT
Modified files:
/php-gtk/win32 buildconf.js config.w32.in confutils.js
Log:
Debug support #2
http://cvs.php.net/diff.php/php-gtk/win32/buildconf.js?r1=1.6&r2=1.7&ty=u
Index: php-gtk/win32/buildconf.js
diff -u php-gtk/win32/buildconf.js:1.6 php-gtk/win32/buildconf.js:1.7
--- php-gtk/win32/buildconf.js:1.6 Thu Oct 6 06:04:35 2005
+++ php-gtk/win32/buildconf.js Mon Oct 31 06:44:42 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: buildconf.js,v 1.6 2005/10/06 10:04:35 sfox Exp $ */
+/* $Id: buildconf.js,v 1.7 2005/10/31 11:44:42 sfox Exp $ */
// This generates a configure script for win32 build
var FSO = WScript.CreateObject("Scripting.FileSystemObject");
@@ -144,6 +144,10 @@
FSO.DeleteFolder('Release');
}
+if (FSO.FolderExists('Debug')) {
+ FSO.DeleteFolder('Debug');
+}
+
if (FSO.FileExists('main\\php_gtk_version.h')) {
FSO.DeleteFile('main\\php_gtk_version.h');
}
http://cvs.php.net/diff.php/php-gtk/win32/config.w32.in?r1=1.9&r2=1.10&ty=u
Index: php-gtk/win32/config.w32.in
diff -u php-gtk/win32/config.w32.in:1.9 php-gtk/win32/config.w32.in:1.10
--- php-gtk/win32/config.w32.in:1.9 Sun Oct 2 12:02:49 2005
+++ php-gtk/win32/config.w32.in Mon Oct 31 06:44:43 2005
@@ -1,5 +1,5 @@
// vim:ft=javascript
-// $Id: config.w32.in,v 1.9 2005/10/02 16:02:49 sfox Exp $
+// $Id: config.w32.in,v 1.10 2005/10/31 11:44:43 sfox Exp $
// "Master" config file; think of it as a configure.in equivalent.
STDOUT.WriteBlankLines(1);
@@ -42,7 +42,7 @@
}
STDOUT.WriteBlankLines(1);
-ARG_IS('all', 'Configure all available extensions', 'no');
+
ARG_WITH('php-build', 'Path to where you extracted http://www.php.net/extra/win32build.zip. Assumes
that it is a sibling of this source dir (..\\php_build) if not specified', 'no');
ARG_WITH('cygwin', 'Path to cygwin utilities on your system',
'\\cygwin');
@@ -64,6 +64,8 @@
DEFINE("BUILD_DIR", PHP_GTK_OBJECT_OUT_DIR + "Release");
}
+ARG_IS('all', 'Configure all available extensions', 'no');
+
DEFINE("PHPGTKDLL", "php-gtk2.dll");
DEFINE("PHPGTKLIB", "php-gtk2.lib");
get_version_numbers();
@@ -79,8 +81,9 @@
DEFINE("LIBS", "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib");
if (PHP_GTK_DEBUG == "yes") {
- DEFINE("CFLAGS", "/nologo /LDd /MDd /Gm /ZI /GZ /I . /I ..\\ /I ..\\.. /I main /I
..\\main /I ext /I ..\\ext /I ..\\php5\\main /I ..\\php5\\Zend /I ..\\php5\\TSRM /D ZEND_WIN32 /D
ZTS=1 /D ZEND_DEBUG=0 /D PHP_WIN32 /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /D _USRDLL");
+ DEFINE("CFLAGS", "/nologo /LDd /MDd /Gm /ZI /GZ /I . /I ..\\ /I ..\\.. /I main /I
..\\main /I ext /I ..\\ext /I ..\\php5\\main /I ..\\php5\\Zend /I ..\\php5\\TSRM /D ZEND_WIN32 /D
ZTS=1 /D ZEND_DEBUG=1 /D PHP_WIN32 /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /D _USRDLL");
ADD_FLAG("LDFLAGS", "/debug");
+
} else {
DEFINE("CFLAGS", "/nologo /MT /W3 /GX /O2 /I . /I ..\\ /I ..\\.. /I main /I
..\\main /I ext /I ..\\ext /I ..\\php5\\main /I ..\\php5\\Zend /I ..\\php5\\TSRM /D ZEND_WIN32 /D
ZTS=1 /D ZEND_DEBUG=0 /D PHP_WIN32 /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /D _USRDLL");
}
http://cvs.php.net/diff.php/php-gtk/win32/confutils.js?r1=1.16&r2=1.17&ty=u
Index: php-gtk/win32/confutils.js
diff -u php-gtk/win32/confutils.js:1.16 php-gtk/win32/confutils.js:1.17
--- php-gtk/win32/confutils.js:1.16 Sat Oct 1 12:24:42 2005
+++ php-gtk/win32/confutils.js Mon Oct 31 06:44:43 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-// $Id: confutils.js,v 1.16 2005/10/01 16:24:42 sfox Exp $
+// $Id: confutils.js,v 1.17 2005/10/31 11:44:43 sfox Exp $
/* set vars */
var STDOUT = WScript.StdOut;
@@ -123,7 +123,11 @@
vfile.WriteLine("#define PHP_GTK_MAJOR_VERSION " + major);
vfile.WriteLine("#define PHP_GTK_MINOR_VERSION " + minor);
vfile.WriteLine("#define PHP_GTK_RELEASE_VERSION " + release);
- vfile.WriteLine("#define PHP_GTK_EXTRA_VERSION \"" + extra + "\"");
+ if (PHP_GTK_DEBUG) {
+ vfile.WriteLine("#define PHP_GTK_EXTRA_VERSION \"" + extra + "
(DEBUG)\"");
+ } else {
+ vfile.WriteLine("#define PHP_GTK_EXTRA_VERSION \"" + extra + "\"");
+ }
DEFINE('PHP_GTK_VERSION_STRING', version);
}
@@ -509,7 +513,7 @@
}
}
- STDOUT.WriteLine(" <not found>");
+ ERROR(" " + libname + " not found - aborting configure process");
return false;
}