| 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 | |
| Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame^] | 15 | package { |
| 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 | |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 24 | cc_library_shared { |
| 25 | name: "libinputflingerhost", |
| 26 | |
| 27 | srcs: [ |
| 28 | "InputFlinger.cpp", |
| 29 | "InputDriver.cpp", |
| 30 | "InputHost.cpp", |
| 31 | ], |
| 32 | |
| Orion Hodson | a58ef35 | 2020-04-22 11:10:13 +0100 | [diff] [blame] | 33 | header_libs: ["jni_headers"], |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 34 | shared_libs: [ |
| 35 | "libbinder", |
| 36 | "libcrypto", |
| 37 | "libcutils", |
| 38 | "libinput", |
| 39 | "liblog", |
| 40 | "libutils", |
| 41 | "libhardware", |
| 42 | ], |
| Robert Carr | 1cc7867 | 2018-07-31 14:25:57 -0700 | [diff] [blame] | 43 | static_libs: [ |
| 44 | "libarect", |
| 45 | ], |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 46 | |
| 47 | cflags: [ |
| Chih-Hung Hsieh | a50a467 | 2017-10-05 13:55:31 -0700 | [diff] [blame] | 48 | "-Wall", |
| 49 | "-Werror", |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 50 | "-Wno-unused-parameter", |
| 51 | // TODO: Move inputflinger to its own process and mark it hidden |
| 52 | //-fvisibility=hidden |
| 53 | ], |
| 54 | |
| Orion Hodson | a58ef35 | 2020-04-22 11:10:13 +0100 | [diff] [blame] | 55 | export_header_lib_headers: ["jni_headers"], |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 56 | export_include_dirs: ["."], |
| 57 | } |
| 58 | |
| 59 | //####################################################################### |
| 60 | // build input flinger executable |
| 61 | cc_binary { |
| 62 | name: "inputflinger", |
| 63 | |
| 64 | srcs: ["main.cpp"], |
| 65 | |
| Chih-Hung Hsieh | a50a467 | 2017-10-05 13:55:31 -0700 | [diff] [blame] | 66 | cflags: ["-Wall", "-Werror"], |
| 67 | |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 68 | shared_libs: [ |
| 69 | "libbinder", |
| 70 | "libinputflingerhost", |
| Robert Carr | 1cc7867 | 2018-07-31 14:25:57 -0700 | [diff] [blame] | 71 | "libutils" |
| 72 | ], |
| 73 | static_libs: [ |
| 74 | "libarect", |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 75 | ], |
| Colin Cross | 6e1c761 | 2017-04-19 16:56:46 -0700 | [diff] [blame] | 76 | } |