• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_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    ],
33
34    cflags: [
35        "-Wall",
36        "-Werror",
37        "-Wno-unused-parameter",
38        // TODO: Move inputflinger to its own process and mark it hidden
39        //-fvisibility=hidden
40    ],
41
42    export_include_dirs: ["."],
43}
44
45//#######################################################################
46// build input flinger executable
47cc_binary {
48    name: "inputflinger",
49
50    srcs: ["main.cpp"],
51
52    cflags: ["-Wall", "-Werror"],
53
54    shared_libs: [
55        "libbinder",
56        "libinputflingerhost",
57        "libutils",
58    ],
59
60    init_rc: ["inputflinger.rc"],
61}
62