mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Make for exclusion per regex
This commit is contained in:
parent
6ec494016b
commit
a86df6bcb0
1 changed files with 14 additions and 0 deletions
|
@ -69,6 +69,9 @@ function get_depends($module)
|
||||||
'vcruntime140.dll',
|
'vcruntime140.dll',
|
||||||
'msvcp140.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;
|
global $build_dir, $extra_dll_deps, $ext_targets, $sapi_targets, $pecl_targets, $phpdll, $per_module_deps, $pecl_dll_deps;
|
||||||
|
|
||||||
$bd = strtolower(realpath($build_dir));
|
$bd = strtolower(realpath($build_dir));
|
||||||
|
@ -96,6 +99,17 @@ function get_depends($module)
|
||||||
/* ignore some well-known system dlls */
|
/* ignore some well-known system dlls */
|
||||||
if (in_array(basename($dep), $no_dist)) {
|
if (in_array(basename($dep), $no_dist)) {
|
||||||
continue;
|
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) {
|
if ($is_pecl) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue