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 17assert(enable_perfetto_trace_processor_sqlite) 18 19source_set("parser") { 20 sources = [ 21 "function_util.cc", 22 "function_util.h", 23 "perfetto_sql_parser.cc", 24 "perfetto_sql_parser.h", 25 ] 26 deps = [ 27 "../..:metatrace", 28 "../../../../gn:default_deps", 29 "../../../../gn:sqlite", 30 "../../../base", 31 "../../sqlite", 32 "../../util", 33 "../../util:sql_argument", 34 "../grammar", 35 "../preprocessor", 36 "../tokenizer", 37 ] 38} 39 40perfetto_unittest_source_set("unittests") { 41 testonly = true 42 sources = [ "perfetto_sql_parser_unittest.cc" ] 43 deps = [ 44 ":parser", 45 ":test_utils", 46 "../../../../gn:default_deps", 47 "../../../../gn:gtest_and_gmock", 48 "../../../../gn:sqlite", 49 "../../../base", 50 "../../sqlite", 51 "../../util:sql_argument", 52 "../preprocessor", 53 ] 54} 55 56perfetto_unittest_source_set("test_utils") { 57 testonly = true 58 sources = [ "perfetto_sql_test_utils.h" ] 59 deps = [ 60 ":parser", 61 "../../../../gn:default_deps", 62 "../../../../gn:gtest_and_gmock", 63 "../../../../gn:sqlite", 64 "../../../base", 65 "../../sqlite", 66 "../../util:sql_argument", 67 ] 68} 69