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