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

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

Issue 840863003: gn: declare is_desktop_linux as a build argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup Created 5 years, 11 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 | no next file » | 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 13 matching lines...) Expand all
24 # 0 means no symbols. 24 # 0 means no symbols.
25 # -1 means auto-set (off in release, regular in debug). 25 # -1 means auto-set (off in release, regular in debug).
26 symbol_level = -1 26 symbol_level = -1
27 27
28 # Component build. 28 # Component build.
29 is_component_build = false 29 is_component_build = false
30 30
31 # Debug build. 31 # Debug build.
32 is_debug = true 32 is_debug = true
33 33
34 # Whether we're a traditional desktop unix.
35 is_desktop_linux = os == "linux" && os != "chromeos"
36
34 # Set to true when compiling with the Clang compiler. Typically this is used 37 # Set to true when compiling with the Clang compiler. Typically this is used
35 # to configure warnings. 38 # to configure warnings.
36 is_clang = os == "mac" || os == "ios" || os == "linux" || os == "chromeos" 39 is_clang = os == "mac" || os == "ios" || os == "linux" || os == "chromeos"
37 40
38 # Selects the desired build flavor. Official builds get additional 41 # Selects the desired build flavor. Official builds get additional
39 # processing to prepare for release. Normally you will want to develop and 42 # processing to prepare for release. Normally you will want to develop and
40 # test with this flag off. 43 # test with this flag off.
41 is_official_build = false 44 is_official_build = false
42 45
43 # Select the desired branding flavor. False means normal Chromium branding, 46 # Select the desired branding flavor. False means normal Chromium branding,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 is_android = false 156 is_android = false
154 is_chromeos = false 157 is_chromeos = false
155 is_ios = false 158 is_ios = false
156 is_linux = true 159 is_linux = true
157 is_mac = false 160 is_mac = false
158 is_nacl = false 161 is_nacl = false
159 is_posix = true 162 is_posix = true
160 is_win = false 163 is_win = false
161 } 164 }
162 165
163 is_desktop_linux = is_linux && !is_chromeos
164
165 # ============================================================================= 166 # =============================================================================
166 # CPU ARCHITECTURE 167 # CPU ARCHITECTURE
167 # ============================================================================= 168 # =============================================================================
168 169
169 if (is_android) { 170 if (is_android) {
170 # TODO(cjhopman): enable this assert once bots are updated to not set 171 # TODO(cjhopman): enable this assert once bots are updated to not set
171 # cpu_arch. 172 # cpu_arch.
172 #assert(cpu_arch == build_cpu_arch, "Android device target architecture should 173 #assert(cpu_arch == build_cpu_arch, "Android device target architecture should
173 # be set with 'target_arch', not 'cpu_arch'") 174 # be set with 'target_arch', not 'cpu_arch'")
174 cpu_arch = target_arch 175 cpu_arch = target_arch
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 } 909 }
909 if (defined(invoker.sources)) { 910 if (defined(invoker.sources)) {
910 sources = invoker.sources 911 sources = invoker.sources
911 } 912 }
912 if (defined(invoker.visibility)) { 913 if (defined(invoker.visibility)) {
913 visibility = invoker.visibility 914 visibility = invoker.visibility
914 } 915 }
915 } 916 }
916 } 917 }
917 } 918 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698