com web/rmtools: add library bin path to the build path, some bins from there can be used: client/include/PeclBuildVC.php client/include/PeclExt.php
| From: | Anatol Belski | Date: | Mon, 05 Dec 2016 19:09:04 +0000 |
| Subject: | com web/rmtools: add library bin path to the build path, some bins from there can be used: client/include/PeclBuildVC.php client/include/PeclExt.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26056@lists.php.net to get a copy of this message | ||
Commit: 9a4adf7f7ae8e2fa4aa2f96e52e5466efdde0951
Author: Anatol Belski <ab@php.net> Mon, 5 Dec 2016 20:09:04 +0100
Parents: bbcca471a6663e931b8366fd3b40fb75636ab3e3
Branches: pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=9a4adf7f7ae8e2fa4aa2f96e52e5466efdde0951
Log:
add library bin path to the build path, some bins from there can be used
Changed paths:
M client/include/PeclBuildVC.php
M client/include/PeclExt.php
Diff:
diff --git a/client/include/PeclBuildVC.php b/client/include/PeclBuildVC.php
index e4e670b..c0328e7 100644
--- a/client/include/PeclBuildVC.php
+++ b/client/include/PeclBuildVC.php
@@ -85,6 +85,11 @@ class PeclBuildVC {
$this->env = $env;
}
+ function addPath($path)
+ {
+ $this->env["PATH"] = $path . ";" . $this->env["PATH"];
+ }
+
function setSourceDir($src_dir)
{
$this->build_dir = $src_dir;
diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php
index 6f33805..43a6426 100644
--- a/client/include/PeclExt.php
+++ b/client/include/PeclExt.php
@@ -424,6 +424,11 @@ class PeclExt
$extra_inc[] = $dir;
}
}
+
+ $some_lib_bin_path = str_replace("/", "\\", $lib_path .
DIRECTORY_SEPARATOR . 'bin');
+ if (file_exists($some_lib_bin_path)) {
+ $this->build->addPath($some_lib_bin_path);
+ }
}
if (!empty($extra_lib)) {