blob: f0151c96d1520520e557aac38da168b28ab575be [file] [log] [blame]
Colin Cross6e1c7612017-04-19 16:56:46 -07001// 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 Badour3c538232021-02-12 21:26:48 -080015package {
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 Cross6e1c7612017-04-19 16:56:46 -070024cc_library_shared {
25 name: "libinputflingerhost",
26
27 srcs: [
28 "InputFlinger.cpp",
29 "InputDriver.cpp",
30 "InputHost.cpp",
31 ],
32
Orion Hodsona58ef352020-04-22 11:10:13 +010033 header_libs: ["jni_headers"],
Colin Cross6e1c7612017-04-19 16:56:46 -070034 shared_libs: [
35 "libbinder",
36 "libcrypto",
37 "libcutils",
38 "libinput",
39 "liblog",
40 "libutils",
41 "libhardware",
42 ],
Robert Carr1cc78672018-07-31 14:25:57 -070043 static_libs: [
44 "libarect",
45 ],
Colin Cross6e1c7612017-04-19 16:56:46 -070046
47 cflags: [
Chih-Hung Hsieha50a4672017-10-05 13:55:31 -070048 "-Wall",
49 "-Werror",
Colin Cross6e1c7612017-04-19 16:56:46 -070050 "-Wno-unused-parameter",
51 // TODO: Move inputflinger to its own process and mark it hidden
52 //-fvisibility=hidden
53 ],
54
Orion Hodsona58ef352020-04-22 11:10:13 +010055 export_header_lib_headers: ["jni_headers"],
Colin Cross6e1c7612017-04-19 16:56:46 -070056 export_include_dirs: ["."],
57}
58
59//#######################################################################
60// build input flinger executable
61cc_binary {
62 name: "inputflinger",
63
64 srcs: ["main.cpp"],
65
Chih-Hung Hsieha50a4672017-10-05 13:55:31 -070066 cflags: ["-Wall", "-Werror"],
67
Colin Cross6e1c7612017-04-19 16:56:46 -070068 shared_libs: [
69 "libbinder",
70 "libinputflingerhost",
Robert Carr1cc78672018-07-31 14:25:57 -070071 "libutils"
72 ],
73 static_libs: [
74 "libarect",
Colin Cross6e1c7612017-04-19 16:56:46 -070075 ],
Colin Cross6e1c7612017-04-19 16:56:46 -070076}