Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: base/BUILD.gn

Issue 2848683006: Implement the NativeStackSampler for the Mac. (Closed)
Patch Set: min to fix test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1462 } 1463 }
1463 1464
1464 # Mac or iOS. 1465 # Mac or iOS.
1465 if (is_mac || is_ios) { 1466 if (is_mac || is_ios) {
1466 sources -= [ 1467 sources -= [
1467 "memory/shared_memory_posix.cc", 1468 "memory/shared_memory_posix.cc",
1468 "native_library_posix.cc", 1469 "native_library_posix.cc",
1469 "strings/sys_string_conversions_posix.cc", 1470 "strings/sys_string_conversions_posix.cc",
1470 "threading/platform_thread_internal_posix.cc", 1471 "threading/platform_thread_internal_posix.cc",
1471 ] 1472 ]
1473
1474 if (is_mac) {
1475 sources -= [ "profiler/native_stack_sampler_posix.cc" ]
1476 }
1472 } else { 1477 } else {
1473 # Non-Mac/ios. 1478 # Non-Mac/ios.
1474 sources -= [ 1479 sources -= [
1475 "files/file_path_watcher_fsevents.cc", 1480 "files/file_path_watcher_fsevents.cc",
1476 "files/file_path_watcher_fsevents.h", 1481 "files/file_path_watcher_fsevents.h",
1477 "files/file_path_watcher_kqueue.cc", 1482 "files/file_path_watcher_kqueue.cc",
1478 "files/file_path_watcher_kqueue.h", 1483 "files/file_path_watcher_kqueue.h",
1479 ] 1484 ]
1480 } 1485 }
1481 1486
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 1838
1834 loadable_module("scoped_handle_test_dll") { 1839 loadable_module("scoped_handle_test_dll") {
1835 sources = [ 1840 sources = [
1836 "win/scoped_handle_test_dll.cc", 1841 "win/scoped_handle_test_dll.cc",
1837 ] 1842 ]
1838 deps = [ 1843 deps = [
1839 ":base", 1844 ":base",
1840 "//base/win:base_win_features", 1845 "//base/win:base_win_features",
1841 ] 1846 ]
1842 } 1847 }
1848 }
1843 1849
1850 if (is_win || is_mac) {
1844 if (current_cpu == "x64") { 1851 if (current_cpu == "x64") {
1845 # Must be a shared library so that it can be unloaded during testing. 1852 # Must be a shared library so that it can be unloaded during testing.
1846 shared_library("base_profiler_test_support_library") { 1853 shared_library("base_profiler_test_support_library") {
1847 sources = [ 1854 sources = [
1848 "profiler/test_support_library.cc", 1855 "profiler/test_support_library.cc",
1849 ] 1856 ]
1850 deps = [ 1857 deps = [
1851 "//build/config/sanitizers:deps", 1858 "//build/config/sanitizers:deps",
1852 ] 1859 ]
1853 } 1860 }
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 2304
2298 if (use_partition_alloc) { 2305 if (use_partition_alloc) {
2299 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] 2306 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ]
2300 } 2307 }
2301 2308
2302 if (is_mac) { 2309 if (is_mac) {
2303 libs = [ 2310 libs = [
2304 "CoreFoundation.framework", 2311 "CoreFoundation.framework",
2305 "Foundation.framework", 2312 "Foundation.framework",
2306 ] 2313 ]
2314 if (current_cpu == "x64") {
2315 data_deps += [ ":base_profiler_test_support_library" ]
2316 }
2307 } 2317 }
2308 2318
2309 if (is_linux) { 2319 if (is_linux) {
2310 if (is_desktop_linux) { 2320 if (is_desktop_linux) {
2311 sources += [ "nix/xdg_util_unittest.cc" ] 2321 sources += [ "nix/xdg_util_unittest.cc" ]
2312 } 2322 }
2313 2323
2314 deps += [ "//base/test:malloc_wrapper" ] 2324 deps += [ "//base/test:malloc_wrapper" ]
2315 2325
2316 if (!is_component_build) { 2326 if (!is_component_build) {
(...skipping 18 matching lines...) Expand all
2335 "debug/proc_maps_linux_unittest.cc", 2345 "debug/proc_maps_linux_unittest.cc",
2336 "trace_event/trace_event_android_unittest.cc", 2346 "trace_event/trace_event_android_unittest.cc",
2337 ] 2347 ]
2338 set_sources_assignment_filter(sources_assignment_filter) 2348 set_sources_assignment_filter(sources_assignment_filter)
2339 } 2349 }
2340 2350
2341 if (is_win) { 2351 if (is_win) {
2342 deps += [ "//base:scoped_handle_test_dll" ] 2352 deps += [ "//base:scoped_handle_test_dll" ]
2343 if (current_cpu == "x64") { 2353 if (current_cpu == "x64") {
2344 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] 2354 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ]
2345 deps += [ ":base_profiler_test_support_library" ] 2355 data_deps += [ ":base_profiler_test_support_library" ]
2346 } 2356 }
2347 } 2357 }
2348 2358
2349 if (use_experimental_allocator_shim) { 2359 if (use_experimental_allocator_shim) {
2350 sources += [ "allocator/allocator_shim_unittest.cc" ] 2360 sources += [ "allocator/allocator_shim_unittest.cc" ]
2351 } 2361 }
2352 2362
2353 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 2363 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2354 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 2364 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
2355 2365
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 } 2717 }
2708 2718
2709 fuzzer_test("base_json_correctness_fuzzer") { 2719 fuzzer_test("base_json_correctness_fuzzer") {
2710 sources = [ 2720 sources = [
2711 "json/correctness_fuzzer.cc", 2721 "json/correctness_fuzzer.cc",
2712 ] 2722 ]
2713 deps = [ 2723 deps = [
2714 ":base", 2724 ":base",
2715 ] 2725 ]
2716 } 2726 }
OLDNEW
« no previous file with comments | « no previous file | base/profiler/native_stack_sampler_mac.cc » ('j') | base/profiler/native_stack_sampler_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698