| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 "process/process_metrics_linux.cc", | 714 "process/process_metrics_linux.cc", |
| 715 "process/process_metrics_mac.cc", | 715 "process/process_metrics_mac.cc", |
| 716 | 716 |
| 717 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. | 717 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. |
| 718 "process/process_metrics_posix.cc", | 718 "process/process_metrics_posix.cc", |
| 719 "process/process_metrics_win.cc", | 719 "process/process_metrics_win.cc", |
| 720 "process/process_posix.cc", | 720 "process/process_posix.cc", |
| 721 "process/process_win.cc", | 721 "process/process_win.cc", |
| 722 "profiler/native_stack_sampler.cc", | 722 "profiler/native_stack_sampler.cc", |
| 723 "profiler/native_stack_sampler.h", | 723 "profiler/native_stack_sampler.h", |
| 724 "profiler/native_stack_sampler_mac.cc", |
| 724 "profiler/native_stack_sampler_posix.cc", | 725 "profiler/native_stack_sampler_posix.cc", |
| 725 "profiler/native_stack_sampler_win.cc", | 726 "profiler/native_stack_sampler_win.cc", |
| 726 "profiler/scoped_profile.cc", | 727 "profiler/scoped_profile.cc", |
| 727 "profiler/scoped_profile.h", | 728 "profiler/scoped_profile.h", |
| 728 "profiler/scoped_tracker.cc", | 729 "profiler/scoped_tracker.cc", |
| 729 "profiler/scoped_tracker.h", | 730 "profiler/scoped_tracker.h", |
| 730 "profiler/stack_sampling_profiler.cc", | 731 "profiler/stack_sampling_profiler.cc", |
| 731 "profiler/stack_sampling_profiler.h", | 732 "profiler/stack_sampling_profiler.h", |
| 732 "profiler/tracked_time.cc", | 733 "profiler/tracked_time.cc", |
| 733 "profiler/tracked_time.h", | 734 "profiler/tracked_time.h", |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 } | 1457 } |
| 1457 | 1458 |
| 1458 # Mac or iOS. | 1459 # Mac or iOS. |
| 1459 if (is_mac || is_ios) { | 1460 if (is_mac || is_ios) { |
| 1460 sources -= [ | 1461 sources -= [ |
| 1461 "memory/shared_memory_posix.cc", | 1462 "memory/shared_memory_posix.cc", |
| 1462 "native_library_posix.cc", | 1463 "native_library_posix.cc", |
| 1463 "strings/sys_string_conversions_posix.cc", | 1464 "strings/sys_string_conversions_posix.cc", |
| 1464 "threading/platform_thread_internal_posix.cc", | 1465 "threading/platform_thread_internal_posix.cc", |
| 1465 ] | 1466 ] |
| 1467 |
| 1468 if (is_mac) { |
| 1469 sources -= [ "profiler/native_stack_sampler_posix.cc" ] |
| 1470 } |
| 1466 } else { | 1471 } else { |
| 1467 # Non-Mac/ios. | 1472 # Non-Mac/ios. |
| 1468 sources -= [ | 1473 sources -= [ |
| 1469 "files/file_path_watcher_fsevents.cc", | 1474 "files/file_path_watcher_fsevents.cc", |
| 1470 "files/file_path_watcher_fsevents.h", | 1475 "files/file_path_watcher_fsevents.h", |
| 1471 "files/file_path_watcher_kqueue.cc", | 1476 "files/file_path_watcher_kqueue.cc", |
| 1472 "files/file_path_watcher_kqueue.h", | 1477 "files/file_path_watcher_kqueue.h", |
| 1473 ] | 1478 ] |
| 1474 } | 1479 } |
| 1475 | 1480 |
| (...skipping 352 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2289 | 2296 |
| 2290 if (use_partition_alloc) { | 2297 if (use_partition_alloc) { |
| 2291 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2298 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
| 2292 } | 2299 } |
| 2293 | 2300 |
| 2294 if (is_mac) { | 2301 if (is_mac) { |
| 2295 libs = [ | 2302 libs = [ |
| 2296 "CoreFoundation.framework", | 2303 "CoreFoundation.framework", |
| 2297 "Foundation.framework", | 2304 "Foundation.framework", |
| 2298 ] | 2305 ] |
| 2306 if (current_cpu == "x64") { |
| 2307 data_deps += [ ":base_profiler_test_support_library" ] |
| 2308 } |
| 2299 } | 2309 } |
| 2300 | 2310 |
| 2301 if (is_linux) { | 2311 if (is_linux) { |
| 2302 if (is_desktop_linux) { | 2312 if (is_desktop_linux) { |
| 2303 sources += [ "nix/xdg_util_unittest.cc" ] | 2313 sources += [ "nix/xdg_util_unittest.cc" ] |
| 2304 } | 2314 } |
| 2305 | 2315 |
| 2306 deps += [ "//base/test:malloc_wrapper" ] | 2316 deps += [ "//base/test:malloc_wrapper" ] |
| 2307 | 2317 |
| 2308 if (!is_component_build) { | 2318 if (!is_component_build) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2327 "debug/proc_maps_linux_unittest.cc", | 2337 "debug/proc_maps_linux_unittest.cc", |
| 2328 "trace_event/trace_event_android_unittest.cc", | 2338 "trace_event/trace_event_android_unittest.cc", |
| 2329 ] | 2339 ] |
| 2330 set_sources_assignment_filter(sources_assignment_filter) | 2340 set_sources_assignment_filter(sources_assignment_filter) |
| 2331 } | 2341 } |
| 2332 | 2342 |
| 2333 if (is_win) { | 2343 if (is_win) { |
| 2334 deps += [ "//base:scoped_handle_test_dll" ] | 2344 deps += [ "//base:scoped_handle_test_dll" ] |
| 2335 if (current_cpu == "x64") { | 2345 if (current_cpu == "x64") { |
| 2336 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2346 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
| 2337 deps += [ ":base_profiler_test_support_library" ] | 2347 data_deps += [ ":base_profiler_test_support_library" ] |
| 2338 } | 2348 } |
| 2339 } | 2349 } |
| 2340 | 2350 |
| 2341 if (use_experimental_allocator_shim) { | 2351 if (use_experimental_allocator_shim) { |
| 2342 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2352 sources += [ "allocator/allocator_shim_unittest.cc" ] |
| 2343 } | 2353 } |
| 2344 | 2354 |
| 2345 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2355 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 2346 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2356 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 2347 | 2357 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2680 } | 2690 } |
| 2681 | 2691 |
| 2682 fuzzer_test("base_json_correctness_fuzzer") { | 2692 fuzzer_test("base_json_correctness_fuzzer") { |
| 2683 sources = [ | 2693 sources = [ |
| 2684 "json/correctness_fuzzer.cc", | 2694 "json/correctness_fuzzer.cc", |
| 2685 ] | 2695 ] |
| 2686 deps = [ | 2696 deps = [ |
| 2687 ":base", | 2697 ":base", |
| 2688 ] | 2698 ] |
| 2689 } | 2699 } |
| OLD | NEW |