| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # The location of the build configuration file. |
| buildconfig = "//build/BUILDCONFIG.gn" |
| |
| # Force python3 to be used by default, similar to https://crrev.com/c/2515787 |
| script_executable = "python3" |
| |
| # Read the latest API level entry present in the version_history.json file. |
| max_api_level = "" |
| platform_version_content = |
| read_file("//third_party/fuchsia-sdk/version_history.json", "json") |
| version_history_data = platform_version_content.data |
| version_history_data_data_versions = version_history_data.versions |
| foreach(v, version_history_data_data_versions) { |
| # This assumes that the API levels are always stored in increasing order. If |
| # this assumption becomes invalid then this should still be correct as the |
| # version history file should only contain supported API levels. |
| max_api_level = v.api_level |
| } |
| default_args = { |
| fuchsia_target_api_level = max_api_level |
| } |