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 # 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 Loading... |
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 Loading... |
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 } |
OLD | NEW |