Tim Kilbourn | 73475a4 | 2015-02-13 10:35:20 -0800 | [diff] [blame] | 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:= \ |
Tim Kilbourn | dbc8c16 | 2015-05-19 15:04:30 -0700 | [diff] [blame] | 7 | BitUtils_test.cpp \ |
Tim Kilbourn | 73475a4 | 2015-02-13 10:35:20 -0800 | [diff] [blame] | 8 | InputDevice_test.cpp \ |
| 9 | InputHub_test.cpp \ |
Tim Kilbourn | 3186e7b | 2015-04-16 15:32:08 -0700 | [diff] [blame] | 10 | InputMocks.cpp \ |
Tim Kilbourn | 864984c | 2015-05-19 17:15:52 -0700 | [diff] [blame] | 11 | MouseInputMapper_test.cpp \ |
Tim Kilbourn | 4f3145d | 2015-05-04 17:26:30 -0700 | [diff] [blame] | 12 | SwitchInputMapper_test.cpp \ |
Tim Kilbourn | 73475a4 | 2015-02-13 10:35:20 -0800 | [diff] [blame] | 13 | TestHelpers.cpp |
| 14 | |
Tim Kilbourn | 4f3145d | 2015-05-04 17:26:30 -0700 | [diff] [blame] | 15 | LOCAL_STATIC_LIBRARIES := libgmock |
| 16 | |
Tim Kilbourn | 73475a4 | 2015-02-13 10:35:20 -0800 | [diff] [blame] | 17 | LOCAL_SHARED_LIBRARIES := \ |
| 18 | libinput_evdev \ |
| 19 | liblog \ |
| 20 | libutils |
| 21 | |
| 22 | LOCAL_CLANG := true |
Chih-Hung Hsieh | 4224d9e | 2017-12-01 11:28:37 -0800 | [diff] [blame^] | 23 | LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter |
Tim Kilbourn | 73475a4 | 2015-02-13 10:35:20 -0800 | [diff] [blame] | 24 | |
Andreas Gampe | 1aa58f9 | 2015-12-16 14:17:44 -0800 | [diff] [blame] | 25 | # 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. |
| 28 | LOCAL_CFLAGS += -Wno-deprecated-declarations |
| 29 | |
Tim Kilbourn | 73475a4 | 2015-02-13 10:35:20 -0800 | [diff] [blame] | 30 | LOCAL_MODULE := libinput_evdevtests |
| 31 | LOCAL_MODULE_TAGS := tests |
| 32 | |
| 33 | include $(BUILD_NATIVE_TEST) |