xref: /aosp_15_r20/external/angle/build/config/android/build_vars.gni (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2020 The Chromium Authors
2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file.
4*8975f5c5SAndroid Build Coastguard Worker
5*8975f5c5SAndroid Build Coastguard Workerimport("//build/config/android/config.gni")
6*8975f5c5SAndroid Build Coastguard Worker
7*8975f5c5SAndroid Build Coastguard Worker# Contains useful GN variables that may be used by scripts that take
8*8975f5c5SAndroid Build Coastguard Worker# --output-directory as an arg.
9*8975f5c5SAndroid Build Coastguard Workerbuild_vars_file = "$root_build_dir/build_vars.json"
10*8975f5c5SAndroid Build Coastguard Worker
11*8975f5c5SAndroid Build Coastguard Workerandroid_build_vars_json = {
12*8975f5c5SAndroid Build Coastguard Worker  if (enable_java_templates) {
13*8975f5c5SAndroid Build Coastguard Worker    android_ndk_root = rebase_path(android_ndk_root, root_build_dir)
14*8975f5c5SAndroid Build Coastguard Worker    android_sdk_build_tools =
15*8975f5c5SAndroid Build Coastguard Worker        rebase_path(android_sdk_build_tools, root_build_dir)
16*8975f5c5SAndroid Build Coastguard Worker    android_sdk_build_tools_version = android_sdk_build_tools_version
17*8975f5c5SAndroid Build Coastguard Worker    android_sdk_root = rebase_path(android_sdk_root, root_build_dir)
18*8975f5c5SAndroid Build Coastguard Worker    android_sdk_platform_version = android_sdk_platform_version
19*8975f5c5SAndroid Build Coastguard Worker    android_tool_prefix = rebase_path(android_tool_prefix, root_build_dir)
20*8975f5c5SAndroid Build Coastguard Worker    default_min_sdk_version = default_min_sdk_version
21*8975f5c5SAndroid Build Coastguard Worker    final_android_sdk = final_android_sdk
22*8975f5c5SAndroid Build Coastguard Worker
23*8975f5c5SAndroid Build Coastguard Worker    if (defined(android_secondary_abi_cpu)) {
24*8975f5c5SAndroid Build Coastguard Worker      android_secondary_abi_toolchain =
25*8975f5c5SAndroid Build Coastguard Worker          rebase_path(get_label_info(":foo($android_secondary_abi_toolchain)",
26*8975f5c5SAndroid Build Coastguard Worker                                     "root_out_dir"),
27*8975f5c5SAndroid Build Coastguard Worker                      root_build_dir)
28*8975f5c5SAndroid Build Coastguard Worker    }
29*8975f5c5SAndroid Build Coastguard Worker  }
30*8975f5c5SAndroid Build Coastguard Worker}
31