blob: 977ba80cd49ef10c65680ff258db531dab8f3c9c [file] [log] [blame]
Mathias Agopian83c64e62012-02-20 16:58:20 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
Mathias Agopian1f5762e2013-05-06 20:20:34 -07007 ObbFile_test.cpp \
Narayan Kamath48620f12014-01-20 13:57:11 +00008 ZipUtils_test.cpp \
9 ResourceTypes_test.cpp
Mathias Agopian83c64e62012-02-20 16:58:20 -080010
11shared_libraries := \
Kenny Rootf3f286d2012-10-02 10:52:47 -070012 libandroidfw \
13 libcutils \
14 libutils \
Kenny Rootf3f286d2012-10-02 10:52:47 -070015 libui \
Jeff Brown9d3b1a42013-07-01 19:07:15 -070016 libstlport
Mathias Agopian83c64e62012-02-20 16:58:20 -080017
18static_libraries := \
Kenny Rootf3f286d2012-10-02 10:52:47 -070019 libgtest \
20 libgtest_main
Mathias Agopian83c64e62012-02-20 16:58:20 -080021
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)) \
Mathias Agopian83c64e62012-02-20 16:58:20 -080026 $(eval LOCAL_SRC_FILES := $(file)) \
27 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Kenny Rootf3f286d2012-10-02 10:52:47 -070028 $(eval include $(BUILD_NATIVE_TEST)) \
Mathias Agopian83c64e62012-02-20 16:58:20 -080029)
30
31# Build the manual test programs.
32include $(call all-makefiles-under, $(LOCAL_PATH))