| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 "//build/config/compiler:default_include_dirs", | 354 "//build/config/compiler:default_include_dirs", |
| 355 "//build/config/compiler:default_optimization", | 355 "//build/config/compiler:default_optimization", |
| 356 "//build/config/compiler:default_symbols", | 356 "//build/config/compiler:default_symbols", |
| 357 "//build/config/compiler:no_rtti", | 357 "//build/config/compiler:no_rtti", |
| 358 "//build/config/compiler:runtime_library", | 358 "//build/config/compiler:runtime_library", |
| 359 ] | 359 ] |
| 360 if (is_win) { | 360 if (is_win) { |
| 361 _native_compiler_configs += [ | 361 _native_compiler_configs += [ |
| 362 "//build/config/win:lean_and_mean", | 362 "//build/config/win:lean_and_mean", |
| 363 "//build/config/win:nominmax", | 363 "//build/config/win:nominmax", |
| 364 "//build/config/win:sdk", | |
| 365 "//build/config/win:unicode", | 364 "//build/config/win:unicode", |
| 366 "//build/config/win:winver", | 365 "//build/config/win:winver", |
| 367 ] | 366 ] |
| 368 } | 367 } |
| 369 if (current_os == "winrt_81" || current_os == "winrt_81_phone" || | 368 if (current_os == "winrt_81" || current_os == "winrt_81_phone" || |
| 370 current_os == "winrt_10") { | 369 current_os == "winrt_10") { |
| 371 _native_compiler_configs += [ "//build/config/win:target_winrt" ] | 370 _native_compiler_configs += [ "//build/config/win:target_winrt" ] |
| 372 } | 371 } |
| 373 if (is_posix) { | 372 if (is_posix) { |
| 374 _native_compiler_configs += [ | 373 _native_compiler_configs += [ |
| 375 "//build/config/gcc:no_exceptions", | 374 "//build/config/gcc:no_exceptions", |
| 376 "//build/config/gcc:symbol_visibility_hidden", | 375 "//build/config/gcc:symbol_visibility_hidden", |
| 377 ] | 376 ] |
| 378 } | 377 } |
| 379 | 378 |
| 380 if (is_linux) { | |
| 381 _native_compiler_configs += [ "//build/config/linux:sdk" ] | |
| 382 } else if (is_mac) { | |
| 383 _native_compiler_configs += [ "//build/config/mac:sdk" ] | |
| 384 } else if (is_ios) { | |
| 385 _native_compiler_configs += [ "//build/config/ios:sdk" ] | |
| 386 } else if (is_android) { | |
| 387 _native_compiler_configs += [ "//build/config/android:sdk" ] | |
| 388 } | |
| 389 | |
| 390 if (is_clang && !is_nacl) { | 379 if (is_clang && !is_nacl) { |
| 391 _native_compiler_configs += [ | 380 _native_compiler_configs += [ |
| 392 "//build/config/clang:find_bad_constructs", | 381 "//build/config/clang:find_bad_constructs", |
| 393 "//build/config/clang:extra_warnings", | 382 "//build/config/clang:extra_warnings", |
| 394 ] | 383 ] |
| 395 } | 384 } |
| 396 | 385 |
| 397 # Debug/release-related defines. | 386 # Debug/release-related defines. |
| 398 if (is_debug) { | 387 if (is_debug) { |
| 399 _native_compiler_configs += [ "//build/config:debug" ] | 388 _native_compiler_configs += [ "//build/config:debug" ] |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 forward_variables_from(invoker, "*") | 550 forward_variables_from(invoker, "*") |
| 562 | 551 |
| 563 # All shared libraries must have the sanitizer deps to properly link in | 552 # All shared libraries must have the sanitizer deps to properly link in |
| 564 # asan mode (this target will be empty in other cases). | 553 # asan mode (this target will be empty in other cases). |
| 565 if (!defined(deps)) { | 554 if (!defined(deps)) { |
| 566 deps = [] | 555 deps = [] |
| 567 } | 556 } |
| 568 deps += [ "//build/config/sanitizers:deps" ] | 557 deps += [ "//build/config/sanitizers:deps" ] |
| 569 } | 558 } |
| 570 } | 559 } |
| OLD | NEW |