OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 # Defines the configuration of Goma. | |
6 # | |
7 # This is currently designed to match the GYP build exactly, so as not to break | |
8 # people during the transition. | |
9 # | |
10 # TODO(brettw) make Android work like normal Linux. It's silly that Android has | |
11 # completely different logic for configuring Goma. | |
Nico
2013/12/26 22:14:34
+1000, this is true for many things in the android
| |
12 | |
13 declare_args() { | |
14 use_goma = false | |
15 | |
16 goma_dir = "" | |
Nico
2013/12/26 22:14:34
It defaults to `/bin/echo -n ${HOME}/goma` on non-
| |
17 | |
18 # Goma directory used by the Android build. Empty means use the GOMA_DIR | |
19 # environment variable. | |
20 # | |
21 # TODO(brettw) remove this and make it work like regular Linux. | |
22 android_goma_dir = "" | |
23 } | |
24 | |
25 # The Android GYP build has some log that automatically turns on goma when the | |
Nico
2013/12/26 22:14:34
…some logic…
| |
26 # directory is set, but this isn't done for other platforms. | |
27 # TODO(brettw) rationalize all Linux-y platforms. | |
28 if (is_android && android_goma_dir != "") { | |
29 use_goma = true | |
30 } | |
31 | |
32 if (use_goma && goma_dir == "") { | |
33 # Set the default goma directory. This must be a character-for-character | |
34 # match for the GYP default or else the compilers for the different targets | |
35 # won't match and GYP will assert. | |
36 if (is_win) { | |
37 goma_dir = "c:\goma\goma-win" | |
38 } else if (is_android) { | |
39 goma_dir = exec_script("android/default_goma_for_android.py", [], "value") | |
40 } | |
41 } | |
42 | |
43 if (use_goma) { | |
44 # Define the toolchain for the GYP build when using goma. | |
45 make_goma_global_settings = | |
46 "'make_global_settings': [" + | |
47 "['CC_wrapper', '$goma_dir/gomacc']," + | |
48 "['CXX_wrapper', '$goma_dir/gomacc']," + | |
49 "['CC.host_wrapper', '$gomadir/gomacc']," + | |
50 "['CXX.host_wrapper', '$gomadir/gomacc']," + | |
51 "]," | |
52 } | |
OLD | NEW |