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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,14 +261,6 @@ abstract class LibraryBase
return LIB_STATUS_ALREADY; 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 public function validate(): void
{ {
// do nothing, just throw wrong usage exception if not valid // 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) // 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 * Patch code before ./buildconf
* If you need to patch some code, overwrite this * 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 public function patchBeforeBuildconf(): bool
{ {