2012-02-20 16:58:20 -08:00
|
|
|
# Build the unit tests.
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
# Build the unit tests.
|
|
|
|
test_src_files := \
|
|
|
|
InputChannel_test.cpp \
|
|
|
|
InputEvent_test.cpp \
|
|
|
|
InputPublisherAndConsumer_test.cpp \
|
2013-05-06 20:20:34 -07:00
|
|
|
ObbFile_test.cpp \
|
|
|
|
ZipFileRO_test.cpp
|
2012-02-20 16:58:20 -08:00
|
|
|
|
|
|
|
shared_libraries := \
|
2012-10-02 10:52:47 -07:00
|
|
|
libandroidfw \
|
|
|
|
libcutils \
|
|
|
|
libutils \
|
|
|
|
libbinder \
|
|
|
|
libui \
|
|
|
|
libstlport \
|
|
|
|
libskia
|
2012-02-20 16:58:20 -08:00
|
|
|
|
|
|
|
static_libraries := \
|
2012-10-02 10:52:47 -07:00
|
|
|
libgtest \
|
|
|
|
libgtest_main
|
2012-02-20 16:58:20 -08:00
|
|
|
|
|
|
|
$(foreach file,$(test_src_files), \
|
|
|
|
$(eval include $(CLEAR_VARS)) \
|
|
|
|
$(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
|
|
|
|
$(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
|
|
|
|
$(eval LOCAL_SRC_FILES := $(file)) \
|
|
|
|
$(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
|
2012-10-02 10:52:47 -07:00
|
|
|
$(eval include $(BUILD_NATIVE_TEST)) \
|
2012-02-20 16:58:20 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Build the manual test programs.
|
|
|
|
include $(call all-makefiles-under, $(LOCAL_PATH))
|