Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 1 | // Copyright (C) 2015 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 | |
| 15 | cc_library_shared { |
| 16 | name: "libinputflingerhost", |
| 17 | |
| 18 | srcs: [ |
| 19 | "InputFlinger.cpp", |
| 20 | "InputDriver.cpp", |
| 21 | "InputHost.cpp", |
| 22 | ], |
| 23 | |
| 24 | shared_libs: [ |
| 25 | "libbinder", |
| 26 | "libcrypto", |
| 27 | "libcutils", |
| 28 | "libinput", |
| 29 | "liblog", |
| 30 | "libutils", |
| 31 | "libhardware", |
| 32 | ], |
Robert Carr | 1cc7867 | 2018-07-31 14:25:57 -0700 | [diff] [blame] | 33 | static_libs: [ |
| 34 | "libarect", |
| 35 | ], |
Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 36 | |
| 37 | cflags: [ |
Chih-Hung Hsieh | a50a467 | 2017-10-05 13:55:31 -0700 | [diff] [blame] | 38 | "-Wall", |
| 39 | "-Werror", |
Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 40 | "-Wno-unused-parameter", |
| 41 | // TODO: Move inputflinger to its own process and mark it hidden |
| 42 | //-fvisibility=hidden |
| 43 | ], |
| 44 | |
| 45 | export_include_dirs: ["."], |
| 46 | } |
| 47 | |
| 48 | //####################################################################### |
| 49 | // build input flinger executable |
| 50 | cc_binary { |
| 51 | name: "inputflinger", |
| 52 | |
| 53 | srcs: ["main.cpp"], |
| 54 | |
Chih-Hung Hsieh | a50a467 | 2017-10-05 13:55:31 -0700 | [diff] [blame] | 55 | cflags: ["-Wall", "-Werror"], |
| 56 | |
Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 57 | shared_libs: [ |
| 58 | "libbinder", |
| 59 | "libinputflingerhost", |
Robert Carr | 1cc7867 | 2018-07-31 14:25:57 -0700 | [diff] [blame] | 60 | "libutils" |
| 61 | ], |
| 62 | static_libs: [ |
| 63 | "libarect", |
Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 64 | ], |
Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 65 | } |