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

Side by Side Diff: base/BUILD.gn

Issue 2702463003: NativeStackSampler implementation for Mac. (Closed)
Patch Set: fix config Created 3 years, 9 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1822 1827
1823 loadable_module("scoped_handle_test_dll") { 1828 loadable_module("scoped_handle_test_dll") {
1824 sources = [ 1829 sources = [
1825 "win/scoped_handle_test_dll.cc", 1830 "win/scoped_handle_test_dll.cc",
1826 ] 1831 ]
1827 deps = [ 1832 deps = [
1828 ":base", 1833 ":base",
1829 "//base/win:base_win_features", 1834 "//base/win:base_win_features",
1830 ] 1835 ]
1831 } 1836 }
1837 }
1832 1838
1839 if (is_win || is_mac) {
1833 if (current_cpu == "x64") { 1840 if (current_cpu == "x64") {
1834 # Must be a shared library so that it can be unloaded during testing. 1841 # Must be a shared library so that it can be unloaded during testing.
1835 shared_library("base_profiler_test_support_library") { 1842 shared_library("base_profiler_test_support_library") {
1836 sources = [ 1843 sources = [
1837 "profiler/test_support_library.cc", 1844 "profiler/test_support_library.cc",
1838 ] 1845 ]
1839 deps = [ 1846 deps = [
1840 "//build/config/sanitizers:deps", 1847 "//build/config/sanitizers:deps",
1841 ] 1848 ]
1842 } 1849 }
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
2278 2285
2279 if (use_partition_alloc) { 2286 if (use_partition_alloc) {
2280 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] 2287 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ]
2281 } 2288 }
2282 2289
2283 if (is_mac) { 2290 if (is_mac) {
2284 libs = [ 2291 libs = [
2285 "CoreFoundation.framework", 2292 "CoreFoundation.framework",
2286 "Foundation.framework", 2293 "Foundation.framework",
2287 ] 2294 ]
2295 if (current_cpu == "x64") {
2296 data_deps += [ ":base_profiler_test_support_library" ]
2297 }
2288 } 2298 }
2289 2299
2290 if (is_linux) { 2300 if (is_linux) {
2291 if (is_desktop_linux) { 2301 if (is_desktop_linux) {
2292 sources += [ "nix/xdg_util_unittest.cc" ] 2302 sources += [ "nix/xdg_util_unittest.cc" ]
2293 } 2303 }
2294 2304
2295 deps += [ "//base/test:malloc_wrapper" ] 2305 deps += [ "//base/test:malloc_wrapper" ]
2296 2306
2297 if (!is_component_build) { 2307 if (!is_component_build) {
(...skipping 18 matching lines...) Expand all
2316 "debug/proc_maps_linux_unittest.cc", 2326 "debug/proc_maps_linux_unittest.cc",
2317 "trace_event/trace_event_android_unittest.cc", 2327 "trace_event/trace_event_android_unittest.cc",
2318 ] 2328 ]
2319 set_sources_assignment_filter(sources_assignment_filter) 2329 set_sources_assignment_filter(sources_assignment_filter)
2320 } 2330 }
2321 2331
2322 if (is_win) { 2332 if (is_win) {
2323 deps += [ "//base:scoped_handle_test_dll" ] 2333 deps += [ "//base:scoped_handle_test_dll" ]
2324 if (current_cpu == "x64") { 2334 if (current_cpu == "x64") {
2325 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] 2335 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ]
2326 deps += [ ":base_profiler_test_support_library" ] 2336 data_deps += [ ":base_profiler_test_support_library" ]
2327 } 2337 }
2328 } 2338 }
2329 2339
2330 if (use_experimental_allocator_shim) { 2340 if (use_experimental_allocator_shim) {
2331 sources += [ "allocator/allocator_shim_unittest.cc" ] 2341 sources += [ "allocator/allocator_shim_unittest.cc" ]
2332 } 2342 }
2333 2343
2334 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 2344 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2335 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 2345 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
2336 2346
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 } 2677 }
2668 2678
2669 fuzzer_test("base_json_correctness_fuzzer") { 2679 fuzzer_test("base_json_correctness_fuzzer") {
2670 sources = [ 2680 sources = [
2671 "json/correctness_fuzzer.cc", 2681 "json/correctness_fuzzer.cc",
2672 ] 2682 ]
2673 deps = [ 2683 deps = [
2674 ":base", 2684 ":base",
2675 ] 2685 ]
2676 } 2686 }
OLDNEW
« no previous file with comments | « no previous file | base/profiler/native_stack_sampler_mac.cc » ('j') | chrome/common/stack_sampling_configuration.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698