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

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

Issue 2848943003: [infra] Assembles the SDK using GN rather than create_sdk.py (Closed)
Patch Set: Move copy_dev_compiler_tools out of the default full SDK build Created 3 years, 7 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 | « BUILD.gn ('k') | build/config/win/BUILD.gn » ('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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 # - is_linux is true for desktop Linux and ChromeOS, but not Android (which is 146 # - is_linux is true for desktop Linux and ChromeOS, but not Android (which is
147 # generally too different despite being based on the Linux kernel). 147 # generally too different despite being based on the Linux kernel).
148 # 148 #
149 # Do not add more is_* variants here for random lesser-used Unix systems like 149 # Do not add more is_* variants here for random lesser-used Unix systems like
150 # aix or one of the BSDs. If you need to check these, just check the 150 # aix or one of the BSDs. If you need to check these, just check the
151 # current_os value directly. 151 # current_os value directly.
152 152
153 if (current_os == "win") { 153 if (current_os == "win") {
154 is_android = false 154 is_android = false
155 is_chromeos = false 155 is_chromeos = false
156 is_fuchsia = false
157 is_fuchsia_host = false
156 is_ios = false 158 is_ios = false
157 is_linux = false 159 is_linux = false
158 is_mac = false 160 is_mac = false
159 is_nacl = false 161 is_nacl = false
160 is_posix = false 162 is_posix = false
161 is_win = true 163 is_win = true
162 } else if (current_os == "mac") { 164 } else if (current_os == "mac") {
163 is_android = false 165 is_android = false
164 is_chromeos = false 166 is_chromeos = false
167 is_fuchsia = false
168 is_fuchsia_host = false
165 is_ios = false 169 is_ios = false
166 is_linux = false 170 is_linux = false
167 is_mac = true 171 is_mac = true
168 is_nacl = false 172 is_nacl = false
169 is_posix = true 173 is_posix = true
170 is_win = false 174 is_win = false
171 } else if (current_os == "android") { 175 } else if (current_os == "android") {
172 is_android = true 176 is_android = true
173 is_chromeos = false 177 is_chromeos = false
178 is_fuchsia = false
179 is_fuchsia_host = false
174 is_ios = false 180 is_ios = false
175 is_linux = false 181 is_linux = false
176 is_mac = false 182 is_mac = false
177 is_nacl = false 183 is_nacl = false
178 is_posix = true 184 is_posix = true
179 is_win = false 185 is_win = false
180 } else if (current_os == "linux") { 186 } else if (current_os == "linux") {
181 is_android = false 187 is_android = false
182 is_chromeos = false 188 is_chromeos = false
189 is_fuchsia = false
190 is_fuchsia_host = false
183 is_ios = false 191 is_ios = false
184 is_linux = true 192 is_linux = true
185 is_mac = false 193 is_mac = false
186 is_nacl = false 194 is_nacl = false
187 is_posix = true 195 is_posix = true
188 is_win = false 196 is_win = false
189 } 197 }
190 198
191 # ============================================================================= 199 # =============================================================================
192 # BUILD OPTIONS 200 # BUILD OPTIONS
(...skipping 27 matching lines...) Expand all
220 if (is_win) { 228 if (is_win) {
221 _native_compiler_configs += [ 229 _native_compiler_configs += [
222 "//build/config/win:lean_and_mean", 230 "//build/config/win:lean_and_mean",
223 "//build/config/win:nominmax", 231 "//build/config/win:nominmax",
224 "//build/config/win:sdk", 232 "//build/config/win:sdk",
225 "//build/config/win:unicode", 233 "//build/config/win:unicode",
226 "//build/config/win:winver", 234 "//build/config/win:winver",
227 ] 235 ]
228 } 236 }
229 if (is_posix) { 237 if (is_posix) {
230 _native_compiler_configs += [ 238 _native_compiler_configs += [ "//build/config/gcc:no_exceptions" ]
231 "//build/config/gcc:no_exceptions",
232 ]
233 } 239 }
234 240
235 if (is_linux) { 241 if (is_linux) {
236 _native_compiler_configs += [ "//build/config/linux:sdk" ] 242 _native_compiler_configs += [ "//build/config/linux:sdk" ]
237 } else if (is_mac) { 243 } else if (is_mac) {
238 _native_compiler_configs += [ "//build/config/mac:sdk" ] 244 _native_compiler_configs += [ "//build/config/mac:sdk" ]
239 } else if (is_android) { 245 } else if (is_android) {
240 _native_compiler_configs += [ "//build/config/android:sdk" ] 246 _native_compiler_configs += [ "//build/config/android:sdk" ]
241 } 247 }
242 248
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 sources = invoker.sources 463 sources = invoker.sources
458 } 464 }
459 if (defined(invoker.testonly)) { 465 if (defined(invoker.testonly)) {
460 testonly = invoker.testonly 466 testonly = invoker.testonly
461 } 467 }
462 if (defined(invoker.visibility)) { 468 if (defined(invoker.visibility)) {
463 visibility = invoker.visibility 469 visibility = invoker.visibility
464 } 470 }
465 } 471 }
466 } 472 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698