Android.mk revision f3f286df4d79834ec350bdc18d01acd51f4791e1
1# 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    ObbFile_test.cpp
11
12shared_libraries := \
13    libandroidfw \
14    libcutils \
15    libutils \
16    libbinder \
17    libui \
18    libstlport \
19    libskia
20
21static_libraries := \
22    libgtest \
23    libgtest_main
24
25$(foreach file,$(test_src_files), \
26    $(eval include $(CLEAR_VARS)) \
27    $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
28    $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
29    $(eval LOCAL_SRC_FILES := $(file)) \
30    $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
31    $(eval include $(BUILD_NATIVE_TEST)) \
32)
33
34# Build the manual test programs.
35include $(call all-makefiles-under, $(LOCAL_PATH))
36