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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 configs -= [ "//build/config/compiler:default_optimization" ] | 1477 configs -= [ "//build/config/compiler:default_optimization" ] |
1473 configs += [ "//build/config/compiler:optimize_max" ] | 1478 configs += [ "//build/config/compiler:optimize_max" ] |
1474 } | 1479 } |
1475 | 1480 |
1476 allow_circular_includes_from = public_deps | 1481 allow_circular_includes_from = public_deps |
1477 } | 1482 } |
1478 | 1483 |
1479 buildflag_header("debugging_flags") { | 1484 buildflag_header("debugging_flags") { |
1480 header = "debugging_flags.h" | 1485 header = "debugging_flags.h" |
1481 header_dir = "base/debug" | 1486 header_dir = "base/debug" |
1482 flags = [ "ENABLE_PROFILING=$enable_profiling" ] | 1487 flags = [ |
| 1488 "ENABLE_PROFILING=$enable_profiling", |
| 1489 "ENABLE_MEMORY_TASK_PROFILER=$enable_memory_task_profiler", |
| 1490 ] |
1483 } | 1491 } |
1484 | 1492 |
1485 # This is the subset of files from base that should not be used with a dynamic | 1493 # This is the subset of files from base that should not be used with a dynamic |
1486 # library. Note that this library cannot depend on base because base depends on | 1494 # library. Note that this library cannot depend on base because base depends on |
1487 # base_static. | 1495 # base_static. |
1488 static_library("base_static") { | 1496 static_library("base_static") { |
1489 sources = [ | 1497 sources = [ |
1490 "base_switches.cc", | 1498 "base_switches.cc", |
1491 "base_switches.h", | 1499 "base_switches.h", |
1492 "task_scheduler/switches.cc", | 1500 "task_scheduler/switches.cc", |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2469 } | 2477 } |
2470 | 2478 |
2471 fuzzer_test("base_json_correctness_fuzzer") { | 2479 fuzzer_test("base_json_correctness_fuzzer") { |
2472 sources = [ | 2480 sources = [ |
2473 "json/correctness_fuzzer.cc", | 2481 "json/correctness_fuzzer.cc", |
2474 ] | 2482 ] |
2475 deps = [ | 2483 deps = [ |
2476 ":base", | 2484 ":base", |
2477 ] | 2485 ] |
2478 } | 2486 } |
OLD | NEW |