1# Copyright (C) 2018 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("filesystem") { 18 public_deps = [ 19 "../../../../protos/perfetto/trace/filesystem:zero", 20 "../../../tracing/core", 21 ] 22 deps = [ 23 "..:data_source", 24 "../../../../gn:default_deps", 25 "../../../../include/perfetto/ext/traced", 26 "../../../../protos/perfetto/config/inode_file:zero", 27 "../../../../protos/perfetto/trace:zero", 28 "../../../base", 29 ] 30 sources = [ 31 "file_scanner.cc", 32 "file_scanner.h", 33 "fs_mount.cc", 34 "fs_mount.h", 35 "inode_file_data_source.cc", 36 "inode_file_data_source.h", 37 "lru_inode_cache.cc", 38 "lru_inode_cache.h", 39 "prefix_finder.cc", 40 "prefix_finder.h", 41 "range_tree.cc", 42 "range_tree.h", 43 ] 44} 45 46perfetto_unittest_source_set("unittests") { 47 testonly = true 48 deps = [ 49 ":filesystem", 50 "../../../../gn:default_deps", 51 "../../../../gn:gtest_and_gmock", 52 "../../../../include/perfetto/protozero", 53 "../../../../protos/perfetto/config/inode_file:zero", 54 "../../../../src/base:test_support", 55 ] 56 sources = [ 57 "file_scanner_unittest.cc", 58 "fs_mount_unittest.cc", 59 "inode_file_data_source_unittest.cc", 60 "lru_inode_cache_unittest.cc", 61 "prefix_finder_unittest.cc", 62 "range_tree_unittest.cc", 63 ] 64} 65