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