blob: 6e6522c149f5ab9753a6650363caca214dea3977 [file] [log] [blame]
Adam Lesinski16c4d152014-01-24 13:27:13 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7 BackupData_test.cpp \
8 ObbFile_test.cpp \
Narayan Kamath560566d2013-12-03 13:16:03 +00009 ZipUtils_test.cpp
Adam Lesinski16c4d152014-01-24 13:27:13 -080010
11shared_libraries := \
12 libandroidfw \
13 libcutils \
14 libutils \
15 libui \
16 libstlport
17
18static_libraries := \
19 libgtest \
20 libgtest_main
21
22$(foreach file,$(test_src_files), \
23 $(eval include $(CLEAR_VARS)) \
24 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
25 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
26 $(eval LOCAL_SRC_FILES := $(file)) \
27 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
28 $(eval include $(BUILD_NATIVE_TEST)) \
29)
30
31# Build the manual test programs.
32include $(call all-makefiles-under, $(LOCAL_PATH))