OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 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 import("//build/config/chrome_build.gni") |
| 6 |
| 7 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=5453. |
| 8 # We can drop the rtc_require_mac_10_7_deployment flag when Chromium |
| 9 # also requires a 10.7 deployment target. |
| 10 import("//build_overrides/build.gni") |
| 11 |
| 12 declare_args() { |
| 13 # Minimum supported version of the Mac SDK. |
| 14 mac_sdk_min = mac_sdk_min_build_override |
| 15 |
| 16 # Minimum supported version of OSX. |
| 17 mac_deployment_target = mac_deployment_target_build_override |
| 18 |
| 19 # Path to a specific version of the Mac SDK, not including a backslash at |
| 20 # the end. If empty, the path to the lowest version greater than or equal to |
| 21 # mac_sdk_min is used. |
| 22 mac_sdk_path = "" |
| 23 |
| 24 # The SDK name as accepted by xcodebuild. |
| 25 mac_sdk_name = "macosx" |
| 26 } |
| 27 |
| 28 find_sdk_args = [ "--print_sdk_path" ] |
| 29 if (is_chrome_branded && is_official_build) { |
| 30 find_sdk_args += [ |
| 31 "--verify", |
| 32 mac_sdk_min, |
| 33 "--sdk_path=" + mac_sdk_path, |
| 34 ] |
| 35 } else { |
| 36 find_sdk_args += [ mac_sdk_min ] |
| 37 } |
| 38 |
| 39 # The tool will print the SDK path on the first line, and the version on the |
| 40 # second line. |
| 41 find_sdk_lines = |
| 42 exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines") |
| 43 mac_sdk_version = find_sdk_lines[1] |
| 44 if (mac_sdk_path == "") { |
| 45 mac_sdk_path = find_sdk_lines[0] |
| 46 } |
| 47 |
| 48 script_name = "//build/config/mac/sdk_info.py" |
| 49 _mac_sdk_result = exec_script(script_name, [ mac_sdk_name ], "scope") |
| 50 mac_sdk_build = _mac_sdk_result.sdk_build |
| 51 xcode_version = _mac_sdk_result.xcode_version |
| 52 xcode_build = _mac_sdk_result.xcode_build |
| 53 machine_os_build = _mac_sdk_result.machine_os_build |
OLD | NEW |