| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 declare_args() { | 34 declare_args() { |
| 35 # Override this value to give a specific build date. | 35 # Override this value to give a specific build date. |
| 36 # See //base/build_time.cc and //build/write_build_date_header.py for more | 36 # See //base/build_time.cc and //build/write_build_date_header.py for more |
| 37 # details and the expected format. | 37 # details and the expected format. |
| 38 override_build_date = "N/A" | 38 override_build_date = "N/A" |
| 39 | 39 |
| 40 # Turn on memory profiling in the task profiler when the heap shim is | 40 # Turn on memory profiling in the task profiler when the heap shim is |
| 41 # available. Profiling can then be enabled at runtime by passing the command | 41 # available. Profiling can then be enabled at runtime by passing the command |
| 42 # line flag --enable-heap-profiling=task-profiler. | 42 # line flag --enable-heap-profiling=task-profiler. |
| 43 enable_memory_task_profiler = use_experimental_allocator_shim | 43 enable_memory_task_profiler = use_allocator_shim |
| 44 | 44 |
| 45 # Partition alloc is included by default except iOS. | 45 # Partition alloc is included by default except iOS. |
| 46 use_partition_alloc = !is_ios | 46 use_partition_alloc = !is_ios |
| 47 } | 47 } |
| 48 | 48 |
| 49 if (is_android) { | 49 if (is_android) { |
| 50 import("//build/config/android/rules.gni") | 50 import("//build/config/android/rules.gni") |
| 51 } | 51 } |
| 52 | 52 |
| 53 config("base_flags") { | 53 config("base_flags") { |
| (...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 ] | 1140 ] |
| 1141 | 1141 |
| 1142 # Needed for <atomic> if using newer C++ library than sysroot, except if | 1142 # Needed for <atomic> if using newer C++ library than sysroot, except if |
| 1143 # building inside the cros_sdk environment - use host_toolchain as a | 1143 # building inside the cros_sdk environment - use host_toolchain as a |
| 1144 # more robust check for this. | 1144 # more robust check for this. |
| 1145 if (!use_sysroot && (is_android || (is_linux && !is_chromecast)) && | 1145 if (!use_sysroot && (is_android || (is_linux && !is_chromecast)) && |
| 1146 host_toolchain != "//build/toolchain/cros:host") { | 1146 host_toolchain != "//build/toolchain/cros:host") { |
| 1147 libs = [ "atomic" ] | 1147 libs = [ "atomic" ] |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 if (use_experimental_allocator_shim) { | 1150 if (use_allocator_shim) { |
| 1151 # TODO(primiano): support other platforms, currently this works only on | |
| 1152 # Linux/CrOS/Android. http://crbug.com/550886 . | |
| 1153 sources += [ | 1151 sources += [ |
| 1154 "allocator/allocator_shim.cc", | 1152 "allocator/allocator_shim.cc", |
| 1155 "allocator/allocator_shim.h", | 1153 "allocator/allocator_shim.h", |
| 1156 "allocator/allocator_shim_internals.h", | 1154 "allocator/allocator_shim_internals.h", |
| 1157 "allocator/allocator_shim_override_cpp_symbols.h", | 1155 "allocator/allocator_shim_override_cpp_symbols.h", |
| 1158 "allocator/allocator_shim_override_libc_symbols.h", | 1156 "allocator/allocator_shim_override_libc_symbols.h", |
| 1159 ] | 1157 ] |
| 1160 if (is_win) { | 1158 if (is_win) { |
| 1161 sources += [ | 1159 sources += [ |
| 1162 "allocator/allocator_shim_default_dispatch_to_winheap.cc", | 1160 "allocator/allocator_shim_default_dispatch_to_winheap.cc", |
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 } | 2393 } |
| 2396 | 2394 |
| 2397 if (is_win) { | 2395 if (is_win) { |
| 2398 deps += [ "//base:scoped_handle_test_dll" ] | 2396 deps += [ "//base:scoped_handle_test_dll" ] |
| 2399 if (current_cpu == "x64") { | 2397 if (current_cpu == "x64") { |
| 2400 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2398 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
| 2401 data_deps += [ ":base_profiler_test_support_library" ] | 2399 data_deps += [ ":base_profiler_test_support_library" ] |
| 2402 } | 2400 } |
| 2403 } | 2401 } |
| 2404 | 2402 |
| 2405 if (use_experimental_allocator_shim) { | 2403 if (use_allocator_shim) { |
| 2406 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2404 sources += [ "allocator/allocator_shim_unittest.cc" ] |
| 2407 } | 2405 } |
| 2408 | 2406 |
| 2409 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2407 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 2410 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2408 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 2411 | 2409 |
| 2412 # Symbols for crashes when running tests on swarming. | 2410 # Symbols for crashes when running tests on swarming. |
| 2413 if (symbol_level > 0) { | 2411 if (symbol_level > 0) { |
| 2414 if (is_win) { | 2412 if (is_win) { |
| 2415 data += [ "$root_out_dir/base_unittests.exe.pdb" ] | 2413 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2766 } | 2764 } |
| 2767 | 2765 |
| 2768 fuzzer_test("base_json_correctness_fuzzer") { | 2766 fuzzer_test("base_json_correctness_fuzzer") { |
| 2769 sources = [ | 2767 sources = [ |
| 2770 "json/correctness_fuzzer.cc", | 2768 "json/correctness_fuzzer.cc", |
| 2771 ] | 2769 ] |
| 2772 deps = [ | 2770 deps = [ |
| 2773 ":base", | 2771 ":base", |
| 2774 ] | 2772 ] |
| 2775 } | 2773 } |
| OLD | NEW |