com php-src: Added a <in deps path> for includes and libs on configure: win32/build/confutils.js

From: Date: Thu, 04 Jan 2018 07:58:27 +0000
Subject: com php-src: Added a <in deps path> for includes and libs on configure: win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100790@lists.php.net to get a copy of this message
Commit: 8fe0ee690c6a82e3ba568e613280847d996c65b4 Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 4 Jan 2018 08:58:27 +0100 Parents: 34fb94b9f3632c53bbc94ee906b396fee2b05bba Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8fe0ee690c6a82e3ba568e613280847d996c65b4 Log: Added a <in deps path> for includes and libs on configure Changed paths: M win32/build/confutils.js Diff: diff --git a/win32/build/confutils.js b/win32/build/confutils.js index e38cb99..aafd541 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -575,6 +575,21 @@ function DEFINE(name, value) configure_subst.Add(name, value); } +function verbalize_deps_path(path) +{ + var absolute_path = FSO.GetAbsolutePathName(path); + + if (absolute_path.indexOf(PHP_PHP_BUILD) == 0) { + absolute_path = absolute_path.substring(PHP_PHP_BUILD.length).split('\\'); + + if (absolute_path[1] == 'include' || absolute_path[1] == 'lib') { + return "<in deps path> " + absolute_path.join('\\'); + } + } + + return path; +} + // Searches a set of paths for a file; // returns the dir in which the file was found, // true if it was found in the default env path, @@ -621,7 +636,7 @@ function search_paths(thing_to_find, explicit_path, env_name) if (found && place == true) { STDOUT.WriteLine(" <in default path>"); } else if (found) { - STDOUT.WriteLine(" " + place); + STDOUT.WriteLine(" " + verbalize_deps_path(place)); } else { STDOUT.WriteLine(" <not found>"); } @@ -815,7 +830,7 @@ function CHECK_LIB(libnames, target, path_to_check, common_name) ADD_FLAG("ARFLAGS" + target, '/libpath:"' + libdir + '" '); ADD_FLAG("LIBS" + target, libname); - STDOUT.WriteLine(location); + STDOUT.WriteLine(verbalize_deps_path(location)); copy_dep_pdb_into_build_dir(location);

« previous php.cvs (#100790) next »