blob: f1b8cd56ee126d22a8ef2a151965080dbf63b702 [file] [log] [blame]
Jeff Browne839a582010-04-22 18:58:52 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5test_src_files := \
Kenny Rootb94a9a62010-06-01 10:34:29 -07006 ObbFile_test.cpp \
Jeff Browne839a582010-04-22 18:58:52 -07007 PollLoop_test.cpp
8
Jeff Brownf69280e2010-06-14 15:44:41 -07009shared_libraries := \
Jeff Browne839a582010-04-22 18:58:52 -070010 libz \
11 liblog \
12 libcutils \
13 libutils \
14 libstlport
15
Jeff Brownf69280e2010-06-14 15:44:41 -070016static_libraries := \
Jeff Browne839a582010-04-22 18:58:52 -070017 libgtest \
18 libgtest_main
19
Jeff Brownf69280e2010-06-14 15:44:41 -070020c_includes := \
Jeff Browne839a582010-04-22 18:58:52 -070021 external/zlib \
22 external/icu4c/common \
23 bionic \
24 bionic/libstdc++/include \
25 external/gtest/include \
26 external/stlport/stlport
27
Jeff Brownf69280e2010-06-14 15:44:41 -070028module_tags := eng tests
Jeff Browne839a582010-04-22 18:58:52 -070029
30$(foreach file,$(test_src_files), \
Jeff Brownf69280e2010-06-14 15:44:41 -070031 $(eval include $(CLEAR_VARS)) \
32 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
33 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
34 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
Jeff Browne839a582010-04-22 18:58:52 -070035 $(eval LOCAL_SRC_FILES := $(file)) \
36 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Jeff Brownf69280e2010-06-14 15:44:41 -070037 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
Jeff Browne839a582010-04-22 18:58:52 -070038 $(eval include $(BUILD_EXECUTABLE)) \
39)