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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 "//build/config:my_msvs", # TODO(brettw) eraseme | 329 "//build/config:my_msvs", # TODO(brettw) eraseme |
330 | 330 |
331 "//build/config/compiler:compiler", | 331 "//build/config/compiler:compiler", |
332 "//build/config/compiler:chromium_code", | 332 "//build/config/compiler:chromium_code", |
333 "//build/config/compiler:default_warnings", | 333 "//build/config/compiler:default_warnings", |
334 "//build/config/compiler:no_rtti", | 334 "//build/config/compiler:no_rtti", |
335 "//build/config/compiler:runtime_library", | 335 "//build/config/compiler:runtime_library", |
336 ] | 336 ] |
337 if (is_win) { | 337 if (is_win) { |
338 native_compiler_configs += [ "//build/config/win:sdk", ] | 338 native_compiler_configs += [ "//build/config/win:sdk", ] |
| 339 } else if (is_linux) { |
| 340 native_compiler_configs += [ "//build/config/linux:sdk", ] |
339 } else if (is_mac) { | 341 } else if (is_mac) { |
340 native_compiler_configs += [ "//build/config/mac:sdk", ] | 342 native_compiler_configs += [ "//build/config/mac:sdk", ] |
341 } else if (is_ios) { | 343 } else if (is_ios) { |
342 native_compiler_configs += [ "//build/config/ios:sdk", ] | 344 native_compiler_configs += [ "//build/config/ios:sdk", ] |
343 } | 345 } |
344 if (is_clang) { | 346 if (is_clang) { |
345 native_compiler_configs += [ "//build/config/clang:find_bad_constructs" ] | 347 native_compiler_configs += [ "//build/config/clang:find_bad_constructs" ] |
346 } | 348 } |
347 | 349 |
348 # Optimizations and debug checking. | 350 # Optimizations and debug checking. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } else if (is_android) { | 448 } else if (is_android) { |
447 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 449 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
448 set_default_toolchain("//build/toolchain/android:$cpu_arch") | 450 set_default_toolchain("//build/toolchain/android:$cpu_arch") |
449 } else if (is_linux) { | 451 } else if (is_linux) { |
450 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 452 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
451 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 453 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
452 } else if (is_mac || is_ios) { | 454 } else if (is_mac || is_ios) { |
453 host_toolchain = "//build/toolchain/mac:clang" | 455 host_toolchain = "//build/toolchain/mac:clang" |
454 set_default_toolchain(host_toolchain) | 456 set_default_toolchain(host_toolchain) |
455 } | 457 } |
OLD | NEW |