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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
705 "process/process_metrics_linux.cc", | 705 "process/process_metrics_linux.cc", |
706 "process/process_metrics_mac.cc", | 706 "process/process_metrics_mac.cc", |
707 | 707 |
708 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. | 708 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. |
709 "process/process_metrics_posix.cc", | 709 "process/process_metrics_posix.cc", |
710 "process/process_metrics_win.cc", | 710 "process/process_metrics_win.cc", |
711 "process/process_posix.cc", | 711 "process/process_posix.cc", |
712 "process/process_win.cc", | 712 "process/process_win.cc", |
713 "profiler/native_stack_sampler.cc", | 713 "profiler/native_stack_sampler.cc", |
714 "profiler/native_stack_sampler.h", | 714 "profiler/native_stack_sampler.h", |
715 "profiler/native_stack_sampler_mac.cc", | |
715 "profiler/native_stack_sampler_posix.cc", | 716 "profiler/native_stack_sampler_posix.cc", |
716 "profiler/native_stack_sampler_win.cc", | 717 "profiler/native_stack_sampler_win.cc", |
717 "profiler/scoped_profile.cc", | 718 "profiler/scoped_profile.cc", |
718 "profiler/scoped_profile.h", | 719 "profiler/scoped_profile.h", |
719 "profiler/scoped_tracker.cc", | 720 "profiler/scoped_tracker.cc", |
720 "profiler/scoped_tracker.h", | 721 "profiler/scoped_tracker.h", |
721 "profiler/stack_sampling_profiler.cc", | 722 "profiler/stack_sampling_profiler.cc", |
722 "profiler/stack_sampling_profiler.h", | 723 "profiler/stack_sampling_profiler.h", |
723 "profiler/tracked_time.cc", | 724 "profiler/tracked_time.cc", |
724 "profiler/tracked_time.h", | 725 "profiler/tracked_time.h", |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1444 } | 1445 } |
1445 | 1446 |
1446 # Mac or iOS. | 1447 # Mac or iOS. |
1447 if (is_mac || is_ios) { | 1448 if (is_mac || is_ios) { |
1448 sources -= [ | 1449 sources -= [ |
1449 "memory/shared_memory_posix.cc", | 1450 "memory/shared_memory_posix.cc", |
1450 "native_library_posix.cc", | 1451 "native_library_posix.cc", |
1451 "strings/sys_string_conversions_posix.cc", | 1452 "strings/sys_string_conversions_posix.cc", |
1452 "threading/platform_thread_internal_posix.cc", | 1453 "threading/platform_thread_internal_posix.cc", |
1453 ] | 1454 ] |
1455 | |
1456 if (is_mac) { | |
1457 sources -= [ "profiler/native_stack_sampler_posix.cc" ] | |
1458 } | |
1454 } else { | 1459 } else { |
1455 # Non-Mac/ios. | 1460 # Non-Mac/ios. |
1456 sources -= [ | 1461 sources -= [ |
1457 "files/file_path_watcher_fsevents.cc", | 1462 "files/file_path_watcher_fsevents.cc", |
1458 "files/file_path_watcher_fsevents.h", | 1463 "files/file_path_watcher_fsevents.h", |
1459 "files/file_path_watcher_kqueue.cc", | 1464 "files/file_path_watcher_kqueue.cc", |
1460 "files/file_path_watcher_kqueue.h", | 1465 "files/file_path_watcher_kqueue.h", |
1461 ] | 1466 ] |
1462 } | 1467 } |
1463 | 1468 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1808 | 1813 |
1809 loadable_module("scoped_handle_test_dll") { | 1814 loadable_module("scoped_handle_test_dll") { |
1810 sources = [ | 1815 sources = [ |
1811 "win/scoped_handle_test_dll.cc", | 1816 "win/scoped_handle_test_dll.cc", |
1812 ] | 1817 ] |
1813 deps = [ | 1818 deps = [ |
1814 ":base", | 1819 ":base", |
1815 "//base/win:base_win_features", | 1820 "//base/win:base_win_features", |
1816 ] | 1821 ] |
1817 } | 1822 } |
1823 } | |
1818 | 1824 |
1825 if (is_win || is_mac) { | |
1819 if (current_cpu == "x64") { | 1826 if (current_cpu == "x64") { |
1820 # Must be a shared library so that it can be unloaded during testing. | 1827 # Must be a shared library so that it can be unloaded during testing. |
1821 shared_library("base_profiler_test_support_library") { | 1828 shared_library("base_profiler_test_support_library") { |
Mark Mentovai
2017/02/17 05:21:05
I believe you want this to be a loadable_module an
Avi (use Gerrit)
2017/02/17 17:18:12
Done.
Avi (use Gerrit)
2017/02/17 17:47:40
This results in an .so file, which isn't dynamical
| |
1822 sources = [ | 1829 sources = [ |
1823 "profiler/test_support_library.cc", | 1830 "profiler/test_support_library.cc", |
1824 ] | 1831 ] |
1825 deps = [ | 1832 deps = [ |
1826 "//build/config/sanitizers:deps", | 1833 "//build/config/sanitizers:deps", |
1827 ] | 1834 ] |
1828 } | 1835 } |
1829 } | 1836 } |
1830 } | 1837 } |
1831 | 1838 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2259 | 2266 |
2260 if (use_partition_alloc) { | 2267 if (use_partition_alloc) { |
2261 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] | 2268 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] |
2262 } | 2269 } |
2263 | 2270 |
2264 if (is_mac) { | 2271 if (is_mac) { |
2265 libs = [ | 2272 libs = [ |
2266 "CoreFoundation.framework", | 2273 "CoreFoundation.framework", |
2267 "Foundation.framework", | 2274 "Foundation.framework", |
2268 ] | 2275 ] |
2276 if (current_cpu == "x64") { | |
2277 data_deps += [ ":base_profiler_test_support_library" ] | |
2278 } | |
2269 } | 2279 } |
2270 | 2280 |
2271 if (is_linux) { | 2281 if (is_linux) { |
2272 if (is_desktop_linux) { | 2282 if (is_desktop_linux) { |
2273 sources += [ "nix/xdg_util_unittest.cc" ] | 2283 sources += [ "nix/xdg_util_unittest.cc" ] |
2274 } | 2284 } |
2275 | 2285 |
2276 deps += [ "//base/test:malloc_wrapper" ] | 2286 deps += [ "//base/test:malloc_wrapper" ] |
2277 | 2287 |
2278 if (!is_component_build) { | 2288 if (!is_component_build) { |
(...skipping 18 matching lines...) Expand all Loading... | |
2297 "debug/proc_maps_linux_unittest.cc", | 2307 "debug/proc_maps_linux_unittest.cc", |
2298 "trace_event/trace_event_android_unittest.cc", | 2308 "trace_event/trace_event_android_unittest.cc", |
2299 ] | 2309 ] |
2300 set_sources_assignment_filter(sources_assignment_filter) | 2310 set_sources_assignment_filter(sources_assignment_filter) |
2301 } | 2311 } |
2302 | 2312 |
2303 if (is_win) { | 2313 if (is_win) { |
2304 deps += [ "//base:scoped_handle_test_dll" ] | 2314 deps += [ "//base:scoped_handle_test_dll" ] |
2305 if (current_cpu == "x64") { | 2315 if (current_cpu == "x64") { |
2306 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] | 2316 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] |
2307 deps += [ ":base_profiler_test_support_library" ] | 2317 data_deps += [ ":base_profiler_test_support_library" ] |
2308 } | 2318 } |
2309 } | 2319 } |
2310 | 2320 |
2311 if (use_experimental_allocator_shim) { | 2321 if (use_experimental_allocator_shim) { |
2312 sources += [ "allocator/allocator_shim_unittest.cc" ] | 2322 sources += [ "allocator/allocator_shim_unittest.cc" ] |
2313 } | 2323 } |
2314 | 2324 |
2315 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 2325 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
2316 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 2326 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
2317 | 2327 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2646 } | 2656 } |
2647 | 2657 |
2648 fuzzer_test("base_json_correctness_fuzzer") { | 2658 fuzzer_test("base_json_correctness_fuzzer") { |
2649 sources = [ | 2659 sources = [ |
2650 "json/correctness_fuzzer.cc", | 2660 "json/correctness_fuzzer.cc", |
2651 ] | 2661 ] |
2652 deps = [ | 2662 deps = [ |
2653 ":base", | 2663 ":base", |
2654 ] | 2664 ] |
2655 } | 2665 } |
OLD | NEW |