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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_native_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_native_license"], 22} 23 24cc_library_headers { 25 name: "libinputdispatcher_headers", 26 export_include_dirs: [ 27 "include", 28 ], 29} 30 31filegroup { 32 name: "libinputdispatcher_sources", 33 srcs: [ 34 "AnrTracker.cpp", 35 "Connection.cpp", 36 "Entry.cpp", 37 "FocusResolver.cpp", 38 "InjectionState.cpp", 39 "InputDispatcher.cpp", 40 "InputDispatcherFactory.cpp", 41 "InputEventTimeline.cpp", 42 "InputState.cpp", 43 "InputTarget.cpp", 44 "LatencyAggregator.cpp", 45 "LatencyTracker.cpp", 46 "Monitor.cpp", 47 "TouchState.cpp", 48 "DragState.cpp", 49 ], 50} 51 52cc_defaults { 53 name: "libinputdispatcher_defaults", 54 srcs: [":libinputdispatcher_sources"], 55 shared_libs: [ 56 "libbase", 57 "libcrypto", 58 "libcutils", 59 "libinput", 60 "libkll", 61 "liblog", 62 "libprotobuf-cpp-lite", 63 "libstatslog", 64 "libstatspull", 65 "libstatssocket", 66 "libui", 67 "libutils", 68 "lib-platform-compat-native-api", 69 "server_configurable_flags", 70 ], 71 static_libs: [ 72 "libattestation", 73 ], 74 header_libs: [ 75 "libinputdispatcher_headers", 76 ], 77} 78 79cc_library_static { 80 name: "libinputdispatcher", 81 defaults: [ 82 "inputflinger_defaults", 83 "libinputdispatcher_defaults", 84 ], 85 shared_libs: [ 86 // This should consist only of dependencies from inputflinger. Other dependencies should be 87 // in cc_defaults so that they are included in the tests. 88 "libinputreporter", 89 "libinputflinger_base", 90 ], 91 export_header_lib_headers: [ 92 "libinputdispatcher_headers", 93 ], 94 logtags: ["EventLogTags.logtags"], 95} 96