Refactor LibraryPackage to skip pkg-config and static-bin checks on Windows

This commit is contained in:
crazywhalecc
2026-03-21 00:32:02 +08:00
parent 7df861696d
commit f6e00c67cc

View File

@@ -44,6 +44,7 @@ class LibraryPackage extends Package
return false; return false;
} }
} }
if (SystemTarget::getTargetOS() !== 'Windows') {
foreach (PackageConfig::get($this->getName(), 'pkg-configs', []) as $pc) { foreach (PackageConfig::get($this->getName(), 'pkg-configs', []) as $pc) {
if (!str_ends_with($pc, '.pc')) { if (!str_ends_with($pc, '.pc')) {
$pc .= '.pc'; $pc .= '.pc';
@@ -58,6 +59,7 @@ class LibraryPackage extends Package
return false; return false;
} }
} }
}
return true; return true;
} }