blob: 05222128f3fc96041892865f0a3e59360abbebf6 [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 \
8 ZipFileRO_test.cpp
Mathias Agopian83c64e62012-02-20 16:58:20 -08009
10shared_libraries := \
Kenny Rootf3f286d2012-10-02 10:52:47 -070011 libandroidfw \
12 libcutils \
13 libutils \
Kenny Rootf3f286d2012-10-02 10:52:47 -070014 libui \
Jeff Brown9d3b1a42013-07-01 19:07:15 -070015 libstlport
Mathias Agopian83c64e62012-02-20 16:58:20 -080016
17static_libraries := \
Kenny Rootf3f286d2012-10-02 10:52:47 -070018 libgtest \
19 libgtest_main
Mathias Agopian83c64e62012-02-20 16:58:20 -080020
21$(foreach file,$(test_src_files), \
22 $(eval include $(CLEAR_VARS)) \
23 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
24 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
Mathias Agopian83c64e62012-02-20 16:58:20 -080025 $(eval LOCAL_SRC_FILES := $(file)) \
26 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Kenny Rootf3f286d2012-10-02 10:52:47 -070027 $(eval include $(BUILD_NATIVE_TEST)) \
Mathias Agopian83c64e62012-02-20 16:58:20 -080028)
29
30# Build the manual test programs.
31include $(call all-makefiles-under, $(LOCAL_PATH))