1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_C_INCLUDES += hardware/libhardware/modules/input/evdev 5LOCAL_C_INCLUDES += $(TOP)/external/gmock/include 6 7LOCAL_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 16LOCAL_STATIC_LIBRARIES := libgmock 17 18LOCAL_SHARED_LIBRARIES := \ 19 libinput_evdev \ 20 liblog \ 21 libutils 22 23LOCAL_CLANG := true 24LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter 25LOCAL_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. 30LOCAL_CFLAGS += -Wno-deprecated-declarations 31 32LOCAL_MODULE := libinput_evdevtests 33LOCAL_MODULE_TAGS := tests 34 35include $(BUILD_NATIVE_TEST) 36