add --with-added-patch command

This commit is contained in:
crazywhalecc
2024-01-03 15:57:05 +08:00
committed by Jerry Ma
parent 12ea3218e8
commit 149e844d59
6 changed files with 65 additions and 0 deletions

View File

@@ -140,7 +140,9 @@ abstract class LibraryBase
if (!$this->patched && $this->patchBeforeBuild()) {
file_put_contents($this->source_dir . '/.spc.patched', 'PATCHED!!!');
}
$this->getBuilder()->emitPatchPoint('before-library[ ' . static::NAME . ']-build');
$this->build();
$this->getBuilder()->emitPatchPoint('after-library[ ' . static::NAME . ']-build');
return BUILD_STATUS_OK;
}