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
15LOCAL_PATH:= $(call my-dir)
16include $(CLEAR_VARS)
17
18LOCAL_CLANG := true
19
20LOCAL_SRC_FILES:= \
21    InputFlinger.cpp \
22    InputDriver.cpp \
23    InputHost.cpp
24
25LOCAL_SHARED_LIBRARIES := \
26    libbinder \
27    libcrypto \
28    libcutils \
29    libinput \
30    liblog \
31    libutils \
32    libhardware
33
34
35# TODO: Move inputflinger to its own process and mark it hidden
36#LOCAL_CFLAGS += -fvisibility=hidden
37
38LOCAL_CFLAGS += -Wno-unused-parameter
39
40LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
41
42LOCAL_MODULE := libinputflingerhost
43
44include $(BUILD_SHARED_LIBRARY)
45
46########################################################################
47# build input flinger executable
48include $(CLEAR_VARS)
49
50LOCAL_CLANG := true
51
52LOCAL_SRC_FILES:= \
53	main.cpp
54
55LOCAL_SHARED_LIBRARIES := \
56	libbinder \
57	libinputflingerhost \
58	libutils
59
60LOCAL_MODULE := inputflinger
61LOCAL_INIT_RC := inputflinger.rc
62
63include $(BUILD_EXECUTABLE)
64