blob: b09a8ac2ad4fb3cc382554a0350bf904a5c8a4ea [file] [log] [blame]
Tim Kilbourn73475a42015-02-13 10:35:20 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_C_INCLUDES += hardware/libhardware/modules/input/evdev
5
6LOCAL_SRC_FILES:= \
Tim Kilbourndbc8c162015-05-19 15:04:30 -07007 BitUtils_test.cpp \
Tim Kilbourn73475a42015-02-13 10:35:20 -08008 InputDevice_test.cpp \
9 InputHub_test.cpp \
Tim Kilbourn3186e7b2015-04-16 15:32:08 -070010 InputMocks.cpp \
Tim Kilbourn864984c2015-05-19 17:15:52 -070011 MouseInputMapper_test.cpp \
Tim Kilbourn4f3145d2015-05-04 17:26:30 -070012 SwitchInputMapper_test.cpp \
Tim Kilbourn73475a42015-02-13 10:35:20 -080013 TestHelpers.cpp
14
Tim Kilbourn4f3145d2015-05-04 17:26:30 -070015LOCAL_STATIC_LIBRARIES := libgmock
16
Tim Kilbourn73475a42015-02-13 10:35:20 -080017LOCAL_SHARED_LIBRARIES := \
18 libinput_evdev \
19 liblog \
20 libutils
21
22LOCAL_CLANG := true
Chih-Hung Hsieh4224d9e2017-12-01 11:28:37 -080023LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
Tim Kilbourn73475a42015-02-13 10:35:20 -080024
Andreas Gampe1aa58f92015-12-16 14:17:44 -080025# TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
26# here (e.g., use mkdtemp first). At least races will lead to an early failure, as
27# mkfifo fails on existing files.
28LOCAL_CFLAGS += -Wno-deprecated-declarations
29
Tim Kilbourn73475a42015-02-13 10:35:20 -080030LOCAL_MODULE := libinput_evdevtests
31LOCAL_MODULE_TAGS := tests
32
33include $(BUILD_NATIVE_TEST)