Update LibraryBase.php

rectify typo
This commit is contained in:
Marc
2025-03-12 20:05:05 +07:00
committed by GitHub
parent 5caf5b7694
commit e7bac8f78d

View File

@@ -261,14 +261,6 @@ abstract class LibraryBase
return LIB_STATUS_ALREADY;
}
/**
* Patch before build, overwrite this and return true to patch libs.
*/
public function patchBeforeBuild(): bool
{
return false;
}
public function validate(): void
{
// do nothing, just throw wrong usage exception if not valid
@@ -294,10 +286,21 @@ abstract class LibraryBase
// do something before pack, default do nothing. overwrite this method to do something (e.g. modify pkg-config file)
}
/**
* Patch code before build
* If you need to patch some code, overwrite this
* return true if you patched something, false if not
*/
public function patchBeforeBuild(): bool
{
return false;
}
/**
* Patch code before ./buildconf
* If you need to patch some code, overwrite this
* return true if you patched something, false if notand return true
* return true if you patched something, false if not
*/
public function patchBeforeBuildconf(): bool
{