1# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7    BasicHashtable_test.cpp \
8    BlobCache_test.cpp \
9    BitSet_test.cpp \
10    Looper_test.cpp \
11    LruCache_test.cpp \
12    String8_test.cpp \
13    Unicode_test.cpp \
14    Vector_test.cpp
15
16shared_libraries := \
17    libz \
18    liblog \
19    libcutils \
20    libutils \
21    libstlport
22
23static_libraries := \
24    libgtest \
25    libgtest_main
26
27$(foreach file,$(test_src_files), \
28    $(eval include $(CLEAR_VARS)) \
29    $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
30    $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
31    $(eval LOCAL_SRC_FILES := $(file)) \
32    $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
33    $(eval include $(BUILD_NATIVE_TEST)) \
34)
35