blob: ab03d87ec720cb045ac0f491e574d9904996ba2a [file] [log] [blame]
Jeff Brown66db6892010-04-22 18:58:52 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
Jeff Brown66db6892010-04-22 18:58:52 -07003
Jeff Brown3f607c12010-07-14 22:40:08 -07004# Build the unit tests.
Jeff Brown66db6892010-04-22 18:58:52 -07005test_src_files := \
Kenny Root2fe13f12012-10-02 09:09:10 -07006 BasicHashtable_test.cpp \
7 BlobCache_test.cpp \
Michael Wrightd614ee42013-05-21 14:11:34 -07008 BitSet_test.cpp \
Kenny Root2fe13f12012-10-02 09:09:10 -07009 Looper_test.cpp \
Raph Levienb6ea1752012-10-25 23:11:13 -070010 LruCache_test.cpp \
Kenny Root2fe13f12012-10-02 09:09:10 -070011 String8_test.cpp \
12 Unicode_test.cpp \
Mathias Agopian9eb2a3b2013-05-06 20:20:50 -070013 Vector_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 \
Jeff Brown66db6892010-04-22 18:58:52 -070020
21$(foreach file,$(test_src_files), \
Jeff Brown80d9c1c2010-06-14 15:44:41 -070022 $(eval include $(CLEAR_VARS)) \
23 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
24 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
Jeff Brown66db6892010-04-22 18:58:52 -070025 $(eval LOCAL_SRC_FILES := $(file)) \
26 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Kenny Root2fe13f12012-10-02 09:09:10 -070027 $(eval include $(BUILD_NATIVE_TEST)) \
Jeff Brown66db6892010-04-22 18:58:52 -070028)