Android.mk revision 3e010f3138593cc6953039ee0e3db8ee31881296
1# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7    Region_test.cpp
8
9shared_libraries := \
10    libui
11
12static_libraries := \
13    libgtest \
14    libgtest_main
15
16$(foreach file,$(test_src_files), \
17    $(eval include $(CLEAR_VARS)) \
18    $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
19    $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
20    $(eval LOCAL_SRC_FILES := $(file)) \
21    $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
22    $(eval include $(BUILD_NATIVE_TEST)) \
23)
24
25# Build the unit tests.
26LOCAL_PATH:= $(call my-dir)
27include $(CLEAR_VARS)
28
29# Build the manual test programs.
30include $(call all-makefiles-under, $(LOCAL_PATH))
31