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("packages_list_parser") { 18 deps = [ 19 "../../../../gn:default_deps", 20 "../../../base", 21 ] 22 sources = [ 23 "packages_list_parser.cc", 24 "packages_list_parser.h", 25 ] 26} 27 28source_set("packages_list") { 29 public_deps = [ "../../../tracing/core" ] 30 deps = [ 31 ":packages_list_parser", 32 "..:data_source", 33 "../../../../gn:default_deps", 34 "../../../../include/perfetto/ext/traced", 35 "../../../../protos/perfetto/common:zero", 36 "../../../../protos/perfetto/config/android:zero", 37 "../../../../protos/perfetto/trace:zero", 38 "../../../../protos/perfetto/trace/android:zero", 39 "../../../base", 40 ] 41 sources = [ 42 "packages_list_data_source.cc", 43 "packages_list_data_source.h", 44 ] 45} 46 47perfetto_unittest_source_set("unittests") { 48 testonly = true 49 deps = [ 50 ":packages_list", 51 ":packages_list_parser", 52 "../../../../gn:default_deps", 53 "../../../../gn:gtest_and_gmock", 54 "../../../../protos/perfetto/trace/android:cpp", 55 "../../../../protos/perfetto/trace/android:zero", 56 "../../../../src/base:test_support", 57 "../../../../src/tracing/test:test_support", 58 ] 59 sources = [ "packages_list_unittest.cc" ] 60} 61