1# Copyright (C) 2019 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("db") {
18  sources = [
19    "column.cc",
20    "column.h",
21    "compare.h",
22    "table.cc",
23    "table.h",
24    "typed_column.h",
25    "typed_column_internal.h",
26  ]
27  deps = [
28    "../../../gn:default_deps",
29    "../../../include/perfetto/base",
30    "../../../include/perfetto/ext/base",
31    "../../../include/perfetto/trace_processor",
32    "../containers",
33  ]
34}
35
36perfetto_unittest_source_set("unittests") {
37  testonly = true
38  sources = [
39    "compare_unittest.cc",
40    "table_unittest.cc",
41  ]
42  deps = [
43    ":db",
44    "../../../gn:default_deps",
45    "../../../gn:gtest_and_gmock",
46    "../../base:base",
47    "../tables:tables",
48  ]
49}
50