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

Side by Side Diff: build/toolchain/mac/BUILD.gn

Issue 138693003: Use the new trim modes in the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/toolchain/win/BUILD.gn » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires
6 # some enhancements since the commands on Mac are slightly different than on 6 # some enhancements since the commands on Mac are slightly different than on
7 # Linux. 7 # Linux.
8 8
9 import("../goma.gni") 9 import("../goma.gni")
10 10
(...skipping 11 matching lines...) Expand all
22 } else { 22 } else {
23 cc = "gcc" 23 cc = "gcc"
24 cxx = "g++" 24 cxx = "g++"
25 } 25 }
26 ld = cxx 26 ld = cxx
27 27
28 # This will copy the gyp-mac-tool to the build directory. We pass in the source 28 # This will copy the gyp-mac-tool to the build directory. We pass in the source
29 # file of the win tool. 29 # file of the win tool.
30 gyp_mac_tool_source = 30 gyp_mac_tool_source =
31 rebase_path("//tools/gyp/pylib/gyp/mac_tool.py", root_build_dir) 31 rebase_path("//tools/gyp/pylib/gyp/mac_tool.py", root_build_dir)
32 exec_script("setup_toolchain.py", [ gyp_mac_tool_source ], "value") 32 exec_script("setup_toolchain.py", [ gyp_mac_tool_source ])
33 33
34 # Shared toolchain definition. Invocations should set toolchain_os to set the 34 # Shared toolchain definition. Invocations should set toolchain_os to set the
35 # build args in this definition. 35 # build args in this definition.
36 template("mac_clang_toolchain") { 36 template("mac_clang_toolchain") {
37 toolchain(target_name) { 37 toolchain(target_name) {
38 assert(defined(invoker.cc), 38 assert(defined(invoker.cc),
39 "mac_clang_toolchain() must specify a \"cc\" value") 39 "mac_clang_toolchain() must specify a \"cc\" value")
40 assert(defined(invoker.cxx), 40 assert(defined(invoker.cxx),
41 "mac_clang_toolchain() must specify a \"cxx\" value") 41 "mac_clang_toolchain() must specify a \"cxx\" value")
42 assert(defined(invoker.ld), 42 assert(defined(invoker.ld),
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 # Toolchain representing the target build (either mac or iOS). 128 # Toolchain representing the target build (either mac or iOS).
129 mac_clang_toolchain("clang") { 129 mac_clang_toolchain("clang") {
130 toolchain_os = os 130 toolchain_os = os
131 } 131 }
132 132
133 # This toolchain provides a way for iOS target compiles to reference targets 133 # This toolchain provides a way for iOS target compiles to reference targets
134 # compiled for the host system. It just overrides the OS back to "mac". 134 # compiled for the host system. It just overrides the OS back to "mac".
135 mac_clang_toolchain("host_clang") { 135 mac_clang_toolchain("host_clang") {
136 toolchain_os = "mac" 136 toolchain_os = "mac"
137 } 137 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698