xref: /aosp_15_r20/external/angle/build/config/ios/ios_sdk_overrides.gni (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2017 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This file contains arguments that subprojects may choose to override. It
6# asserts that those overrides are used, to prevent unused args warnings.
7
8import("//build/config/features.gni")
9
10declare_args() {
11  # Version of iOS that we're targeting.
12  if (use_blink) {
13    ios_deployment_target = "17.4"
14  } else {
15    ios_deployment_target = "16.0"
16  }
17}
18
19# Always assert that ios_deployment_target is used on non-iOS platforms to
20# prevent unused args warnings.
21if (!is_ios) {
22  assert(ios_deployment_target == "16.0" || ios_deployment_target == "17.4" ||
23         true)
24}
25