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