blob: 8f8c34b4f38c8f28deb0e63d1722fe0c7b1bca70 [file] [log] [blame]
Jeff Brownb4ff35d2011-01-02 16:37:43 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
Jeff Brownb4ff35d2011-01-02 16:37:43 -08005# Build the unit tests.
6test_src_files := \
7 InputReader_test.cpp \
8 InputDispatcher_test.cpp
9
10shared_libraries := \
11 libcutils \
Mathias Agopian83c64e62012-02-20 16:58:20 -080012 libandroidfw \
Jeff Brownb4ff35d2011-01-02 16:37:43 -080013 libutils \
14 libhardware \
15 libhardware_legacy \
16 libui \
Jeff Brownb4ff35d2011-01-02 16:37:43 -080017 libskia \
18 libstlport \
19 libinput
20
21static_libraries := \
22 libgtest \
23 libgtest_main
24
25c_includes := \
26 bionic \
27 bionic/libstdc++/include \
28 external/gtest/include \
29 external/stlport/stlport \
30 external/skia/include/core
31
32module_tags := eng tests
33
34$(foreach file,$(test_src_files), \
35 $(eval include $(CLEAR_VARS)) \
36 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
37 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
38 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
39 $(eval LOCAL_SRC_FILES := $(file)) \
40 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
41 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
42 $(eval include $(BUILD_EXECUTABLE)) \
43)
44
45# Build the manual test programs.
Ying Wangd84d6c72011-07-27 16:59:08 -070046include $(call all-makefiles-under, $(LOCAL_PATH))