summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-08-31 23:56:42 +0200
committerAnatol Belski <ab@php.net>2017-08-31 23:56:42 +0200
commita86df6bcb0bca601fa0178d6231daf9eb6b62505 (patch)
treea5dc8741262b5bed2cac680fe4d4466b4eb0c00f
parent6ec494016b296c4dcc184f08ff78ad85178ccd1d (diff)
downloadphp-git-a86df6bcb0bca601fa0178d6231daf9eb6b62505.tar.gz
Make for exclusion per regex
-rw-r--r--win32/build/mkdist.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php
index 851aff06ad..a8ae758c6a 100644
--- a/win32/build/mkdist.php
+++ b/win32/build/mkdist.php
@@ -69,6 +69,9 @@ function get_depends($module)
'vcruntime140.dll',
'msvcp140.dll',
);
+ static $no_dist_re = array(
+ "api-ms-win-crt-.+\.dll",
+ );
global $build_dir, $extra_dll_deps, $ext_targets, $sapi_targets, $pecl_targets, $phpdll, $per_module_deps, $pecl_dll_deps;
$bd = strtolower(realpath($build_dir));
@@ -96,6 +99,17 @@ function get_depends($module)
/* ignore some well-known system dlls */
if (in_array(basename($dep), $no_dist)) {
continue;
+ } else {
+ $skip = false;
+ foreach ($no_dist_re as $re) {
+ if (preg_match(",$re,", basename($dep)) > 0) {
+ $skip = true;
+ break;
+ }
+ }
+ if ($skip) {
+ continue;
+ }
}
if ($is_pecl) {