blob: 8761da8b2a0e492bd6a88c881c8568b23da2b578 [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:= \
7 InputDevice_test.cpp \
8 InputHub_test.cpp \
9 TestHelpers.cpp
10
11LOCAL_SHARED_LIBRARIES := \
12 libinput_evdev \
13 liblog \
14 libutils
15
16LOCAL_CLANG := true
17LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter
18LOCAL_CPPFLAGS += -std=c++14
19
Andreas Gampe1aa58f92015-12-16 14:17:44 -080020# TestHelpers uses mktemp. As the path is given to TempFile, we can't do too much
21# here (e.g., use mkdtemp first). At least races will lead to an early failure, as
22# mkfifo fails on existing files.
23LOCAL_CFLAGS += -Wno-deprecated-declarations
24
Tim Kilbourn73475a42015-02-13 10:35:20 -080025LOCAL_MODULE := libinput_evdevtests
26LOCAL_MODULE_TAGS := tests
27
28include $(BUILD_NATIVE_TEST)