| 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 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
| 10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 if (is_linux) { | 380 if (is_linux) { |
| 381 _native_compiler_configs += [ "//build/config/linux:sdk" ] | 381 _native_compiler_configs += [ "//build/config/linux:sdk" ] |
| 382 } else if (is_mac) { | 382 } else if (is_mac) { |
| 383 _native_compiler_configs += [ "//build/config/mac:sdk" ] | 383 _native_compiler_configs += [ "//build/config/mac:sdk" ] |
| 384 } else if (is_ios) { | 384 } else if (is_ios) { |
| 385 _native_compiler_configs += [ "//build/config/ios:sdk" ] | 385 _native_compiler_configs += [ "//build/config/ios:sdk" ] |
| 386 } else if (is_android) { | 386 } else if (is_android) { |
| 387 _native_compiler_configs += [ "//build/config/android:sdk" ] | 387 _native_compiler_configs += [ "//build/config/android:sdk" ] |
| 388 } | 388 } |
| 389 | 389 |
| 390 if (is_android) { |
| 391 _native_compiler_configs += |
| 392 [ "//build/config/android:default_cygprofile_instrumentation" ] |
| 393 } |
| 394 |
| 390 if (is_clang && !is_nacl) { | 395 if (is_clang && !is_nacl) { |
| 391 _native_compiler_configs += [ | 396 _native_compiler_configs += [ |
| 392 "//build/config/clang:find_bad_constructs", | 397 "//build/config/clang:find_bad_constructs", |
| 393 "//build/config/clang:extra_warnings", | 398 "//build/config/clang:extra_warnings", |
| 394 ] | 399 ] |
| 395 } | 400 } |
| 396 | 401 |
| 397 # Debug/release-related defines. | 402 # Debug/release-related defines. |
| 398 if (is_debug) { | 403 if (is_debug) { |
| 399 _native_compiler_configs += [ "//build/config:debug" ] | 404 _native_compiler_configs += [ "//build/config:debug" ] |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 forward_variables_from(invoker, "*") | 566 forward_variables_from(invoker, "*") |
| 562 | 567 |
| 563 # All shared libraries must have the sanitizer deps to properly link in | 568 # All shared libraries must have the sanitizer deps to properly link in |
| 564 # asan mode (this target will be empty in other cases). | 569 # asan mode (this target will be empty in other cases). |
| 565 if (!defined(deps)) { | 570 if (!defined(deps)) { |
| 566 deps = [] | 571 deps = [] |
| 567 } | 572 } |
| 568 deps += [ "//build/config/sanitizers:deps" ] | 573 deps += [ "//build/config/sanitizers:deps" ] |
| 569 } | 574 } |
| 570 } | 575 } |
| OLD | NEW |