feat(manifest): implement BuildManifestDumper for generating build manifest

This commit is contained in:
crazywhalecc
2026-07-13 16:59:19 +08:00
parent 422323a41d
commit 4d00e338af
7 changed files with 333 additions and 4 deletions

View File

@@ -117,6 +117,19 @@ class TargetPackage extends LibraryPackage
return null;
}
/**
* Get target-specific structured data for the build manifest.
*
* Target implementations may override this method to expose build facts that
* cannot be represented by the generic resolved package list.
*
* @return array<string, mixed>
*/
public function getBuildManifestData(PackageInstaller $installer): array
{
return [];
}
/**
* Gets all build options for the target package.
*