Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/fuchsia/fuchsia_archive.gni
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ template("_fuchsia_archive") {
rebase_path(manifest_json_file, root_build_dir),
]

assert(fuchsia_target_api_level != -1,
"Must set a target api level when creating an archive")
if (fuchsia_target_api_level != -1) {
args += [
"--api-level",
Expand Down
1 change: 1 addition & 0 deletions tools/fuchsia/target_api_level
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
4 changes: 4 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ def to_gn_args(args):

if args.fuchsia_target_api_level is not None:
gn_args['fuchsia_target_api_level'] = args.fuchsia_target_api_level
elif args.target_os == 'fuchsia':
# Read the default target api level from a file so we can update it with a roller
with open(os.path.join(os.path.dirname(__file__), 'fuchsia/target_api_level')) as f:
gn_args['fuchsia_target_api_level'] = int(f.read().strip())

return gn_args

Expand Down