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 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 51 | header_libs: [ |
| 52 | "libinputdispatcher_headers", |
| 53 | ], |
| 54 | } |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 55 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 56 | cc_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 | ], |
Siarhei Vishniakou | 887b7d9 | 2020-06-18 00:43:02 +0000 | [diff] [blame^] | 71 | logtags: ["EventLogTags.logtags"], |
Garfield Tan | e84e6f9 | 2019-08-29 17:28:41 -0700 | [diff] [blame] | 72 | } |