Enterprise policy: Ignore the deprecated ForceSafeSearch if ForceGoogleSafeSearch...
[chromium-blink-merge.git] / base / trace_event / BUILD.gn
blobed8761fc7790d1747fbaf8bc52650e57d2af3cd7
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     "memory_allocator_attributes.h",
8     "memory_allocator_dump.cc",
9     "memory_allocator_dump.h",
10     "memory_dump_manager.cc",
11     "memory_dump_manager.h",
12     "memory_dump_provider.cc",
13     "memory_dump_provider.h",
14     "memory_dump_request_args.h",
15     "process_memory_dump.cc",
16     "process_memory_dump.h",
17     "process_memory_maps.cc",
18     "process_memory_maps.h",
19     "process_memory_maps_dump_provider.cc",
20     "process_memory_maps_dump_provider.h",
21     "process_memory_totals.cc",
22     "process_memory_totals.h",
23     "process_memory_totals_dump_provider.cc",
24     "process_memory_totals_dump_provider.h",
25     "trace_event.h",
26     "trace_event_android.cc",
27     "trace_event_argument.cc",
28     "trace_event_argument.h",
29     "trace_event_etw_export_win.cc",
30     "trace_event_etw_export_win.h",
31     "trace_event_impl.cc",
32     "trace_event_impl.h",
33     "trace_event_impl_constants.cc",
34     "trace_event_memory.cc",
35     "trace_event_memory.h",
36     "trace_event_synthetic_delay.cc",
37     "trace_event_synthetic_delay.h",
38     "trace_event_system_stats_monitor.cc",
39     "trace_event_system_stats_monitor.h",
40     "trace_event_win.cc",
41     "trace_event_win.h",
42   ]
44   if (is_nacl) {
45     sources -= [
46       "process_memory_totals_dump_provider.cc",
47       "trace_event_system_stats_monitor.cc",
48     ]
49   }
51   if (is_linux || is_android) {
52     sources += [
53       "malloc_dump_provider.cc",
54       "malloc_dump_provider.h",
55     ]
56   }
58   configs += [ "//base:base_implementation" ]
60   deps = [
61     "//base/debug",
62     "//base/json",
63     "//base/memory",
64     "//base/process",
65     "//base/third_party/dynamic_annotations",
66   ]
68   if (is_win) {
69     deps += [ "//base/trace_event/etw_manifest:chrome_events_win" ]
70   }
72   allow_circular_includes_from = [
73     "//base/debug",
74     "//base/memory",
75     "//base/process",
76   ]
78   visibility = [ "//base/*" ]
81 source_set("trace_event_unittests") {
82   testonly = true
83   sources = [
84     "memory_allocator_dump_unittest.cc",
85     "memory_dump_manager_unittest.cc",
86     "process_memory_maps_dump_provider_unittest.cc",
87     "process_memory_totals_dump_provider_unittest.cc",
88     "trace_event_argument_unittest.cc",
89     "trace_event_memory_unittest.cc",
90     "trace_event_synthetic_delay_unittest.cc",
91     "trace_event_system_stats_monitor_unittest.cc",
92     "trace_event_unittest.cc",
93     "trace_event_win_unittest.cc",
94   ]
96   deps = [
97     "//base/test:test_support",
98     "//testing/gmock",
99     "//testing/gtest",
100   ]