Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Side by Side Diff: build/config/mac/mac_sdk.gni

Issue 1877523002: Mac/iOS/GN: Generate Info.plist files for Mac apps and frameworks with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete version information to be populated elsewhere, fix assert string. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/mac/gen_plist.py ('k') | build/config/mac/rules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 6
7 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=5453. 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 8 # We can drop the rtc_require_mac_10_7_deployment flag when Chromium
9 # also requires a 10.7 deployment target. 9 # also requires a 10.7 deployment target.
10 import("//build_overrides/build.gni") 10 import("//build_overrides/build.gni")
11 11
12 declare_args() { 12 declare_args() {
13 # Minimum supported version of the Mac SDK. 13 # Minimum supported version of the Mac SDK.
14 mac_sdk_min = mac_sdk_min_build_override 14 mac_sdk_min = mac_sdk_min_build_override
15 15
16 # Minimum supported version of OSX. 16 # Minimum supported version of OSX.
17 mac_deployment_target = mac_deployment_target_build_override 17 mac_deployment_target = mac_deployment_target_build_override
18 18
19 # Path to a specific version of the Mac SDK, not including a backslash at 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 20 # the end. If empty, the path to the lowest version greater than or equal to
21 # mac_sdk_min is used. 21 # mac_sdk_min is used.
22 mac_sdk_path = "" 22 mac_sdk_path = ""
23
24 # The SDK name as accepted by xcodebuild.
25 mac_sdk_name = "macosx"
23 } 26 }
24 27
25 find_sdk_args = [ "--print_sdk_path" ] 28 find_sdk_args = [ "--print_sdk_path" ]
26 if (is_chrome_branded && is_official_build) { 29 if (is_chrome_branded && is_official_build) {
27 find_sdk_args += [ 30 find_sdk_args += [
28 "--verify", 31 "--verify",
29 mac_sdk_min, 32 mac_sdk_min,
30 "--sdk_path=" + mac_sdk_path, 33 "--sdk_path=" + mac_sdk_path,
31 ] 34 ]
32 } else { 35 } else {
33 find_sdk_args += [ mac_sdk_min ] 36 find_sdk_args += [ mac_sdk_min ]
34 } 37 }
35 38
36 # The tool will print the SDK path on the first line, and the version on the 39 # The tool will print the SDK path on the first line, and the version on the
37 # second line. 40 # second line.
38 find_sdk_lines = 41 find_sdk_lines =
39 exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines") 42 exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines")
40 mac_sdk_version = find_sdk_lines[1] 43 mac_sdk_version = find_sdk_lines[1]
41 if (mac_sdk_path == "") { 44 if (mac_sdk_path == "") {
42 mac_sdk_path = find_sdk_lines[0] 45 mac_sdk_path = find_sdk_lines[0]
43 } 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
OLDNEW
« no previous file with comments | « build/config/mac/gen_plist.py ('k') | build/config/mac/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698