blob: 018f18d4b9ddec7ca9b8b572b196fd2ca1119f12 [file] [log] [blame]
Jeff Browne839a582010-04-22 18:58:52 -07001# Build the unit tests.
Mathias Agopian20f68782009-05-11 00:03:41 -07002LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
Jeff Browne839a582010-04-22 18:58:52 -07005test_src_files := \
6 InputDispatcher_test.cpp
Mathias Agopian20f68782009-05-11 00:03:41 -07007
8LOCAL_SHARED_LIBRARIES := \
9 libcutils \
10 libutils \
Jeff Browne839a582010-04-22 18:58:52 -070011 libEGL \
12 libbinder \
13 libpixelflinger \
14 libhardware \
15 libhardware_legacy \
16 libui \
17 libstlport
Mathias Agopian20f68782009-05-11 00:03:41 -070018
Jeff Browne839a582010-04-22 18:58:52 -070019LOCAL_STATIC_LIBRARIES := \
20 libgtest \
21 libgtest_main
Mathias Agopian20f68782009-05-11 00:03:41 -070022
Jeff Browne839a582010-04-22 18:58:52 -070023LOCAL_C_INCLUDES := \
24 bionic \
25 bionic/libstdc++/include \
26 external/gtest/include \
27 external/stlport/stlport
Mathias Agopian20f68782009-05-11 00:03:41 -070028
Jeff Browne839a582010-04-22 18:58:52 -070029LOCAL_MODULE_TAGS := eng tests
30
31$(foreach file,$(test_src_files), \
32 $(eval LOCAL_SRC_FILES := $(file)) \
33 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
34 $(eval include $(BUILD_EXECUTABLE)) \
35)
36
37# Build the manual test programs.
38include $(call all-subdir-makefiles)