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