Use a less compiler-specific way for preventing inlining / tail-call optimization.
[chromium-blink-merge.git] / base / trace_event / BUILD.gn
blob479a918484322712ffaef6d261584225418a7c93
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     "process_memory_dump.cc",
15     "process_memory_dump.h",
16     "process_memory_maps.cc",
17     "process_memory_maps.h",
18     "process_memory_maps_dump_provider.cc",
19     "process_memory_maps_dump_provider.h",
20     "process_memory_totals.cc",
21     "process_memory_totals.h",
22     "process_memory_totals_dump_provider.cc",
23     "process_memory_totals_dump_provider.h",
24     "trace_event.h",
25     "trace_event_android.cc",
26     "trace_event_argument.cc",
27     "trace_event_argument.h",
28     "trace_event_impl.cc",
29     "trace_event_impl.h",
30     "trace_event_impl_constants.cc",
31     "trace_event_memory.cc",
32     "trace_event_memory.h",
33     "trace_event_synthetic_delay.cc",
34     "trace_event_synthetic_delay.h",
35     "trace_event_system_stats_monitor.cc",
36     "trace_event_system_stats_monitor.h",
37     "trace_event_win.cc",
38     "trace_event_win.h",
39   ]
41   if (is_nacl) {
42     sources -= [
43       "process_memory_totals_dump_provider.cc",
44       "trace_event_system_stats_monitor.cc",
45     ]
46   }
48   configs += [ "//base:base_implementation" ]
50   deps = [
51     "//base/debug",
52     "//base/json",
53     "//base/memory",
54     "//base/process",
55     "//base/third_party/dynamic_annotations",
56   ]
58   allow_circular_includes_from = [
59     "//base/debug",
60     "//base/memory",
61     "//base/process",
62   ]
64   visibility = [ "//base/*" ]
67 source_set("trace_event_unittests") {
68   testonly = true
69   sources = [
70     "memory_allocator_dump_unittest.cc",
71     "memory_dump_manager_unittest.cc",
72     "process_memory_maps_dump_provider_unittest.cc",
73     "process_memory_totals_dump_provider_unittest.cc",
74     "trace_event_argument_unittest.cc",
75     "trace_event_memory_unittest.cc",
76     "trace_event_synthetic_delay_unittest.cc",
77     "trace_event_system_stats_monitor_unittest.cc",
78     "trace_event_unittest.cc",
79     "trace_event_win_unittest.cc",
80   ]
82   deps = [
83     "//base/test:test_support",
84     "//testing/gmock",
85     "//testing/gtest",
86   ]