Home | History | Annotate | Download | only in evdev
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 LOCAL_C_INCLUDES += hardware/libhardware/modules/input/evdev
      5 LOCAL_C_INCLUDES += $(TOP)/external/gmock/include
      6 
      7 LOCAL_SRC_FILES:= \
      8     BitUtils_test.cpp \
      9     InputDevice_test.cpp \
     10     InputHub_test.cpp \
     11     InputMocks.cpp \
     12     MouseInputMapper_test.cpp \
     13     SwitchInputMapper_test.cpp \
     14     TestHelpers.cpp
     15 
     16 LOCAL_STATIC_LIBRARIES := libgmock
     17 
     18 LOCAL_SHARED_LIBRARIES := \
     19     libinput_evdev \
     20     liblog \
     21     libutils
     22 
     23 LOCAL_CLANG := true
     24 LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter
     25 LOCAL_CPPFLAGS += -std=c++14
     26 
     27 # TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
     28 # here (e.g., use mkdtemp first). At least races will lead to an early failure, as
     29 # mkfifo fails on existing files.
     30 LOCAL_CFLAGS += -Wno-deprecated-declarations
     31 
     32 LOCAL_MODULE := libinput_evdevtests
     33 LOCAL_MODULE_TAGS := tests
     34 
     35 include $(BUILD_NATIVE_TEST)
     36