1# Copyright 2021 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15declare_args() { 16 # Enable building with an Android toolchain by setting to the full path of 17 # an Android NDK. 18 pw_android_toolchain_NDK_PATH = "" 19 20 # Set to the default minimum version of the Android SDK to compile support 21 # for. This will change which compiler from the NDK is used, and can be 22 # overriden on a per-toolchain basis using `api_level` within a toolchain's 23 # defaults. 24 pw_android_toolchain_API_LEVEL = 21 25} 26 27# Android NDKs contain toolchains for the following multiple targets. 28# `pw_generate_android_toolchains` will create toolchains for each of these 29# targets if a toolchain scope's defaults does not contain `current_cpu`. 30pw_android_toolchain_cpu_targets = [ 31 "arm", 32 "arm64", 33 "x64", 34 "x86", 35] 36