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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 "//build/config/compiler:runtime_library", | 321 "//build/config/compiler:runtime_library", |
322 ] | 322 ] |
323 if (is_win) { | 323 if (is_win) { |
324 native_compiler_configs += [ "//build/config/win:sdk", ] | 324 native_compiler_configs += [ "//build/config/win:sdk", ] |
325 } else if (is_linux) { | 325 } else if (is_linux) { |
326 native_compiler_configs += [ "//build/config/linux:sdk", ] | 326 native_compiler_configs += [ "//build/config/linux:sdk", ] |
327 } else if (is_mac) { | 327 } else if (is_mac) { |
328 native_compiler_configs += [ "//build/config/mac:sdk", ] | 328 native_compiler_configs += [ "//build/config/mac:sdk", ] |
329 } else if (is_ios) { | 329 } else if (is_ios) { |
330 native_compiler_configs += [ "//build/config/ios:sdk", ] | 330 native_compiler_configs += [ "//build/config/ios:sdk", ] |
| 331 } else if (is_android) { |
| 332 native_compiler_configs += [ "//build/config/android:sdk", ] |
331 } | 333 } |
332 if (is_clang) { | 334 if (is_clang) { |
333 native_compiler_configs += [ "//build/config/clang:find_bad_constructs" ] | 335 native_compiler_configs += [ "//build/config/clang:find_bad_constructs" ] |
334 } | 336 } |
335 | 337 |
336 # Optimizations and debug checking. | 338 # Optimizations and debug checking. |
337 if (is_debug) { | 339 if (is_debug) { |
338 native_compiler_configs += [ "//build/config:debug" ] | 340 native_compiler_configs += [ "//build/config:debug" ] |
339 default_optimization_config = "//build/config/compiler:no_optimize" | 341 default_optimization_config = "//build/config/compiler:no_optimize" |
340 } else { | 342 } else { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } else if (is_linux) { | 445 } else if (is_linux) { |
444 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 446 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
445 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 447 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
446 } else if (is_mac) { | 448 } else if (is_mac) { |
447 host_toolchain = "//build/toolchain/mac:clang" | 449 host_toolchain = "//build/toolchain/mac:clang" |
448 set_default_toolchain(host_toolchain) | 450 set_default_toolchain(host_toolchain) |
449 } else if (is_ios) { | 451 } else if (is_ios) { |
450 host_toolchain = "//build/toolchain/mac:host_clang" | 452 host_toolchain = "//build/toolchain/mac:host_clang" |
451 set_default_toolchain("//build/toolchain/mac:clang") | 453 set_default_toolchain("//build/toolchain/mac:clang") |
452 } | 454 } |
OLD | NEW |