1# Copyright (C) 2020 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/perfetto.gni") 16 17source_set("common") { 18 sources = [ 19 "common/args_tracker.cc", 20 "common/args_tracker.h", 21 "common/clock_tracker.cc", 22 "common/clock_tracker.h", 23 "common/event_tracker.cc", 24 "common/event_tracker.h", 25 "common/global_args_tracker.cc", 26 "common/global_args_tracker.h", 27 "common/process_tracker.cc", 28 "common/process_tracker.h", 29 "common/slice_tracker.cc", 30 "common/slice_tracker.h", 31 "common/system_info_tracker.cc", 32 "common/system_info_tracker.h", 33 "common/track_tracker.cc", 34 "common/track_tracker.h", 35 ] 36 deps = [ 37 "../../../gn:default_deps", 38 "../../../protos/perfetto/common:zero", 39 "../../../protos/perfetto/trace:zero", 40 "../../../protos/perfetto/trace/profiling:zero", 41 "../../base", 42 "../storage", 43 "../types", 44 ] 45} 46 47source_set("unittests") { 48 sources = [ 49 "common/clock_tracker_unittest.cc", 50 "common/event_tracker_unittest.cc", 51 "common/process_tracker_unittest.cc", 52 "common/slice_tracker_unittest.cc", 53 ] 54 testonly = true 55 deps = [ 56 ":common", 57 "../../../gn:default_deps", 58 "../../../gn:gtest_and_gmock", 59 "../../../protos/perfetto/common:zero", 60 "../../../protos/perfetto/trace:zero", 61 "../../base", 62 "../storage", 63 "../types", 64 ] 65} 66