Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / base / trace_event / BUILD.gn
blobd017b4365712ebd2efd2b7dd5b2a863717102082
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("trace_event") {
6   sources = [
7     "category_filter.cc",
8     "category_filter.h",
9     "java_heap_dump_provider_android.cc",
10     "java_heap_dump_provider_android.h",
11     "memory_allocator_dump.cc",
12     "memory_allocator_dump.h",
13     "memory_allocator_dump_guid.cc",
14     "memory_allocator_dump_guid.h",
15     "memory_dump_manager.cc",
16     "memory_dump_manager.h",
17     "memory_dump_provider.h",
18     "memory_dump_request_args.h",
19     "memory_dump_session_state.cc",
20     "memory_dump_session_state.h",
21     "process_memory_dump.cc",
22     "process_memory_dump.h",
23     "process_memory_maps.cc",
24     "process_memory_maps.h",
25     "process_memory_maps_dump_provider.cc",
26     "process_memory_maps_dump_provider.h",
27     "process_memory_totals.cc",
28     "process_memory_totals.h",
29     "process_memory_totals_dump_provider.cc",
30     "process_memory_totals_dump_provider.h",
31     "trace_config.cc",
32     "trace_config.h",
33     "trace_event.h",
34     "trace_event_android.cc",
35     "trace_event_argument.cc",
36     "trace_event_argument.h",
37     "trace_event_etw_export_win.cc",
38     "trace_event_etw_export_win.h",
39     "trace_event_impl.cc",
40     "trace_event_impl.h",
41     "trace_event_impl_constants.cc",
42     "trace_event_memory.cc",
43     "trace_event_memory.h",
44     "trace_event_synthetic_delay.cc",
45     "trace_event_synthetic_delay.h",
46     "trace_event_system_stats_monitor.cc",
47     "trace_event_system_stats_monitor.h",
48     "trace_event_win.cc",
49     "trace_event_win.h",
50     "trace_options.cc",
51     "trace_options.h",
52     "winheap_dump_provider_win.cc",
53     "winheap_dump_provider_win.h",
54   ]
56   if (is_nacl) {
57     sources -= [
58       "process_memory_totals_dump_provider.cc",
59       "trace_event_system_stats_monitor.cc",
60     ]
61   }
63   if (is_linux || is_android) {
64     sources += [
65       "malloc_dump_provider.cc",
66       "malloc_dump_provider.h",
67     ]
68   }
70   configs += [ "//base:base_implementation" ]
72   deps = [
73     "//base/debug",
74     "//base/json",
75     "//base/memory",
76     "//base/process",
77     "//base/third_party/dynamic_annotations",
78   ]
80   if (is_win) {
81     deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ]
82   }
84   allow_circular_includes_from = [
85     "//base/debug",
86     "//base/memory",
87     "//base/process",
88   ]
90   visibility = [ "//base/*" ]
93 source_set("trace_event_unittests") {
94   testonly = true
95   sources = [
96     "category_filter_unittest.cc",
97     "java_heap_dump_provider_android_unittest.cc",
98     "memory_allocator_dump_unittest.cc",
99     "memory_dump_manager_unittest.cc",
100     "process_memory_dump_unittest.cc",
101     "process_memory_maps_dump_provider_unittest.cc",
102     "process_memory_totals_dump_provider_unittest.cc",
103     "trace_config_unittest.cc",
104     "trace_event_argument_unittest.cc",
105     "trace_event_memory_unittest.cc",
106     "trace_event_synthetic_delay_unittest.cc",
107     "trace_event_system_stats_monitor_unittest.cc",
108     "trace_event_unittest.cc",
109     "trace_event_win_unittest.cc",
110     "trace_options_unittest.cc",
111     "winheap_dump_provider_win_unittest.cc",
112   ]
114   deps = [
115     "//base/test:test_support",
116     "//testing/gmock",
117     "//testing/gtest",
118   ]