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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
6 # ====================================== | 6 # ====================================== |
7 # | 7 # |
8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
10 # it from the sources list in that case | 10 # it from the sources list in that case |
(...skipping 17 matching lines...) Expand all Loading... |
28 import("//build/config/ui.gni") | 28 import("//build/config/ui.gni") |
29 import("//build/nocompile.gni") | 29 import("//build/nocompile.gni") |
30 import("//testing/libfuzzer/fuzzer_test.gni") | 30 import("//testing/libfuzzer/fuzzer_test.gni") |
31 import("//testing/test.gni") | 31 import("//testing/test.gni") |
32 | 32 |
33 declare_args() { | 33 declare_args() { |
34 # Override this value to give a specific build date. | 34 # Override this value to give a specific build date. |
35 # See //base/build_time.cc and //build/write_build_date_header.py for more | 35 # See //base/build_time.cc and //build/write_build_date_header.py for more |
36 # details and the expected format. | 36 # details and the expected format. |
37 override_build_date = "N/A" | 37 override_build_date = "N/A" |
| 38 |
| 39 # Turn on memory profiling in the task profiler when the heap shim is |
| 40 # available, except for official builds for now. |
| 41 enable_memory_task_profiler = |
| 42 use_experimental_allocator_shim && !is_official_build |
38 } | 43 } |
39 | 44 |
40 if (is_android) { | 45 if (is_android) { |
41 import("//build/config/android/rules.gni") | 46 import("//build/config/android/rules.gni") |
42 } | 47 } |
43 | 48 |
44 config("base_flags") { | 49 config("base_flags") { |
45 if (is_clang) { | 50 if (is_clang) { |
46 cflags = [ | 51 cflags = [ |
47 # Don't die on dtoa code that uses a char as an array index. | 52 # Don't die on dtoa code that uses a char as an array index. |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 configs -= [ "//build/config/compiler:default_optimization" ] | 1497 configs -= [ "//build/config/compiler:default_optimization" ] |
1493 configs += [ "//build/config/compiler:optimize_max" ] | 1498 configs += [ "//build/config/compiler:optimize_max" ] |
1494 } | 1499 } |
1495 | 1500 |
1496 allow_circular_includes_from = public_deps | 1501 allow_circular_includes_from = public_deps |
1497 } | 1502 } |
1498 | 1503 |
1499 buildflag_header("debugging_flags") { | 1504 buildflag_header("debugging_flags") { |
1500 header = "debugging_flags.h" | 1505 header = "debugging_flags.h" |
1501 header_dir = "base/debug" | 1506 header_dir = "base/debug" |
1502 flags = [ "ENABLE_PROFILING=$enable_profiling" ] | 1507 flags = [ |
| 1508 "ENABLE_PROFILING=$enable_profiling", |
| 1509 "ENABLE_MEMORY_TASK_PROFILER=$enable_memory_task_profiler", |
| 1510 ] |
1503 } | 1511 } |
1504 | 1512 |
1505 # This is the subset of files from base that should not be used with a dynamic | 1513 # This is the subset of files from base that should not be used with a dynamic |
1506 # library. Note that this library cannot depend on base because base depends on | 1514 # library. Note that this library cannot depend on base because base depends on |
1507 # base_static. | 1515 # base_static. |
1508 static_library("base_static") { | 1516 static_library("base_static") { |
1509 sources = [ | 1517 sources = [ |
1510 "base_switches.cc", | 1518 "base_switches.cc", |
1511 "base_switches.h", | 1519 "base_switches.h", |
1512 "task_scheduler/switches.cc", | 1520 "task_scheduler/switches.cc", |
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2502 } | 2510 } |
2503 | 2511 |
2504 fuzzer_test("base_json_correctness_fuzzer") { | 2512 fuzzer_test("base_json_correctness_fuzzer") { |
2505 sources = [ | 2513 sources = [ |
2506 "json/correctness_fuzzer.cc", | 2514 "json/correctness_fuzzer.cc", |
2507 ] | 2515 ] |
2508 deps = [ | 2516 deps = [ |
2509 ":base", | 2517 ":base", |
2510 ] | 2518 ] |
2511 } | 2519 } |
OLD | NEW |