refactor DependencyUtil, use for-libs and for-sources instead of by

This commit is contained in:
crazywhalecc
2024-02-16 18:56:33 +08:00
parent 1e898d271d
commit 939db75268
7 changed files with 145 additions and 169 deletions

View File

@@ -107,7 +107,7 @@ abstract class UnixBuilderBase extends BuilderBase
// if no libs specified, compile all supported libs
if ($sorted_libraries === [] && $this->isLibsOnly()) {
$libraries = array_keys($support_lib_list);
$sorted_libraries = DependencyUtil::getLibsByDeps($libraries);
$sorted_libraries = DependencyUtil::getLibs($libraries);
}
// pkg-config must be compiled first, whether it is specified or not