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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 "process/process_metrics_linux.cc", | 712 "process/process_metrics_linux.cc", |
713 "process/process_metrics_mac.cc", | 713 "process/process_metrics_mac.cc", |
714 | 714 |
715 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. | 715 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. |
716 "process/process_metrics_posix.cc", | 716 "process/process_metrics_posix.cc", |
717 "process/process_metrics_win.cc", | 717 "process/process_metrics_win.cc", |
718 "process/process_posix.cc", | 718 "process/process_posix.cc", |
719 "process/process_win.cc", | 719 "process/process_win.cc", |
720 "profiler/native_stack_sampler.cc", | 720 "profiler/native_stack_sampler.cc", |
721 "profiler/native_stack_sampler.h", | 721 "profiler/native_stack_sampler.h", |
| 722 "profiler/native_stack_sampler_mac.cc", |
722 "profiler/native_stack_sampler_posix.cc", | 723 "profiler/native_stack_sampler_posix.cc", |
723 "profiler/native_stack_sampler_win.cc", | 724 "profiler/native_stack_sampler_win.cc", |
724 "profiler/scoped_profile.cc", | 725 "profiler/scoped_profile.cc", |
725 "profiler/scoped_profile.h", | 726 "profiler/scoped_profile.h", |
726 "profiler/scoped_tracker.cc", | 727 "profiler/scoped_tracker.cc", |
727 "profiler/scoped_tracker.h", | 728 "profiler/scoped_tracker.h", |
728 "profiler/stack_sampling_profiler.cc", | 729 "profiler/stack_sampling_profiler.cc", |
729 "profiler/stack_sampling_profiler.h", | 730 "profiler/stack_sampling_profiler.h", |
730 "profiler/tracked_time.cc", | 731 "profiler/tracked_time.cc", |
731 "profiler/tracked_time.h", | 732 "profiler/tracked_time.h", |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 } | 1450 } |
1450 | 1451 |
1451 # Mac or iOS. | 1452 # Mac or iOS. |
1452 if (is_mac || is_ios) { | 1453 if (is_mac || is_ios) { |
1453 sources -= [ | 1454 sources -= [ |
1454 "memory/shared_memory_posix.cc", | 1455 "memory/shared_memory_posix.cc", |
1455 "native_library_posix.cc", | 1456 "native_library_posix.cc", |
1456 "strings/sys_string_conversions_posix.cc", | 1457 "strings/sys_string_conversions_posix.cc", |
1457 "threading/platform_thread_internal_posix.cc", | 1458 "threading/platform_thread_internal_posix.cc", |
1458 ] | 1459 ] |
| 1460 |
| 1461 if (is_mac) { |
| 1462 sources -= [ "profiler/native_stack_sampler_posix.cc" ] |
| 1463 } |
1459 } else { | 1464 } else { |
1460 # Non-Mac/ios. | 1465 # Non-Mac/ios. |
1461 sources -= [ | 1466 sources -= [ |
1462 "files/file_path_watcher_fsevents.cc", | 1467 "files/file_path_watcher_fsevents.cc", |
1463 "files/file_path_watcher_fsevents.h", | 1468 "files/file_path_watcher_fsevents.h", |
1464 "files/file_path_watcher_kqueue.cc", | 1469 "files/file_path_watcher_kqueue.cc", |
1465 "files/file_path_watcher_kqueue.h", | 1470 "files/file_path_watcher_kqueue.h", |
1466 ] | 1471 ] |
1467 } | 1472 } |
1468 | 1473 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1813 | 1818 |
1814 loadable_module("scoped_handle_test_dll") { | 1819 loadable_module("scoped_handle_test_dll") { |
1815 sources = [ | 1820 sources = [ |
1816 "win/scoped_handle_test_dll.cc", | 1821 "win/scoped_handle_test_dll.cc", |
1817 ] | 1822 ] |
1818 deps = [ | 1823 deps = [ |
1819 ":base", | 1824 ":base", |
1820 "//base/win:base_win_features", | 1825 "//base/win:base_win_features", |
1821 ] | 1826 ] |
1822 } | 1827 } |
| 1828 } |
1823 | 1829 |
| 1830 if (is_win || is_mac) { |
1824 if (current_cpu == "x64") { | 1831 if (current_cpu == "x64") { |
1825 # Must be a shared library so that it can be unloaded during testing. | 1832 # Must be a shared library so that it can be unloaded during testing. |
1826 shared_library("base_profiler_test_support_library") { | 1833 shared_library("base_profiler_test_support_library") { |
1827 sources = [ | 1834 sources = [ |
1828 "profiler/test_support_library.cc", | 1835 "profiler/test_support_library.cc", |
1829 ] | 1836 ] |
1830 deps = [ | 1837 deps = [ |
1831 "//build/config/sanitizers:deps", | 1838 "//build/config/sanitizers:deps", |
1832 ] | 1839 ] |
1833 } | 1840 } |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2268 | 2275 |
2269 if (use_partition_alloc) { | 2276 if (use_partition_alloc) { |
2270 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2277 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
2271 } | 2278 } |
2272 | 2279 |
2273 if (is_mac) { | 2280 if (is_mac) { |
2274 libs = [ | 2281 libs = [ |
2275 "CoreFoundation.framework", | 2282 "CoreFoundation.framework", |
2276 "Foundation.framework", | 2283 "Foundation.framework", |
2277 ] | 2284 ] |
| 2285 if (current_cpu == "x64") { |
| 2286 data_deps += [ ":base_profiler_test_support_library" ] |
| 2287 } |
2278 } | 2288 } |
2279 | 2289 |
2280 if (is_linux) { | 2290 if (is_linux) { |
2281 if (is_desktop_linux) { | 2291 if (is_desktop_linux) { |
2282 sources += [ "nix/xdg_util_unittest.cc" ] | 2292 sources += [ "nix/xdg_util_unittest.cc" ] |
2283 } | 2293 } |
2284 | 2294 |
2285 deps += [ "//base/test:malloc_wrapper" ] | 2295 deps += [ "//base/test:malloc_wrapper" ] |
2286 | 2296 |
2287 if (!is_component_build) { | 2297 if (!is_component_build) { |
(...skipping 18 matching lines...) Expand all Loading... |
2306 "debug/proc_maps_linux_unittest.cc", | 2316 "debug/proc_maps_linux_unittest.cc", |
2307 "trace_event/trace_event_android_unittest.cc", | 2317 "trace_event/trace_event_android_unittest.cc", |
2308 ] | 2318 ] |
2309 set_sources_assignment_filter(sources_assignment_filter) | 2319 set_sources_assignment_filter(sources_assignment_filter) |
2310 } | 2320 } |
2311 | 2321 |
2312 if (is_win) { | 2322 if (is_win) { |
2313 deps += [ "//base:scoped_handle_test_dll" ] | 2323 deps += [ "//base:scoped_handle_test_dll" ] |
2314 if (current_cpu == "x64") { | 2324 if (current_cpu == "x64") { |
2315 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2325 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
2316 deps += [ ":base_profiler_test_support_library" ] | 2326 data_deps += [ ":base_profiler_test_support_library" ] |
2317 } | 2327 } |
2318 } | 2328 } |
2319 | 2329 |
2320 if (use_experimental_allocator_shim) { | 2330 if (use_experimental_allocator_shim) { |
2321 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2331 sources += [ "allocator/allocator_shim_unittest.cc" ] |
2322 } | 2332 } |
2323 | 2333 |
2324 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2334 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
2325 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2335 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
2326 | 2336 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 } | 2666 } |
2657 | 2667 |
2658 fuzzer_test("base_json_correctness_fuzzer") { | 2668 fuzzer_test("base_json_correctness_fuzzer") { |
2659 sources = [ | 2669 sources = [ |
2660 "json/correctness_fuzzer.cc", | 2670 "json/correctness_fuzzer.cc", |
2661 ] | 2671 ] |
2662 deps = [ | 2672 deps = [ |
2663 ":base", | 2673 ":base", |
2664 ] | 2674 ] |
2665 } | 2675 } |
OLD | NEW |