blob: 9278f413c3a08a92016c1c2263b4f469b4d9cb46 [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 \
Ying Wangd6858942013-04-09 21:54:12 -070012 liblog \
Mathias Agopian83c64e62012-02-20 16:58:20 -080013 libandroidfw \
Jeff Brownb4ff35d2011-01-02 16:37:43 -080014 libutils \
15 libhardware \
16 libhardware_legacy \
17 libui \
Jeff Brownb4ff35d2011-01-02 16:37:43 -080018 libskia \
19 libstlport \
Jeff Brown9d3b1a42013-07-01 19:07:15 -070020 libinput \
21 libinputservice
Jeff Brownb4ff35d2011-01-02 16:37:43 -080022
23static_libraries := \
24 libgtest \
25 libgtest_main
26
27c_includes := \
28 bionic \
29 bionic/libstdc++/include \
30 external/gtest/include \
31 external/stlport/stlport \
32 external/skia/include/core
33
34module_tags := eng tests
35
36$(foreach file,$(test_src_files), \
37 $(eval include $(CLEAR_VARS)) \
38 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
39 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
40 $(eval LOCAL_C_INCLUDES := $(c_includes)) \
41 $(eval LOCAL_SRC_FILES := $(file)) \
42 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
43 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
Brett Chabot1bff36f2013-05-16 23:07:47 -070044 $(eval include $(BUILD_NATIVE_TEST)) \
Jeff Brownb4ff35d2011-01-02 16:37:43 -080045)
46
47# Build the manual test programs.
Ying Wangd84d6c72011-07-27 16:59:08 -070048include $(call all-makefiles-under, $(LOCAL_PATH))