1e509ee18Sopenharmony_ci# Copyright 2017 The Chromium Authors. All rights reserved. 2e509ee18Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be 3e509ee18Sopenharmony_ci# found in the LICENSE file. 4e509ee18Sopenharmony_ci 5e509ee18Sopenharmony_ci# This file contains arguments that subprojects may choose to override. It 6e509ee18Sopenharmony_ci# asserts that those overrides are used, to prevent unused args warnings. 7e509ee18Sopenharmony_ci 8e509ee18Sopenharmony_ci_sdk_min_from_env = getenv("FORCE_MAC_SDK_MIN") 9e509ee18Sopenharmony_cideclare_args() { 10e509ee18Sopenharmony_ci # Minimum supported version of the Mac SDK. 11e509ee18Sopenharmony_ci if (_sdk_min_from_env == "") { 12e509ee18Sopenharmony_ci mac_sdk_min = "10.12" 13e509ee18Sopenharmony_ci } else { 14e509ee18Sopenharmony_ci mac_sdk_min = _sdk_min_from_env 15e509ee18Sopenharmony_ci } 16e509ee18Sopenharmony_ci} 17e509ee18Sopenharmony_ci 18e509ee18Sopenharmony_ci# Always assert that mac_sdk_min is used on non-macOS platforms to prevent 19e509ee18Sopenharmony_ci# unused args warnings. 20e509ee18Sopenharmony_ciif (!is_mac) { 21e509ee18Sopenharmony_ci assert(mac_sdk_min == "10.12" || true) 22e509ee18Sopenharmony_ci} 23