blob: 8b8e1d87d1178c331035536656f83c70a63c36cb [file] [log] [blame]
Jeff Browne839a582010-04-22 18:58:52 -07001# Build the unit tests.
Chris Craik3e010f32013-02-25 19:12:47 -08002LOCAL_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.
Mathias Agopian20f68782009-05-11 00:03:41 -070026LOCAL_PATH:= $(call my-dir)
27include $(CLEAR_VARS)
28
Jeff Browne839a582010-04-22 18:58:52 -070029# Build the manual test programs.
Ying Wang0a1fdd72011-07-27 16:59:08 -070030include $(call all-makefiles-under, $(LOCAL_PATH))