OLD | NEW |
---|---|
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 # ============================================================================= | 5 # ============================================================================= |
6 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 # every toolchain can pass through the "global" value via toolchain_args(). | 137 # every toolchain can pass through the "global" value via toolchain_args(). |
138 host_toolchain = "" | 138 host_toolchain = "" |
139 | 139 |
140 # DON'T ADD MORE FLAGS HERE. Read the comment above. | 140 # DON'T ADD MORE FLAGS HERE. Read the comment above. |
141 } | 141 } |
142 | 142 |
143 declare_args() { | 143 declare_args() { |
144 # Component build. Setting to true compiles targets declared as "components" | 144 # Component build. Setting to true compiles targets declared as "components" |
145 # as shared libraries loaded dynamically. This speeds up development time. | 145 # as shared libraries loaded dynamically. This speeds up development time. |
146 # When false, components will be linked statically. | 146 # When false, components will be linked statically. |
147 # | |
148 # For more information see | |
149 # https://chromium.googlesource.com/chromium/src/+/master/docs/component_build .md | |
Dirk Pranke
2016/08/04 15:59:04
I'm tempted to say that this should be "//docs/com
brettw
2016/08/04 18:26:41
I considered that, but decided most people will pr
| |
147 is_component_build = is_debug && current_os != "ios" | 150 is_component_build = is_debug && current_os != "ios" |
148 } | 151 } |
149 | 152 |
150 assert(!(is_debug && is_official_build), "Can't do official debug builds") | 153 assert(!(is_debug && is_official_build), "Can't do official debug builds") |
151 | 154 |
152 # ============================================================================== | 155 # ============================================================================== |
153 # TOOLCHAIN SETUP | 156 # TOOLCHAIN SETUP |
154 # ============================================================================== | 157 # ============================================================================== |
155 # | 158 # |
156 # Here we set the default toolchain, as well as the variable host_toolchain | 159 # Here we set the default toolchain, as well as the variable host_toolchain |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
624 set_defaults("component") { | 627 set_defaults("component") { |
625 if (is_component_build) { | 628 if (is_component_build) { |
626 configs = default_shared_library_configs | 629 configs = default_shared_library_configs |
627 if (is_android) { | 630 if (is_android) { |
628 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 631 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
629 } | 632 } |
630 } else { | 633 } else { |
631 configs = default_compiler_configs | 634 configs = default_compiler_configs |
632 } | 635 } |
633 } | 636 } |
OLD | NEW |