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 15cc_library_headers { 16 name: "libinputdispatcher_headers", 17 export_include_dirs: [ 18 "include", 19 ], 20} 21 22filegroup { 23 name: "libinputdispatcher_sources", 24 srcs: [ 25 "AnrTracker.cpp", 26 "Connection.cpp", 27 "Entry.cpp", 28 "InjectionState.cpp", 29 "InputDispatcher.cpp", 30 "InputDispatcherFactory.cpp", 31 "InputState.cpp", 32 "InputTarget.cpp", 33 "Monitor.cpp", 34 "TouchState.cpp", 35 ], 36} 37 38cc_defaults { 39 name: "libinputdispatcher_defaults", 40 srcs: [":libinputdispatcher_sources"], 41 shared_libs: [ 42 "libbase", 43 "libcrypto", 44 "libcutils", 45 "libinput", 46 "liblog", 47 "libstatslog", 48 "libui", 49 "libutils", 50 ], 51 header_libs: [ 52 "libinputdispatcher_headers", 53 ], 54} 55 56cc_library_static { 57 name: "libinputdispatcher", 58 defaults: [ 59 "inputflinger_defaults", 60 "libinputdispatcher_defaults", 61 ], 62 shared_libs: [ 63 // This should consist only of dependencies from inputflinger. Other dependencies should be 64 // in cc_defaults so that they are included in the tests. 65 "libinputreporter", 66 "libinputflinger_base", 67 ], 68 export_header_lib_headers: [ 69 "libinputdispatcher_headers", 70 ], 71} 72