Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@chaselatta
Copy link
Contributor

Adds the ability to pass the target fuchsia api level to GN for stamping packages. We are not specifying the specific API level yet.

BUG: https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=87813

rebase_path(manifest_json_file, root_build_dir),
]

if (fuchsia_target_api_level != -1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I'm still struggling with GN :( where does this variable come from? Do all gn_args[] get put into the namespace as variables automatically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It comes from the import above where we import //build/fuchsia/config.gni. This is a gn thing, when you put a variable in a declare_args it makes it available as a global after an import.

@chaselatta chaselatta added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 20, 2021
if args.api_level is not None:
build_command = ['--api-level', args.api_level] + build_command

archive_command = ['archive', '--output='+ os.path.join(os.path.dirname(output_dir), args.far_name + "-0")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you file a bug to get rid of the -0? It complicates people's workflows because the fars aren't named that everywhere, only in our repo. It's also useless since it's just an arbitrary thing we hardcore here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants