Home | History | Annotate | Download | only in host
      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 LOCAL_PATH:= $(call my-dir)
     16 include $(CLEAR_VARS)
     17 
     18 LOCAL_CLANG := true
     19 
     20 LOCAL_SRC_FILES:= \
     21     InputFlinger.cpp \
     22     InputDriver.cpp \
     23     InputHost.cpp
     24 
     25 LOCAL_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 
     38 LOCAL_CFLAGS += -Wno-unused-parameter
     39 
     40 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
     41 
     42 LOCAL_MODULE := libinputflingerhost
     43 
     44 include $(BUILD_SHARED_LIBRARY)
     45 
     46 ########################################################################
     47 # build input flinger executable
     48 include $(CLEAR_VARS)
     49 
     50 LOCAL_CLANG := true
     51 
     52 LOCAL_SRC_FILES:= \
     53 	main.cpp
     54 
     55 LOCAL_SHARED_LIBRARIES := \
     56 	libbinder \
     57 	libinputflingerhost \
     58 	libutils
     59 
     60 LOCAL_MODULE := inputflinger
     61 LOCAL_INIT_RC := inputflinger.rc
     62 
     63 include $(BUILD_EXECUTABLE)
     64