blob: 429274100a19b97421635330b68ebf781af6f142 [file] [log] [blame]
Jeff Brown5912f952013-07-01 19:10:31 -07001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7 InputChannel_test.cpp \
8 InputEvent_test.cpp \
9 InputPublisherAndConsumer_test.cpp
10
11shared_libraries := \
12 libinput \
13 libcutils \
14 libutils \
15 libbinder \
16 libui \
17 libstlport \
18 libskia
19
20static_libraries := \
21 libgtest \
22 libgtest_main
23
24$(foreach file,$(test_src_files), \
25 $(eval include $(CLEAR_VARS)) \
26 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
27 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
28 $(eval LOCAL_SRC_FILES := $(file)) \
29 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
30 $(eval include $(BUILD_NATIVE_TEST)) \
31)
32
33# Build the manual test programs.
34include $(call all-makefiles-under, $(LOCAL_PATH))