| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 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 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 15 | cc_library_headers { | 
|  | 16 | name: "libinputdispatcher_headers", | 
|  | 17 | export_include_dirs: [ | 
|  | 18 | "include", | 
|  | 19 | ], | 
|  | 20 | } | 
|  | 21 |  | 
|  | 22 | filegroup { | 
|  | 23 | name: "libinputdispatcher_sources", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 24 | srcs: [ | 
| Siarhei Vishniakou | e462304 | 2020-03-25 16:16:40 -0700 | [diff] [blame] | 25 | "AnrTracker.cpp", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 26 | "Connection.cpp", | 
|  | 27 | "Entry.cpp", | 
|  | 28 | "InjectionState.cpp", | 
|  | 29 | "InputDispatcher.cpp", | 
|  | 30 | "InputDispatcherFactory.cpp", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 31 | "InputState.cpp", | 
|  | 32 | "InputTarget.cpp", | 
|  | 33 | "Monitor.cpp", | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 34 | "TouchState.cpp", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 35 | ], | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 36 | } | 
|  | 37 |  | 
|  | 38 | cc_defaults { | 
|  | 39 | name: "libinputdispatcher_defaults", | 
|  | 40 | srcs: [":libinputdispatcher_sources"], | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 41 | shared_libs: [ | 
|  | 42 | "libbase", | 
| Gang Wang | 342c927 | 2020-01-13 13:15:04 -0500 | [diff] [blame] | 43 | "libcrypto", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 44 | "libcutils", | 
|  | 45 | "libinput", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 46 | "liblog", | 
| Siarhei Vishniakou | de4bf15 | 2019-08-16 11:12:52 -0500 | [diff] [blame] | 47 | "libstatslog", | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 48 | "libui", | 
|  | 49 | "libutils", | 
|  | 50 | ], | 
| chaviw | 09c8d2d | 2020-08-24 15:48:26 -0700 | [diff] [blame] | 51 | static_libs: [ | 
|  | 52 | "libattestation", | 
|  | 53 | ], | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 54 | header_libs: [ | 
|  | 55 | "libinputdispatcher_headers", | 
|  | 56 | ], | 
|  | 57 | } | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 58 |  | 
| Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 59 | cc_library_static { | 
|  | 60 | name: "libinputdispatcher", | 
|  | 61 | defaults: [ | 
|  | 62 | "inputflinger_defaults", | 
|  | 63 | "libinputdispatcher_defaults", | 
|  | 64 | ], | 
|  | 65 | shared_libs: [ | 
|  | 66 | // This should consist only of dependencies from inputflinger. Other dependencies should be | 
|  | 67 | // in cc_defaults so that they are included in the tests. | 
|  | 68 | "libinputreporter", | 
|  | 69 | "libinputflinger_base", | 
|  | 70 | ], | 
|  | 71 | export_header_lib_headers: [ | 
|  | 72 | "libinputdispatcher_headers", | 
|  | 73 | ], | 
| Siarhei Vishniakou | 887b7d9 | 2020-06-18 00:43:02 +0000 | [diff] [blame] | 74 | logtags: ["EventLogTags.logtags"], | 
| Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 75 | } |