De-duplicate BASE_IMPLEMENTATION define in the GN build.
[chromium-blink-merge.git] / base / trace_event / BUILD.gn
blob10f7ec900e9d48b07ca92b2597a0f8fb21cfea79
1 # Copyright (c) 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_dump_manager.cc",
8     "memory_dump_manager.h",
9     "memory_dump_provider.h",
10     "process_memory_dump.cc",
11     "process_memory_dump.h",
12     "process_memory_maps.cc",
13     "process_memory_maps.h",
14     "process_memory_maps_dump_provider.cc",
15     "process_memory_maps_dump_provider.h",
16     "process_memory_totals.cc",
17     "process_memory_totals.h",
18     "process_memory_totals_dump_provider.cc",
19     "process_memory_totals_dump_provider.h",
20     "trace_event.h",
21     "trace_event_android.cc",
22     "trace_event_argument.cc",
23     "trace_event_argument.h",
24     "trace_event_impl.cc",
25     "trace_event_impl.h",
26     "trace_event_impl_constants.cc",
27     "trace_event_memory.cc",
28     "trace_event_memory.h",
29     "trace_event_synthetic_delay.cc",
30     "trace_event_synthetic_delay.h",
31     "trace_event_system_stats_monitor.cc",
32     "trace_event_system_stats_monitor.h",
33     "trace_event_win.cc",
34     "trace_event_win.h",
35   ]
37   if (is_nacl) {
38     sources -= [
39       "process_memory_totals_dump_provider.cc",
40       "trace_event_system_stats_monitor.cc",
41     ]
42   }
44   configs += [ "//base:base_implementation" ]
46   deps = [
47     "//base/debug",
48     "//base/json",
49     "//base/memory",
50     "//base/process",
51     "//base/third_party/dynamic_annotations",
52   ]
54   allow_circular_includes_from = [
55     "//base/debug",
56     "//base/memory",
57     "//base/process",
58   ]
60   visibility = [ "//base/*" ]