add library, extension patch methods base

This commit is contained in:
crazywhalecc
2023-07-28 23:45:39 +08:00
committed by Jerry Ma
parent aaf712be3c
commit e909dd15b0
6 changed files with 78 additions and 154 deletions

View File

@@ -136,6 +136,33 @@ class Extension
return '';
}
/**
* Patch code before ./buildconf
* If you need to patch some code, overwrite this and return true
*/
public function patchBeforeBuildconf(): bool
{
return false;
}
/**
* Patch code before ./configure
* If you need to patch some code, overwrite this and return true
*/
public function patchBeforeConfigure(): bool
{
return false;
}
/**
* Patch code before make
* If you need to patch some code, overwrite this and return true
*/
public function patchBeforeMake(): bool
{
return false;
}
/**
* @throws RuntimeException
*/