File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -261,14 +261,6 @@ public function tryBuild(bool $force_build = false): int
261261 return LIB_STATUS_ALREADY ;
262262 }
263263
264- /**
265- * Patch before build, overwrite this and return true to patch libs.
266- */
267- public function patchBeforeBuild (): bool
268- {
269- return false ;
270- }
271-
272264 public function validate (): void
273265 {
274266 // do nothing, just throw wrong usage exception if not valid
@@ -294,10 +286,21 @@ public function beforePack(): void
294286 // do something before pack, default do nothing. overwrite this method to do something (e.g. modify pkg-config file)
295287 }
296288
289+ /**
290+ * Patch code before build
291+ * If you need to patch some code, overwrite this
292+ * return true if you patched something, false if not
293+ */
294+ public function patchBeforeBuild (): bool
295+ {
296+ return false ;
297+ }
298+
299+
297300 /**
298301 * Patch code before ./buildconf
299302 * If you need to patch some code, overwrite this
300- * return true if you patched something, false if notand return true
303+ * return true if you patched something, false if not
301304 */
302305 public function patchBeforeBuildconf (): bool
303306 {
You can’t perform that action at this time.
0 commit comments