| 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 "process/process_metrics_linux.cc", | 686 "process/process_metrics_linux.cc", |
| 687 "process/process_metrics_mac.cc", | 687 "process/process_metrics_mac.cc", |
| 688 | 688 |
| 689 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. | 689 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. |
| 690 "process/process_metrics_posix.cc", | 690 "process/process_metrics_posix.cc", |
| 691 "process/process_metrics_win.cc", | 691 "process/process_metrics_win.cc", |
| 692 "process/process_posix.cc", | 692 "process/process_posix.cc", |
| 693 "process/process_win.cc", | 693 "process/process_win.cc", |
| 694 "profiler/native_stack_sampler.cc", | 694 "profiler/native_stack_sampler.cc", |
| 695 "profiler/native_stack_sampler.h", | 695 "profiler/native_stack_sampler.h", |
| 696 "profiler/native_stack_sampler_mac.cc", |
| 696 "profiler/native_stack_sampler_posix.cc", | 697 "profiler/native_stack_sampler_posix.cc", |
| 697 "profiler/native_stack_sampler_win.cc", | 698 "profiler/native_stack_sampler_win.cc", |
| 698 "profiler/scoped_profile.cc", | 699 "profiler/scoped_profile.cc", |
| 699 "profiler/scoped_profile.h", | 700 "profiler/scoped_profile.h", |
| 700 "profiler/scoped_tracker.cc", | 701 "profiler/scoped_tracker.cc", |
| 701 "profiler/scoped_tracker.h", | 702 "profiler/scoped_tracker.h", |
| 702 "profiler/stack_sampling_profiler.cc", | 703 "profiler/stack_sampling_profiler.cc", |
| 703 "profiler/stack_sampling_profiler.h", | 704 "profiler/stack_sampling_profiler.h", |
| 704 "profiler/tracked_time.cc", | 705 "profiler/tracked_time.cc", |
| 705 "profiler/tracked_time.h", | 706 "profiler/tracked_time.h", |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 } | 1458 } |
| 1458 | 1459 |
| 1459 # Mac or iOS. | 1460 # Mac or iOS. |
| 1460 if (is_mac || is_ios) { | 1461 if (is_mac || is_ios) { |
| 1461 sources -= [ | 1462 sources -= [ |
| 1462 "memory/shared_memory_posix.cc", | 1463 "memory/shared_memory_posix.cc", |
| 1463 "native_library_posix.cc", | 1464 "native_library_posix.cc", |
| 1464 "strings/sys_string_conversions_posix.cc", | 1465 "strings/sys_string_conversions_posix.cc", |
| 1465 "threading/platform_thread_internal_posix.cc", | 1466 "threading/platform_thread_internal_posix.cc", |
| 1466 ] | 1467 ] |
| 1468 |
| 1469 if (is_mac) { |
| 1470 sources -= [ "profiler/native_stack_sampler_posix.cc" ] |
| 1471 } |
| 1467 } else { | 1472 } else { |
| 1468 # Non-Mac/ios. | 1473 # Non-Mac/ios. |
| 1469 sources -= [ | 1474 sources -= [ |
| 1470 "files/file_path_watcher_fsevents.cc", | 1475 "files/file_path_watcher_fsevents.cc", |
| 1471 "files/file_path_watcher_fsevents.h", | 1476 "files/file_path_watcher_fsevents.h", |
| 1472 "files/file_path_watcher_kqueue.cc", | 1477 "files/file_path_watcher_kqueue.cc", |
| 1473 "files/file_path_watcher_kqueue.h", | 1478 "files/file_path_watcher_kqueue.h", |
| 1474 ] | 1479 ] |
| 1475 } | 1480 } |
| 1476 | 1481 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1828 | 1833 |
| 1829 loadable_module("scoped_handle_test_dll") { | 1834 loadable_module("scoped_handle_test_dll") { |
| 1830 sources = [ | 1835 sources = [ |
| 1831 "win/scoped_handle_test_dll.cc", | 1836 "win/scoped_handle_test_dll.cc", |
| 1832 ] | 1837 ] |
| 1833 deps = [ | 1838 deps = [ |
| 1834 ":base", | 1839 ":base", |
| 1835 "//base/win:base_win_features", | 1840 "//base/win:base_win_features", |
| 1836 ] | 1841 ] |
| 1837 } | 1842 } |
| 1843 } |
| 1838 | 1844 |
| 1845 if (is_win || is_mac) { |
| 1839 if (current_cpu == "x64") { | 1846 if (current_cpu == "x64") { |
| 1840 # Must be a shared library so that it can be unloaded during testing. | 1847 # Must be a shared library so that it can be unloaded during testing. |
| 1841 shared_library("base_profiler_test_support_library") { | 1848 shared_library("base_profiler_test_support_library") { |
| 1842 sources = [ | 1849 sources = [ |
| 1843 "profiler/test_support_library.cc", | 1850 "profiler/test_support_library.cc", |
| 1844 ] | 1851 ] |
| 1845 deps = [ | 1852 deps = [ |
| 1846 "//build/config/sanitizers:deps", | 1853 "//build/config/sanitizers:deps", |
| 1847 ] | 1854 ] |
| 1848 } | 1855 } |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2291 | 2298 |
| 2292 if (use_partition_alloc) { | 2299 if (use_partition_alloc) { |
| 2293 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2300 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
| 2294 } | 2301 } |
| 2295 | 2302 |
| 2296 if (is_mac) { | 2303 if (is_mac) { |
| 2297 libs = [ | 2304 libs = [ |
| 2298 "CoreFoundation.framework", | 2305 "CoreFoundation.framework", |
| 2299 "Foundation.framework", | 2306 "Foundation.framework", |
| 2300 ] | 2307 ] |
| 2308 if (current_cpu == "x64") { |
| 2309 data_deps += [ ":base_profiler_test_support_library" ] |
| 2310 } |
| 2301 } | 2311 } |
| 2302 | 2312 |
| 2303 if (is_linux) { | 2313 if (is_linux) { |
| 2304 if (is_desktop_linux) { | 2314 if (is_desktop_linux) { |
| 2305 sources += [ "nix/xdg_util_unittest.cc" ] | 2315 sources += [ "nix/xdg_util_unittest.cc" ] |
| 2306 } | 2316 } |
| 2307 | 2317 |
| 2308 deps += [ "//base/test:malloc_wrapper" ] | 2318 deps += [ "//base/test:malloc_wrapper" ] |
| 2309 | 2319 |
| 2310 if (!is_component_build) { | 2320 if (!is_component_build) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2329 "debug/proc_maps_linux_unittest.cc", | 2339 "debug/proc_maps_linux_unittest.cc", |
| 2330 "trace_event/trace_event_android_unittest.cc", | 2340 "trace_event/trace_event_android_unittest.cc", |
| 2331 ] | 2341 ] |
| 2332 set_sources_assignment_filter(sources_assignment_filter) | 2342 set_sources_assignment_filter(sources_assignment_filter) |
| 2333 } | 2343 } |
| 2334 | 2344 |
| 2335 if (is_win) { | 2345 if (is_win) { |
| 2336 deps += [ "//base:scoped_handle_test_dll" ] | 2346 deps += [ "//base:scoped_handle_test_dll" ] |
| 2337 if (current_cpu == "x64") { | 2347 if (current_cpu == "x64") { |
| 2338 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2348 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
| 2339 deps += [ ":base_profiler_test_support_library" ] | 2349 data_deps += [ ":base_profiler_test_support_library" ] |
| 2340 } | 2350 } |
| 2341 } | 2351 } |
| 2342 | 2352 |
| 2343 if (use_experimental_allocator_shim) { | 2353 if (use_experimental_allocator_shim) { |
| 2344 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2354 sources += [ "allocator/allocator_shim_unittest.cc" ] |
| 2345 } | 2355 } |
| 2346 | 2356 |
| 2347 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2357 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 2348 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2358 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 2349 | 2359 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2699 } | 2709 } |
| 2700 | 2710 |
| 2701 fuzzer_test("base_json_correctness_fuzzer") { | 2711 fuzzer_test("base_json_correctness_fuzzer") { |
| 2702 sources = [ | 2712 sources = [ |
| 2703 "json/correctness_fuzzer.cc", | 2713 "json/correctness_fuzzer.cc", |
| 2704 ] | 2714 ] |
| 2705 deps = [ | 2715 deps = [ |
| 2706 ":base", | 2716 ":base", |
| 2707 ] | 2717 ] |
| 2708 } | 2718 } |
| OLD | NEW |