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

Side by Side Diff: base/BUILD.gn

Issue 2797513003: Revert of NativeStackSampler implementation for Mac. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | base/profiler/native_stack_sampler_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 "process/process_metrics_linux.cc", 715 "process/process_metrics_linux.cc",
716 "process/process_metrics_mac.cc", 716 "process/process_metrics_mac.cc",
717 717
718 #"process/process_metrics_openbsd.cc", # Unused in Chromium build. 718 #"process/process_metrics_openbsd.cc", # Unused in Chromium build.
719 "process/process_metrics_posix.cc", 719 "process/process_metrics_posix.cc",
720 "process/process_metrics_win.cc", 720 "process/process_metrics_win.cc",
721 "process/process_posix.cc", 721 "process/process_posix.cc",
722 "process/process_win.cc", 722 "process/process_win.cc",
723 "profiler/native_stack_sampler.cc", 723 "profiler/native_stack_sampler.cc",
724 "profiler/native_stack_sampler.h", 724 "profiler/native_stack_sampler.h",
725 "profiler/native_stack_sampler_mac.cc",
726 "profiler/native_stack_sampler_posix.cc", 725 "profiler/native_stack_sampler_posix.cc",
727 "profiler/native_stack_sampler_win.cc", 726 "profiler/native_stack_sampler_win.cc",
728 "profiler/scoped_profile.cc", 727 "profiler/scoped_profile.cc",
729 "profiler/scoped_profile.h", 728 "profiler/scoped_profile.h",
730 "profiler/scoped_tracker.cc", 729 "profiler/scoped_tracker.cc",
731 "profiler/scoped_tracker.h", 730 "profiler/scoped_tracker.h",
732 "profiler/stack_sampling_profiler.cc", 731 "profiler/stack_sampling_profiler.cc",
733 "profiler/stack_sampling_profiler.h", 732 "profiler/stack_sampling_profiler.h",
734 "profiler/tracked_time.cc", 733 "profiler/tracked_time.cc",
735 "profiler/tracked_time.h", 734 "profiler/tracked_time.h",
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 } 1459 }
1461 1460
1462 # Mac or iOS. 1461 # Mac or iOS.
1463 if (is_mac || is_ios) { 1462 if (is_mac || is_ios) {
1464 sources -= [ 1463 sources -= [
1465 "memory/shared_memory_posix.cc", 1464 "memory/shared_memory_posix.cc",
1466 "native_library_posix.cc", 1465 "native_library_posix.cc",
1467 "strings/sys_string_conversions_posix.cc", 1466 "strings/sys_string_conversions_posix.cc",
1468 "threading/platform_thread_internal_posix.cc", 1467 "threading/platform_thread_internal_posix.cc",
1469 ] 1468 ]
1470
1471 if (is_mac) {
1472 sources -= [ "profiler/native_stack_sampler_posix.cc" ]
1473 }
1474 } else { 1469 } else {
1475 # Non-Mac/ios. 1470 # Non-Mac/ios.
1476 sources -= [ 1471 sources -= [
1477 "files/file_path_watcher_fsevents.cc", 1472 "files/file_path_watcher_fsevents.cc",
1478 "files/file_path_watcher_fsevents.h", 1473 "files/file_path_watcher_fsevents.h",
1479 "files/file_path_watcher_kqueue.cc", 1474 "files/file_path_watcher_kqueue.cc",
1480 "files/file_path_watcher_kqueue.h", 1475 "files/file_path_watcher_kqueue.h",
1481 ] 1476 ]
1482 } 1477 }
1483 1478
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1836 1831
1837 loadable_module("scoped_handle_test_dll") { 1832 loadable_module("scoped_handle_test_dll") {
1838 sources = [ 1833 sources = [
1839 "win/scoped_handle_test_dll.cc", 1834 "win/scoped_handle_test_dll.cc",
1840 ] 1835 ]
1841 deps = [ 1836 deps = [
1842 ":base", 1837 ":base",
1843 "//base/win:base_win_features", 1838 "//base/win:base_win_features",
1844 ] 1839 ]
1845 } 1840 }
1846 }
1847 1841
1848 if (is_win || is_mac) {
1849 if (current_cpu == "x64") { 1842 if (current_cpu == "x64") {
1850 # Must be a shared library so that it can be unloaded during testing. 1843 # Must be a shared library so that it can be unloaded during testing.
1851 shared_library("base_profiler_test_support_library") { 1844 shared_library("base_profiler_test_support_library") {
1852 sources = [ 1845 sources = [
1853 "profiler/test_support_library.cc", 1846 "profiler/test_support_library.cc",
1854 ] 1847 ]
1855 deps = [ 1848 deps = [
1856 "//build/config/sanitizers:deps", 1849 "//build/config/sanitizers:deps",
1857 ] 1850 ]
1858 } 1851 }
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 2293
2301 if (use_partition_alloc) { 2294 if (use_partition_alloc) {
2302 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ] 2295 sources += [ "allocator/partition_allocator/partition_alloc_unittest.cc" ]
2303 } 2296 }
2304 2297
2305 if (is_mac) { 2298 if (is_mac) {
2306 libs = [ 2299 libs = [
2307 "CoreFoundation.framework", 2300 "CoreFoundation.framework",
2308 "Foundation.framework", 2301 "Foundation.framework",
2309 ] 2302 ]
2310 if (current_cpu == "x64") {
2311 data_deps += [ ":base_profiler_test_support_library" ]
2312 }
2313 } 2303 }
2314 2304
2315 if (is_linux) { 2305 if (is_linux) {
2316 if (is_desktop_linux) { 2306 if (is_desktop_linux) {
2317 sources += [ "nix/xdg_util_unittest.cc" ] 2307 sources += [ "nix/xdg_util_unittest.cc" ]
2318 } 2308 }
2319 2309
2320 deps += [ "//base/test:malloc_wrapper" ] 2310 deps += [ "//base/test:malloc_wrapper" ]
2321 2311
2322 if (!is_component_build) { 2312 if (!is_component_build) {
(...skipping 18 matching lines...) Expand all
2341 "debug/proc_maps_linux_unittest.cc", 2331 "debug/proc_maps_linux_unittest.cc",
2342 "trace_event/trace_event_android_unittest.cc", 2332 "trace_event/trace_event_android_unittest.cc",
2343 ] 2333 ]
2344 set_sources_assignment_filter(sources_assignment_filter) 2334 set_sources_assignment_filter(sources_assignment_filter)
2345 } 2335 }
2346 2336
2347 if (is_win) { 2337 if (is_win) {
2348 deps += [ "//base:scoped_handle_test_dll" ] 2338 deps += [ "//base:scoped_handle_test_dll" ]
2349 if (current_cpu == "x64") { 2339 if (current_cpu == "x64") {
2350 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ] 2340 sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ]
2351 data_deps += [ ":base_profiler_test_support_library" ] 2341 deps += [ ":base_profiler_test_support_library" ]
2352 } 2342 }
2353 } 2343 }
2354 2344
2355 if (use_experimental_allocator_shim) { 2345 if (use_experimental_allocator_shim) {
2356 sources += [ "allocator/allocator_shim_unittest.cc" ] 2346 sources += [ "allocator/allocator_shim_unittest.cc" ]
2357 } 2347 }
2358 2348
2359 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 2349 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2360 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 2350 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
2361 2351
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 } 2685 }
2696 2686
2697 fuzzer_test("base_json_correctness_fuzzer") { 2687 fuzzer_test("base_json_correctness_fuzzer") {
2698 sources = [ 2688 sources = [
2699 "json/correctness_fuzzer.cc", 2689 "json/correctness_fuzzer.cc",
2700 ] 2690 ]
2701 deps = [ 2691 deps = [
2702 ":base", 2692 ":base",
2703 ] 2693 ]
2704 } 2694 }
OLDNEW
« no previous file with comments | « no previous file | base/profiler/native_stack_sampler_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698