blob: 5b2b5b1c186806d8f402ce1ab4656202bfba9760 [file] [log] [blame]
Jeff Brown66db6892010-04-22 18:58:52 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
Jeff Brown3f607c12010-07-14 22:40:08 -07005# Build the unit tests.
Jeff Brown66db6892010-04-22 18:58:52 -07006test_src_files := \
Kenny Root2fe13f12012-10-02 09:09:10 -07007 BasicHashtable_test.cpp \
8 BlobCache_test.cpp \
9 Looper_test.cpp \
10 String8_test.cpp \
11 Unicode_test.cpp \
12 Vector_test.cpp \
13 ZipFileRO_test.cpp
Jeff Brown66db6892010-04-22 18:58:52 -070014
Jeff Brown80d9c1c2010-06-14 15:44:41 -070015shared_libraries := \
Kenny Root2fe13f12012-10-02 09:09:10 -070016 libz \
17 liblog \
18 libcutils \
19 libutils \
20 libstlport
Jeff Brown66db6892010-04-22 18:58:52 -070021
Jeff Brown80d9c1c2010-06-14 15:44:41 -070022static_libraries := \
Kenny Root2fe13f12012-10-02 09:09:10 -070023 libgtest \
24 libgtest_main
Jeff Brown66db6892010-04-22 18:58:52 -070025
26$(foreach file,$(test_src_files), \
Jeff Brown80d9c1c2010-06-14 15:44:41 -070027 $(eval include $(CLEAR_VARS)) \
28 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
29 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
Jeff Brown66db6892010-04-22 18:58:52 -070030 $(eval LOCAL_SRC_FILES := $(file)) \
31 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Kenny Root2fe13f12012-10-02 09:09:10 -070032 $(eval include $(BUILD_NATIVE_TEST)) \
Jeff Brown66db6892010-04-22 18:58:52 -070033)