blob: 9e9649cf3675c00666c5c8d2dfde1f8b3f167340 [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 Kamath378c6772014-01-20 13:57:11 +00009 ZipUtils_test.cpp \
10 ResourceTypes_test.cpp
Adam Lesinski16c4d152014-01-24 13:27:13 -080011
12shared_libraries := \
13 libandroidfw \
14 libcutils \
15 libutils \
16 libui \
17 libstlport
18
19static_libraries := \
20 libgtest \
21 libgtest_main
22
23$(foreach file,$(test_src_files), \
24 $(eval include $(CLEAR_VARS)) \
25 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
26 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
27 $(eval LOCAL_SRC_FILES := $(file)) \
28 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
29 $(eval include $(BUILD_NATIVE_TEST)) \
30)
31
32# Build the manual test programs.
33include $(call all-makefiles-under, $(LOCAL_PATH))