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 15source_set("filesystem") { 16 public_deps = [ 17 "../../../../protos/perfetto/trace/filesystem:zero", 18 "../../../tracing", 19 ] 20 deps = [ 21 "../../../../gn:default_deps", 22 "../../../base", 23 ] 24 sources = [ 25 "file_scanner.cc", 26 "file_scanner.h", 27 "fs_mount.cc", 28 "fs_mount.h", 29 "inode_file_data_source.cc", 30 "inode_file_data_source.h", 31 "lru_inode_cache.cc", 32 "lru_inode_cache.h", 33 "prefix_finder.cc", 34 "prefix_finder.h", 35 "range_tree.cc", 36 "range_tree.h", 37 ] 38} 39 40source_set("unittests") { 41 testonly = true 42 deps = [ 43 ":filesystem", 44 "../../../../gn:default_deps", 45 "../../../../gn:gtest_deps", 46 "../../../../src/base:test_support", 47 ] 48 sources = [ 49 "file_scanner_unittest.cc", 50 "fs_mount_unittest.cc", 51 "inode_file_data_source_unittest.cc", 52 "lru_inode_cache_unittest.cc", 53 "prefix_finder_unittest.cc", 54 "range_tree_unittest.cc", 55 ] 56} 57