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("containers") { 18 sources = [ 19 "bit_vector.cc", 20 "bit_vector.h", 21 "bit_vector_iterators.cc", 22 "bit_vector_iterators.h", 23 "null_term_string_view.h", 24 "nullable_vector.cc", 25 "nullable_vector.h", 26 "row_map.cc", 27 "row_map.h", 28 "string_pool.cc", 29 "string_pool.h", 30 ] 31 deps = [ 32 "../../../gn:default_deps", 33 "../../../include/perfetto/base", 34 "../../../include/perfetto/ext/base", 35 "../../../include/perfetto/protozero", 36 ] 37} 38 39perfetto_unittest_source_set("unittests") { 40 testonly = true 41 sources = [ 42 "bit_vector_unittest.cc", 43 "null_term_string_view_unittest.cc", 44 "nullable_vector_unittest.cc", 45 "row_map_unittest.cc", 46 "string_pool_unittest.cc", 47 ] 48 deps = [ 49 ":containers", 50 "../../../gn:default_deps", 51 "../../../gn:gtest_and_gmock", 52 ] 53} 54 55if (enable_perfetto_benchmarks) { 56 source_set("benchmarks") { 57 testonly = true 58 deps = [ 59 ":containers", 60 "../../../gn:benchmark", 61 "../../../gn:default_deps", 62 ] 63 sources = [ 64 "bit_vector_benchmark.cc", 65 "nullable_vector_benchmark.cc", 66 "row_map_benchmark.cc", 67 ] 68 } 69} 70