| 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 import("//build/config/allocator.gni") | 5 import("//build/config/allocator.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
| 9 import("//build/config/dcheck_always_on.gni") | 9 import("//build/config/dcheck_always_on.gni") |
| 10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 "//build/config/mac:mac_executable_flags", | 393 "//build/config/mac:mac_executable_flags", |
| 394 ] | 394 ] |
| 395 } else if (is_linux || is_android) { | 395 } else if (is_linux || is_android) { |
| 396 configs += [ "//build/config/gcc:executable_ldconfig" ] | 396 configs += [ "//build/config/gcc:executable_ldconfig" ] |
| 397 if (is_android) { | 397 if (is_android) { |
| 398 configs += [ "//build/config/android:executable_config" ] | 398 configs += [ "//build/config/android:executable_config" ] |
| 399 } else if (is_chromecast) { | 399 } else if (is_chromecast) { |
| 400 configs += [ "//build/config/chromecast:executable_config" ] | 400 configs += [ "//build/config/chromecast:executable_config" ] |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 |
| 404 # If we're using the prebuilt instrumented libraries with the sanitizers, we |
| 405 # need to add ldflags to every binary to make sure they are picked up. |
| 406 if (prebuilt_instrumented_libraries_available) { |
| 407 configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ] |
| 408 } |
| 403 } | 409 } |
| 404 | 410 |
| 405 # Shared library configs ------------------------------------------------------- | 411 # Shared library configs ------------------------------------------------------- |
| 406 | 412 |
| 407 # This config defines the configs applied to all shared libraries. | 413 # This config defines the configs applied to all shared libraries. |
| 408 config("shared_library_config") { | 414 config("shared_library_config") { |
| 409 configs = [] | 415 configs = [] |
| 410 | 416 |
| 411 if (is_win) { | 417 if (is_win) { |
| 412 configs += _windows_linker_configs | 418 configs += _windows_linker_configs |
| 413 } else if (is_mac) { | 419 } else if (is_mac) { |
| 414 configs += [ "//build/config/mac:mac_dynamic_flags" ] | 420 configs += [ "//build/config/mac:mac_dynamic_flags" ] |
| 415 } else if (is_chromecast) { | 421 } else if (is_chromecast) { |
| 416 configs += [ "//build/config/chromecast:shared_library_config" ] | 422 configs += [ "//build/config/chromecast:shared_library_config" ] |
| 417 } | 423 } |
| 424 |
| 425 # If we're using the prebuilt instrumented libraries with the sanitizers, we |
| 426 # need to add ldflags to every binary to make sure they are picked up. |
| 427 if (prebuilt_instrumented_libraries_available) { |
| 428 configs += [ "//third_party/instrumented_libraries:prebuilt_ldflags" ] |
| 429 } |
| 418 } | 430 } |
| 419 | 431 |
| 420 # Add this config to your target to enable precompiled headers. | 432 # Add this config to your target to enable precompiled headers. |
| 421 # | 433 # |
| 422 # Precompiled headers are done on a per-target basis. If you have just a couple | 434 # Precompiled headers are done on a per-target basis. If you have just a couple |
| 423 # of files, the time it takes to precompile (~2 seconds) can actually be longer | 435 # of files, the time it takes to precompile (~2 seconds) can actually be longer |
| 424 # than the time saved. On a Z620, a 100 file target compiles about 2 seconds | 436 # than the time saved. On a Z620, a 100 file target compiles about 2 seconds |
| 425 # faster with precompiled headers, with greater savings for larger targets. | 437 # faster with precompiled headers, with greater savings for larger targets. |
| 426 # | 438 # |
| 427 # Recommend precompiled headers for targets with more than 50 .cc files. | 439 # Recommend precompiled headers for targets with more than 50 .cc files. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 450 # file doesn't exist, no error will be generated (probably MS tested this | 462 # file doesn't exist, no error will be generated (probably MS tested this |
| 451 # case but forgot the other one?). To reproduce this error, do a build, | 463 # case but forgot the other one?). To reproduce this error, do a build, |
| 452 # then delete the precompile.c.obj file, then build again. | 464 # then delete the precompile.c.obj file, then build again. |
| 453 cflags_c = [ "/wd4206" ] | 465 cflags_c = [ "/wd4206" ] |
| 454 } else if (is_mac) { | 466 } else if (is_mac) { |
| 455 precompiled_header = "build/precompile.h" | 467 precompiled_header = "build/precompile.h" |
| 456 precompiled_source = "//build/precompile.h" | 468 precompiled_source = "//build/precompile.h" |
| 457 } | 469 } |
| 458 } | 470 } |
| 459 } | 471 } |
| OLD | NEW |