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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 "process/process_metrics_linux.cc", | 715 "process/process_metrics_linux.cc", |
716 "process/process_metrics_mac.cc", | 716 "process/process_metrics_mac.cc", |
717 | 717 |
718 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. | 718 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. |
719 "process/process_metrics_posix.cc", | 719 "process/process_metrics_posix.cc", |
720 "process/process_metrics_win.cc", | 720 "process/process_metrics_win.cc", |
721 "process/process_posix.cc", | 721 "process/process_posix.cc", |
722 "process/process_win.cc", | 722 "process/process_win.cc", |
723 "profiler/native_stack_sampler.cc", | 723 "profiler/native_stack_sampler.cc", |
724 "profiler/native_stack_sampler.h", | 724 "profiler/native_stack_sampler.h", |
| 725 "profiler/native_stack_sampler_mac.cc", |
725 "profiler/native_stack_sampler_posix.cc", | 726 "profiler/native_stack_sampler_posix.cc", |
726 "profiler/native_stack_sampler_win.cc", | 727 "profiler/native_stack_sampler_win.cc", |
727 "profiler/scoped_profile.cc", | 728 "profiler/scoped_profile.cc", |
728 "profiler/scoped_profile.h", | 729 "profiler/scoped_profile.h", |
729 "profiler/scoped_tracker.cc", | 730 "profiler/scoped_tracker.cc", |
730 "profiler/scoped_tracker.h", | 731 "profiler/scoped_tracker.h", |
731 "profiler/stack_sampling_profiler.cc", | 732 "profiler/stack_sampling_profiler.cc", |
732 "profiler/stack_sampling_profiler.h", | 733 "profiler/stack_sampling_profiler.h", |
733 "profiler/tracked_time.cc", | 734 "profiler/tracked_time.cc", |
734 "profiler/tracked_time.h", | 735 "profiler/tracked_time.h", |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 } | 1460 } |
1460 | 1461 |
1461 # Mac or iOS. | 1462 # Mac or iOS. |
1462 if (is_mac || is_ios) { | 1463 if (is_mac || is_ios) { |
1463 sources -= [ | 1464 sources -= [ |
1464 "memory/shared_memory_posix.cc", | 1465 "memory/shared_memory_posix.cc", |
1465 "native_library_posix.cc", | 1466 "native_library_posix.cc", |
1466 "strings/sys_string_conversions_posix.cc", | 1467 "strings/sys_string_conversions_posix.cc", |
1467 "threading/platform_thread_internal_posix.cc", | 1468 "threading/platform_thread_internal_posix.cc", |
1468 ] | 1469 ] |
| 1470 |
| 1471 if (is_mac) { |
| 1472 sources -= [ "profiler/native_stack_sampler_posix.cc" ] |
| 1473 } |
1469 } else { | 1474 } else { |
1470 # Non-Mac/ios. | 1475 # Non-Mac/ios. |
1471 sources -= [ | 1476 sources -= [ |
1472 "files/file_path_watcher_fsevents.cc", | 1477 "files/file_path_watcher_fsevents.cc", |
1473 "files/file_path_watcher_fsevents.h", | 1478 "files/file_path_watcher_fsevents.h", |
1474 "files/file_path_watcher_kqueue.cc", | 1479 "files/file_path_watcher_kqueue.cc", |
1475 "files/file_path_watcher_kqueue.h", | 1480 "files/file_path_watcher_kqueue.h", |
1476 ] | 1481 ] |
1477 } | 1482 } |
1478 | 1483 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1831 | 1836 |
1832 loadable_module("scoped_handle_test_dll") { | 1837 loadable_module("scoped_handle_test_dll") { |
1833 sources = [ | 1838 sources = [ |
1834 "win/scoped_handle_test_dll.cc", | 1839 "win/scoped_handle_test_dll.cc", |
1835 ] | 1840 ] |
1836 deps = [ | 1841 deps = [ |
1837 ":base", | 1842 ":base", |
1838 "//base/win:base_win_features", | 1843 "//base/win:base_win_features", |
1839 ] | 1844 ] |
1840 } | 1845 } |
| 1846 } |
1841 | 1847 |
| 1848 if (is_win || is_mac) { |
1842 if (current_cpu == "x64") { | 1849 if (current_cpu == "x64") { |
1843 # Must be a shared library so that it can be unloaded during testing. | 1850 # Must be a shared library so that it can be unloaded during testing. |
1844 shared_library("base_profiler_test_support_library") { | 1851 shared_library("base_profiler_test_support_library") { |
1845 sources = [ | 1852 sources = [ |
1846 "profiler/test_support_library.cc", | 1853 "profiler/test_support_library.cc", |
1847 ] | 1854 ] |
1848 deps = [ | 1855 deps = [ |
1849 "//build/config/sanitizers:deps", | 1856 "//build/config/sanitizers:deps", |
1850 ] | 1857 ] |
1851 } | 1858 } |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2293 | 2300 |
2294 if (use_partition_alloc) { | 2301 if (use_partition_alloc) { |
2295 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2302 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
2296 } | 2303 } |
2297 | 2304 |
2298 if (is_mac) { | 2305 if (is_mac) { |
2299 libs = [ | 2306 libs = [ |
2300 "CoreFoundation.framework", | 2307 "CoreFoundation.framework", |
2301 "Foundation.framework", | 2308 "Foundation.framework", |
2302 ] | 2309 ] |
| 2310 if (current_cpu == "x64") { |
| 2311 data_deps += [ ":base_profiler_test_support_library" ] |
| 2312 } |
2303 } | 2313 } |
2304 | 2314 |
2305 if (is_linux) { | 2315 if (is_linux) { |
2306 if (is_desktop_linux) { | 2316 if (is_desktop_linux) { |
2307 sources += [ "nix/xdg_util_unittest.cc" ] | 2317 sources += [ "nix/xdg_util_unittest.cc" ] |
2308 } | 2318 } |
2309 | 2319 |
2310 deps += [ "//base/test:malloc_wrapper" ] | 2320 deps += [ "//base/test:malloc_wrapper" ] |
2311 | 2321 |
2312 if (!is_component_build) { | 2322 if (!is_component_build) { |
(...skipping 18 matching lines...) Expand all Loading... |
2331 "debug/proc_maps_linux_unittest.cc", | 2341 "debug/proc_maps_linux_unittest.cc", |
2332 "trace_event/trace_event_android_unittest.cc", | 2342 "trace_event/trace_event_android_unittest.cc", |
2333 ] | 2343 ] |
2334 set_sources_assignment_filter(sources_assignment_filter) | 2344 set_sources_assignment_filter(sources_assignment_filter) |
2335 } | 2345 } |
2336 | 2346 |
2337 if (is_win) { | 2347 if (is_win) { |
2338 deps += [ "//base:scoped_handle_test_dll" ] | 2348 deps += [ "//base:scoped_handle_test_dll" ] |
2339 if (current_cpu == "x64") { | 2349 if (current_cpu == "x64") { |
2340 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2350 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
2341 deps += [ ":base_profiler_test_support_library" ] | 2351 data_deps += [ ":base_profiler_test_support_library" ] |
2342 } | 2352 } |
2343 } | 2353 } |
2344 | 2354 |
2345 if (use_experimental_allocator_shim) { | 2355 if (use_experimental_allocator_shim) { |
2346 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2356 sources += [ "allocator/allocator_shim_unittest.cc" ] |
2347 } | 2357 } |
2348 | 2358 |
2349 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2359 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
2350 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2360 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
2351 | 2361 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2685 } | 2695 } |
2686 | 2696 |
2687 fuzzer_test("base_json_correctness_fuzzer") { | 2697 fuzzer_test("base_json_correctness_fuzzer") { |
2688 sources = [ | 2698 sources = [ |
2689 "json/correctness_fuzzer.cc", | 2699 "json/correctness_fuzzer.cc", |
2690 ] | 2700 ] |
2691 deps = [ | 2701 deps = [ |
2692 ":base", | 2702 ":base", |
2693 ] | 2703 ] |
2694 } | 2704 } |
OLD | NEW |