OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # It's best to keep the names and defaults of is_foo flags consistent with Chrom
e. | 6 # It's best to keep the names and defaults of is_foo flags consistent with Chrom
e. |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 is_debug = true | 9 is_debug = true |
10 is_component_build = false | 10 is_component_build = false |
(...skipping 22 matching lines...) Expand all Loading... |
33 if (is_component_build) { | 33 if (is_component_build) { |
34 _component_mode = "shared_library" | 34 _component_mode = "shared_library" |
35 } | 35 } |
36 | 36 |
37 target(_component_mode, target_name) { | 37 target(_component_mode, target_name) { |
38 forward_variables_from(invoker, "*") | 38 forward_variables_from(invoker, "*") |
39 } | 39 } |
40 } | 40 } |
41 | 41 |
42 # Default configs | 42 # Default configs |
43 _default_configs = [ "//gn:default" ] | 43 default_configs = [ |
| 44 "//gn:default", |
| 45 "//gn:no_rtti", |
| 46 ] |
44 if (!is_debug) { | 47 if (!is_debug) { |
45 _default_configs += [ "//gn:release" ] | 48 default_configs += [ "//gn:release" ] |
46 } | 49 } |
47 | 50 |
48 set_defaults("executable") { | 51 set_defaults("executable") { |
49 configs = _default_configs + [ "//gn:executable" ] | 52 configs = default_configs + [ "//gn:executable" ] |
50 } | 53 } |
51 | 54 |
52 set_defaults("source_set") { | 55 set_defaults("source_set") { |
53 configs = _default_configs | 56 configs = default_configs |
54 } | 57 } |
55 | 58 |
56 set_defaults("static_library") { | 59 set_defaults("static_library") { |
57 configs = _default_configs | 60 configs = default_configs |
58 } | 61 } |
59 | 62 |
60 set_defaults("shared_library") { | 63 set_defaults("shared_library") { |
61 configs = _default_configs | 64 configs = default_configs |
62 } | 65 } |
63 | 66 |
64 set_defaults("component") { | 67 set_defaults("component") { |
65 configs = _default_configs | 68 configs = default_configs |
66 } | 69 } |
67 | 70 |
68 # For now, we support GCC-like toolchains, including Clang. | 71 # For now, we support GCC-like toolchains, including Clang. |
69 set_default_toolchain("//gn:gcc_like") | 72 set_default_toolchain("//gn:gcc_like") |
OLD | NEW |