summaryrefslogtreecommitdiffstats
path: root/libs/utils/tests/Android.mk
blob: 45e8061afee815f3273a00678cb560eb2bc40313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Build the unit tests.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

test_src_files := \
	PollLoop_test.cpp

LOCAL_SHARED_LIBRARIES := \
	libz \
	liblog \
	libcutils \
	libutils \
	libstlport

LOCAL_STATIC_LIBRARIES := \
	libgtest \
	libgtest_main

LOCAL_C_INCLUDES := \
    external/zlib \
    external/icu4c/common \
    bionic \
    bionic/libstdc++/include \
    external/gtest/include \
    external/stlport/stlport

LOCAL_MODULE_TAGS := eng tests

$(foreach file,$(test_src_files), \
    $(eval LOCAL_SRC_FILES := $(file)) \
    $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
    $(eval include $(BUILD_EXECUTABLE)) \
)