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