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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 _native_compiler_configs += [ "//build/config/android:sdk", ] | 341 _native_compiler_configs += [ "//build/config/android:sdk", ] |
342 } | 342 } |
343 | 343 |
344 if (is_clang) { | 344 if (is_clang) { |
345 _native_compiler_configs += [ | 345 _native_compiler_configs += [ |
346 "//build/config/clang:find_bad_constructs", | 346 "//build/config/clang:find_bad_constructs", |
347 "//build/config/clang:extra_warnings", | 347 "//build/config/clang:extra_warnings", |
348 ] | 348 ] |
349 } | 349 } |
350 | 350 |
| 351 if (is_android) { |
| 352 _native_compiler_configs += [ |
| 353 "//build/config/android:no_export_static_lib_symbols", |
| 354 ] |
| 355 } |
| 356 |
351 # Optimizations and debug checking. | 357 # Optimizations and debug checking. |
352 if (is_debug) { | 358 if (is_debug) { |
353 _native_compiler_configs += [ "//build/config:debug" ] | 359 _native_compiler_configs += [ "//build/config:debug" ] |
354 _default_optimization_config = "//build/config/compiler:no_optimize" | 360 _default_optimization_config = "//build/config/compiler:no_optimize" |
355 } else { | 361 } else { |
356 _native_compiler_configs += [ "//build/config:release" ] | 362 _native_compiler_configs += [ "//build/config:release" ] |
357 _default_optimization_config = "//build/config/compiler:optimize" | 363 _default_optimization_config = "//build/config/compiler:optimize" |
358 } | 364 } |
359 _native_compiler_configs += [ _default_optimization_config ] | 365 _native_compiler_configs += [ _default_optimization_config ] |
360 | 366 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 475 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
470 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 476 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
471 } | 477 } |
472 } else if (is_mac) { | 478 } else if (is_mac) { |
473 host_toolchain = "//build/toolchain/mac:clang" | 479 host_toolchain = "//build/toolchain/mac:clang" |
474 set_default_toolchain(host_toolchain) | 480 set_default_toolchain(host_toolchain) |
475 } else if (is_ios) { | 481 } else if (is_ios) { |
476 host_toolchain = "//build/toolchain/mac:host_clang" | 482 host_toolchain = "//build/toolchain/mac:host_clang" |
477 set_default_toolchain("//build/toolchain/mac:clang") | 483 set_default_toolchain("//build/toolchain/mac:clang") |
478 } | 484 } |
OLD | NEW |