blob: cabbccb37e0479e6202ac283c4e36f27667e76ec [file] [log] [blame]
Jeff Brownb4ff35d2011-01-02 16:37:43 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5ifneq ($(TARGET_SIMULATOR),true)
6
7# Build the unit tests.
8test_src_files := \
9 InputReader_test.cpp \
10 InputDispatcher_test.cpp
11
12shared_libraries := \
13 libcutils \
14 libutils \
15 libhardware \
16 libhardware_legacy \
17 libui \
Jeff Brownb4ff35d2011-01-02 16:37:43 -080018 libskia \
19 libstlport \
20 libinput
21
22static_libraries := \
23 libgtest \
24 libgtest_main
25
26c_includes := \
27 bionic \
28 bionic/libstdc++/include \
29 external/gtest/include \
30 external/stlport/stlport \
31 external/skia/include/core
32
33module_tags := eng tests
34
35$(foreach file,$(test_src_files), \
36 $(eval include $(CLEAR_VARS)) \
37 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
38 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
39 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
40 $(eval LOCAL_SRC_FILES := $(file)) \
41 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
42 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
43 $(eval include $(BUILD_EXECUTABLE)) \
44)
45
46# Build the manual test programs.
47include $(call all-subdir-makefiles)
48
49endif