blob: 92ebfd7c3986b608391f4fcce0f0c6ca6958b8e8 [file] [log] [blame]
Jeff Brown66db6892010-04-22 18:58:52 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5test_src_files := \
6 PollLoop_test.cpp
7
Jeff Brown80d9c1c2010-06-14 15:44:41 -07008shared_libraries := \
Jeff Brown66db6892010-04-22 18:58:52 -07009 libz \
10 liblog \
11 libcutils \
12 libutils \
13 libstlport
14
Jeff Brown80d9c1c2010-06-14 15:44:41 -070015static_libraries := \
Jeff Brown66db6892010-04-22 18:58:52 -070016 libgtest \
17 libgtest_main
18
Jeff Brown80d9c1c2010-06-14 15:44:41 -070019c_includes := \
Jeff Brown66db6892010-04-22 18:58:52 -070020 external/zlib \
21 external/icu4c/common \
22 bionic \
23 bionic/libstdc++/include \
24 external/gtest/include \
25 external/stlport/stlport
26
Jeff Brown80d9c1c2010-06-14 15:44:41 -070027module_tags := eng tests
Jeff Brown66db6892010-04-22 18:58:52 -070028
29$(foreach file,$(test_src_files), \
Jeff Brown80d9c1c2010-06-14 15:44:41 -070030 $(eval include $(CLEAR_VARS)) \
31 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
32 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
33 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
Jeff Brown66db6892010-04-22 18:58:52 -070034 $(eval LOCAL_SRC_FILES := $(file)) \
35 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Jeff Brown80d9c1c2010-06-14 15:44:41 -070036 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
Jeff Brown66db6892010-04-22 18:58:52 -070037 $(eval include $(BUILD_EXECUTABLE)) \
38)