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

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 2210813002: Update component build documentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | docs/component_build.md » ('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 # ============================================================================= 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | docs/component_build.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698