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

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

Issue 296933017: Introduce GN to desktop_linux arg and grit_defines list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm TODO Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/gn/secondary/tools/grit/grit_rule.gni » ('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 # BUILD FLAGS 6 # BUILD FLAGS
7 # ============================================================================= 7 # =============================================================================
8 # 8 #
9 # This block lists input arguments to the build, along with their default 9 # This block lists input arguments to the build, along with their default
10 # values. GN requires listing them explicitly so it can validate input and have 10 # values. GN requires listing them explicitly so it can validate input and have
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 is_android = false 150 is_android = false
151 is_chromeos = false 151 is_chromeos = false
152 is_ios = false 152 is_ios = false
153 is_linux = true 153 is_linux = true
154 is_mac = false 154 is_mac = false
155 is_nacl = false 155 is_nacl = false
156 is_posix = true 156 is_posix = true
157 is_win = false 157 is_win = false
158 } 158 }
159 159
160 is_desktop_linux = is_linux && !is_chromeos
161
160 # ============================================================================= 162 # =============================================================================
161 # CPU ARCHITECTURE 163 # CPU ARCHITECTURE
162 # ============================================================================= 164 # =============================================================================
163 165
164 if (is_win) { 166 if (is_win) {
165 # Always use 32-bit on Windows, even when compiling on a 64-bit host OS, 167 # Always use 32-bit on Windows, even when compiling on a 64-bit host OS,
166 # unless the override flag is specified. 168 # unless the override flag is specified.
167 if (force_win64) { 169 if (force_win64) {
168 cpu_arch = "x64" 170 cpu_arch = "x64"
169 } else { 171 } else {
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 } else if (is_linux) { 458 } else if (is_linux) {
457 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" 459 host_toolchain = "//build/toolchain/linux:$build_cpu_arch"
458 set_default_toolchain("//build/toolchain/linux:$cpu_arch") 460 set_default_toolchain("//build/toolchain/linux:$cpu_arch")
459 } else if (is_mac) { 461 } else if (is_mac) {
460 host_toolchain = "//build/toolchain/mac:clang" 462 host_toolchain = "//build/toolchain/mac:clang"
461 set_default_toolchain(host_toolchain) 463 set_default_toolchain(host_toolchain)
462 } else if (is_ios) { 464 } else if (is_ios) {
463 host_toolchain = "//build/toolchain/mac:host_clang" 465 host_toolchain = "//build/toolchain/mac:host_clang"
464 set_default_toolchain("//build/toolchain/mac:clang") 466 set_default_toolchain("//build/toolchain/mac:clang")
465 } 467 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/secondary/tools/grit/grit_rule.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698