blob: b0c57db984b419580606a63b6f3a9a841dd3a8cb [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 := \
Mathias Agopian595ea772013-08-21 23:10:41 -07007 Region_test.cpp \
8 vec_test.cpp \
9 mat_test.cpp
Chris Craik3e010f32013-02-25 19:12:47 -080010
11shared_libraries := \
Mathias Agopian595ea772013-08-21 23:10:41 -070012 libutils \
Chris Craik3e010f32013-02-25 19:12:47 -080013 libui
14
15static_libraries := \
16 libgtest \
17 libgtest_main
18
19$(foreach file,$(test_src_files), \
20 $(eval include $(CLEAR_VARS)) \
21 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
22 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
23 $(eval LOCAL_SRC_FILES := $(file)) \
24 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
25 $(eval include $(BUILD_NATIVE_TEST)) \
26)
27
28# Build the unit tests.
Mathias Agopian20f68782009-05-11 00:03:41 -070029
Jeff Browne839a582010-04-22 18:58:52 -070030# Build the manual test programs.
Ying Wang0a1fdd72011-07-27 16:59:08 -070031include $(call all-makefiles-under, $(LOCAL_PATH))