blob: 4c433929ef6fd2914f74d956848fd635b8a57f50 [file] [log] [blame]
Michael Wrightd02c5b62014-02-10 15:10:22 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7 InputReader_test.cpp \
8 InputDispatcher_test.cpp
9
10shared_libraries := \
11 libcutils \
12 liblog \
Michael Wrightd02c5b62014-02-10 15:10:22 -080013 libutils \
14 libhardware \
15 libhardware_legacy \
16 libui \
17 libskia \
Michael Wrightd02c5b62014-02-10 15:10:22 -080018 libinput \
19 libinputflinger \
20 libinputservice
21
Michael Wrightd02c5b62014-02-10 15:10:22 -080022c_includes := \
Michael Wrightd02c5b62014-02-10 15:10:22 -080023 external/skia/include/core
24
25
Michael Wrighteb4ed3e2015-02-23 17:20:16 -080026module_tags := tests
Michael Wrightd02c5b62014-02-10 15:10:22 -080027
28$(foreach file,$(test_src_files), \
29 $(eval include $(CLEAR_VARS)) \
30 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
Michael Wrightd02c5b62014-02-10 15:10:22 -080031 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
Dan Albert6d720632014-11-15 18:18:17 -080032 $(eval LOCAL_CFLAGS += -Wno-unused-parameter) \
Michael Wrightd02c5b62014-02-10 15:10:22 -080033 $(eval LOCAL_SRC_FILES := $(file)) \
34 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
35 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
36 $(eval include $(BUILD_NATIVE_TEST)) \
37)
38
39# Build the manual test programs.
40include $(call all-makefiles-under, $(LOCAL_PATH))