| 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2271 | 2278 |
| 2272 if (use_partition_alloc) { | 2279 if (use_partition_alloc) { |
| 2273 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2280 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
| 2274 } | 2281 } |
| 2275 | 2282 |
| 2276 if (is_mac) { | 2283 if (is_mac) { |
| 2277 libs = [ | 2284 libs = [ |
| 2278 "CoreFoundation.framework", | 2285 "CoreFoundation.framework", |
| 2279 "Foundation.framework", | 2286 "Foundation.framework", |
| 2280 ] | 2287 ] |
| 2288 if (current_cpu == "x64") { |
| 2289 data_deps += [ ":base_profiler_test_support_library" ] |
| 2290 } |
| 2281 } | 2291 } |
| 2282 | 2292 |
| 2283 if (is_linux) { | 2293 if (is_linux) { |
| 2284 if (is_desktop_linux) { | 2294 if (is_desktop_linux) { |
| 2285 sources += [ "nix/xdg_util_unittest.cc" ] | 2295 sources += [ "nix/xdg_util_unittest.cc" ] |
| 2286 } | 2296 } |
| 2287 | 2297 |
| 2288 deps += [ "//base/test:malloc_wrapper" ] | 2298 deps += [ "//base/test:malloc_wrapper" ] |
| 2289 | 2299 |
| 2290 if (!is_component_build) { | 2300 if (!is_component_build) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2309 "debug/proc_maps_linux_unittest.cc", | 2319 "debug/proc_maps_linux_unittest.cc", |
| 2310 "trace_event/trace_event_android_unittest.cc", | 2320 "trace_event/trace_event_android_unittest.cc", |
| 2311 ] | 2321 ] |
| 2312 set_sources_assignment_filter(sources_assignment_filter) | 2322 set_sources_assignment_filter(sources_assignment_filter) |
| 2313 } | 2323 } |
| 2314 | 2324 |
| 2315 if (is_win) { | 2325 if (is_win) { |
| 2316 deps += [ "//base:scoped_handle_test_dll" ] | 2326 deps += [ "//base:scoped_handle_test_dll" ] |
| 2317 if (current_cpu == "x64") { | 2327 if (current_cpu == "x64") { |
| 2318 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2328 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
| 2319 deps += [ ":base_profiler_test_support_library" ] | 2329 data_deps += [ ":base_profiler_test_support_library" ] |
| 2320 } | 2330 } |
| 2321 } | 2331 } |
| 2322 | 2332 |
| 2323 if (use_experimental_allocator_shim) { | 2333 if (use_experimental_allocator_shim) { |
| 2324 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2334 sources += [ "allocator/allocator_shim_unittest.cc" ] |
| 2325 } | 2335 } |
| 2326 | 2336 |
| 2327 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2337 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 2328 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2338 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 2329 | 2339 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2658 } | 2668 } |
| 2659 | 2669 |
| 2660 fuzzer_test("base_json_correctness_fuzzer") { | 2670 fuzzer_test("base_json_correctness_fuzzer") { |
| 2661 sources = [ | 2671 sources = [ |
| 2662 "json/correctness_fuzzer.cc", | 2672 "json/correctness_fuzzer.cc", |
| 2663 ] | 2673 ] |
| 2664 deps = [ | 2674 deps = [ |
| 2665 ":base", | 2675 ":base", |
| 2666 ] | 2676 ] |
| 2667 } | 2677 } |
| OLD | NEW |