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