Android.mk revision e839a589bf582568cf220c1040ed93b948e6e362
1# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5test_src_files := \
6	PollLoop_test.cpp
7
8LOCAL_SHARED_LIBRARIES := \
9	libz \
10	liblog \
11	libcutils \
12	libutils \
13	libstlport
14
15LOCAL_STATIC_LIBRARIES := \
16	libgtest \
17	libgtest_main
18
19LOCAL_C_INCLUDES := \
20    external/zlib \
21    external/icu4c/common \
22    bionic \
23    bionic/libstdc++/include \
24    external/gtest/include \
25    external/stlport/stlport
26
27LOCAL_MODULE_TAGS := eng tests
28
29$(foreach file,$(test_src_files), \
30    $(eval LOCAL_SRC_FILES := $(file)) \
31    $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
32    $(eval include $(BUILD_EXECUTABLE)) \
33)
34