blob: 8ae4b5dca3fec2889eaeece5b378f709acce7230 [file] [log] [blame]
Kenny Rootacc9e7d2010-06-18 19:06:50 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5test_src_files := \
6 VolumeManager_test.cpp
7
8shared_libraries := \
9 liblog \
10 libstlport \
11 libcrypto
12
13static_libraries := \
14 libvold \
15 libgtest \
16 libgtest_main
17
18c_includes := \
19 external/openssl/include \
20 bionic \
21 bionic/libstdc++/include \
22 external/gtest/include \
23 external/stlport/stlport
24
25module_tags := eng tests
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_C_INCLUDES := $(c_includes)) \
32 $(eval LOCAL_SRC_FILES := $(file)) \
33 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
34 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
35 $(eval include $(BUILD_EXECUTABLE)) \
36)