mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-21 15:55:36 +08:00
Refactor LibraryPackage to skip pkg-config and static-bin checks on Windows
This commit is contained in:
@@ -44,6 +44,7 @@ class LibraryPackage extends Package
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (SystemTarget::getTargetOS() !== 'Windows') {
|
||||
foreach (PackageConfig::get($this->getName(), 'pkg-configs', []) as $pc) {
|
||||
if (!str_ends_with($pc, '.pc')) {
|
||||
$pc .= '.pc';
|
||||
@@ -58,6 +59,7 @@ class LibraryPackage extends Package
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user