# Copyright (C) 2025 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("../../../../gn/perfetto_cc_proto_descriptor.gni") import("../../../../gn/test.gni") source_set("generator") { sources = [ "structured_query_generator.cc", "structured_query_generator.h", ] deps = [ "../../../../gn:default_deps", "../../../../protos/perfetto/perfetto_sql:zero", "../../../base", "../../../protozero", "../../util", ] } perfetto_cc_proto_descriptor("gen_cc_perfetto_sql_descriptor") { descriptor_name = "perfettosql.descriptor" descriptor_target = "../../../../protos/perfetto/perfetto_sql:descriptor" } perfetto_unittest_source_set("unittests") { testonly = true sources = [ "structured_query_generator_unittest.cc" ] deps = [ ":gen_cc_perfetto_sql_descriptor", ":generator", "../../../../gn:default_deps", "../../../../gn:gtest_and_gmock", "../../../../protos/perfetto/perfetto_sql:cpp", "../../../base", "../../../base:test_support", "../../../protozero/text_to_proto", ] }