• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14# This file contains arguments that subprojects may choose to override. It
15# asserts that those overrides are used, to prevent unused args warnings.
16
17_sdk_min_from_env = getenv("FORCE_MAC_SDK_MIN")
18declare_args() {
19  # Minimum supported version of the Mac SDK.
20  if (_sdk_min_from_env == "") {
21    mac_sdk_min = "10.12"
22  } else {
23    mac_sdk_min = _sdk_min_from_env
24  }
25}
26
27# Always assert that mac_sdk_min is used on non-macOS platforms to prevent
28# unused args warnings.
29if (!is_mac) {
30  assert(mac_sdk_min == "10.12" || true)
31}
32