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

Side by Side Diff: build/toolchain/goma.gni

Issue 397173004: Make goma work for the GN build on linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | build/toolchain/linux/BUILD.gn » ('j') | build/toolchain/linux/BUILD.gn » ('J')
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 # Defines the configuration of Goma. 5 # Defines the configuration of Goma.
6 # 6 #
7 # This is currently designed to match the GYP build exactly, so as not to break 7 # This is currently designed to match the GYP build exactly, so as not to break
8 # people during the transition. 8 # people during the transition.
9 9
10 declare_args() { 10 declare_args() {
11 # Set to true to enable distributed compilation using Goma. 11 # Set to true to enable distributed compilation using Goma.
12 use_goma = false 12 use_goma = false
13 13
14 # Set the default value based on the platform. 14 # Set the default value based on the platform.
15 if (is_win) { 15 if (is_win) {
16 # Absolute directory containing the Goma source code. 16 # Absolute directory containing the Goma source code.
17 goma_dir = "C:\goma\goma-win" 17 goma_dir = "C:\goma\goma-win"
18 } else { 18 } else {
19 # Absolute directory containing the Goma source code. 19 # Absolute directory containing the Goma source code.
20 goma_dir = getenv("HOME") + "/goma" 20 goma_dir = getenv("HOME") + "/goma"
21 } 21 }
22 } 22 }
23
24 if (use_goma) {
25 # Define the toolchain for the GYP build when using goma.
26 make_goma_global_settings =
27 "['CC_wrapper', '$goma_dir/gomacc']," +
28 "['CXX_wrapper', '$goma_dir/gomacc']," +
29 "['CC.host_wrapper', '$goma_dir/gomacc']," +
30 "['CXX.host_wrapper', '$goma_dir/gomacc'],"
31 }
Dirk Pranke 2014/07/17 01:18:27 I believe this was only used by the GN/GYP hybrid
brettw 2014/07/17 04:37:30 Correct.
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/linux/BUILD.gn » ('j') | build/toolchain/linux/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698