del /F /Q $(BUILD_DIR)\*.*
test:
- %COMSPEC% /c <<test_suite_uses_lame_env_vars.bat
+ <<test_suite_uses_lame_env_vars.bat
set TEST_PHP_EXECUTABLE=$(BUILD_DIR)\\php.exe
$(BUILD_DIR)\\php.exe -d open_basedir= -d safe_mode=0 -d output_buffering=0 run-tests.php $(TESTS)
<<NOKEEP
// that we need
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('extra-includes', 'Extra include path to use when building everything', '');
+ARG_WITH('extra-libs', 'Extra library path to use when linking everything', '');
+
var php_usual_include_suspects = "..\\php_build\\include;..\\win32build\\include;..\\bindlib_w32";
var php_usual_lib_suspects = "..\\php_build\\lib;..\\win32build\\lib;..\\bindlib_w32";
}
}
+function add_extra_dirs()
+{
+ var path, i, f;
+
+ path = PHP_EXTRA_INCLUDES.split(';');
+ for (i = 0; i < path.length; i++) {
+ f = FSO.GetAbsolutePathName(path[i]);
+ if (FSO.FolderExists(f)) {
+ ADD_FLAG("CFLAGS", '/I "' + f + '" ');
+ }
+ }
+ path = PHP_EXTRA_LIBS.split(';');
+ for (i = 0; i < path.length; i++) {
+ f = FSO.GetAbsolutePathName(path[i]);
+ if (FSO.FolderExists(f)) {
+ ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" ');
+ }
+ }
+
+}
+
probe_basic_headers();
+add_extra_dirs();
//DEFINE("PHP_BUILD", PHP_PHP_BUILD);
+----------------------------------------------------------------------+
*/
-// $Id: confutils.js,v 1.7 2003-12-03 17:04:30 wez Exp $
+// $Id: confutils.js,v 1.8 2003-12-03 18:31:04 wez Exp $
var STDOUT = WScript.StdOut;
var STDERR = WScript.StdErr;
path_to_check += ";" + php_usual_lib_suspects;
}
- var p = search_paths(libname, path_to_check, "LIBS");
+ var p = search_paths(libname, path_to_check, "LIB");
var have = 0;
if (typeof(p) == "string") {
dir = get_define("BUILD_DIR");
build_dirs.sort();
last = null;
+
+ if (!FSO.FolderExists(dir)) {
+ FSO.CreateFolder(dir);
+ }
+
for (i = 0; i < build_dirs.length; i++) {
bd = FSO.BuildPath(dir, build_dirs[i]);
if (bd == last) {