xref: /aosp_15_r20/external/perfetto/src/trace_processor/db/column/BUILD.gn (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1# Copyright (C) 2023 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import("../../../../gn/test.gni")
16
17source_set("column") {
18  sources = [
19    "arrangement_overlay.cc",
20    "arrangement_overlay.h",
21    "data_layer.cc",
22    "data_layer.h",
23    "dense_null_overlay.cc",
24    "dense_null_overlay.h",
25    "dummy_storage.cc",
26    "dummy_storage.h",
27    "id_storage.cc",
28    "id_storage.h",
29    "null_overlay.cc",
30    "null_overlay.h",
31    "numeric_storage.cc",
32    "numeric_storage.h",
33    "overlay_layer.cc",
34    "overlay_layer.h",
35    "range_overlay.cc",
36    "range_overlay.h",
37    "selector_overlay.cc",
38    "selector_overlay.h",
39    "set_id_storage.cc",
40    "set_id_storage.h",
41    "storage_layer.cc",
42    "storage_layer.h",
43    "string_storage.cc",
44    "string_storage.h",
45    "types.h",
46    "utils.cc",
47    "utils.h",
48  ]
49  deps = [
50    "..:compare",
51    "../..:metatrace",
52    "../../../../gn:default_deps",
53    "../../../../include/perfetto/trace_processor",
54    "../../../../include/perfetto/trace_processor:basic_types",
55    "../../../../protos/perfetto/trace_processor:zero",
56    "../../../base",
57    "../../containers",
58    "../../util:glob",
59    "../../util:regex",
60  ]
61}
62
63perfetto_unittest_source_set("fake_storage") {
64  testonly = true
65  sources = [
66    "fake_storage.cc",
67    "fake_storage.h",
68  ]
69  deps = [
70    ":column",
71    "../../../../gn:default_deps",
72    "../../../../gn:gtest_and_gmock",
73    "../../../../include/perfetto/trace_processor:basic_types",
74    "../../containers",
75  ]
76}
77
78perfetto_unittest_source_set("unittests") {
79  testonly = true
80  sources = [
81    "arrangement_overlay_unittest.cc",
82    "dense_null_overlay_unittest.cc",
83    "fake_storage_unittest.cc",
84    "id_storage_unittest.cc",
85    "null_overlay_unittest.cc",
86    "numeric_storage_unittest.cc",
87    "range_overlay_unittest.cc",
88    "selector_overlay_unittest.cc",
89    "set_id_storage_unittest.cc",
90    "string_storage_unittest.cc",
91  ]
92  deps = [
93    ":column",
94    ":fake_storage",
95    "../:compare",
96    "../../../../gn:default_deps",
97    "../../../../gn:gtest_and_gmock",
98    "../../../../include/perfetto/trace_processor:basic_types",
99    "../../../base",
100    "../../containers",
101  ]
102}
103