blob: 03f747901db5abd27304e00c247479ee72f21bb1 [file] [log] [blame]
# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file contains arguments that subprojects may choose to override. It
# asserts that those overrides are used, to prevent unused args warnings.
import("//build/config/apple/mobile_config.gni")
import("//build/config/features.gni")
declare_args() {
# Version of iOS that we're targeting.
if (use_blink) {
if (target_platform == "iphoneos") {
ios_deployment_target = "26.0"
} else {
# tvOS requires at least SDK version 17.4.
ios_deployment_target = "17.4"
}
} else {
ios_deployment_target = "17.0"
}
}
# Always assert that ios_deployment_target is used on non-iOS platforms to
# prevent unused args warnings.
if (!is_ios) {
assert(ios_deployment_target == "17.0" || ios_deployment_target == "17.4" ||
ios_deployment_target == "26.0" || true)
}