1# Copyright 2017 The Chromium Authors. All rights reserved. 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 8_sdk_min_from_env = getenv("FORCE_MAC_SDK_MIN") 9declare_args() { 10 # Minimum supported version of the Mac SDK. 11 if (_sdk_min_from_env == "") { 12 mac_sdk_min = "10.12" 13 } else { 14 mac_sdk_min = _sdk_min_from_env 15 } 16} 17 18# Always assert that mac_sdk_min is used on non-macOS platforms to prevent 19# unused args warnings. 20if (!is_mac) { 21 assert(mac_sdk_min == "10.12" || true) 22} 23