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 
      6 LOCAL_SRC_FILES:= \
      7     BitUtils_test.cpp \
      8     InputDevice_test.cpp \
      9     InputHub_test.cpp \
     10     InputMocks.cpp \
     11     MouseInputMapper_test.cpp \
     12     SwitchInputMapper_test.cpp \
     13     TestHelpers.cpp
     14 
     15 LOCAL_STATIC_LIBRARIES := libgmock
     16 
     17 LOCAL_SHARED_LIBRARIES := \
     18     libinput_evdev \
     19     liblog \
     20     libutils
     21 
     22 LOCAL_CLANG := true
     23 LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter
     24 LOCAL_CPPFLAGS += -std=c++14
     25 
     26 # TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
     27 # here (e.g., use mkdtemp first). At least races will lead to an early failure, as
     28 # mkfifo fails on existing files.
     29 LOCAL_CFLAGS += -Wno-deprecated-declarations
     30 
     31 LOCAL_MODULE := libinput_evdevtests
     32 LOCAL_MODULE_TAGS := tests
     33 
     34 include $(BUILD_NATIVE_TEST)
     35