blob: 693a32aa02909eb4a1a71220dc6d1d45b4491353 [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 Browna50ee3e2010-07-14 22:40:08 -07005# Build the unit tests.
Jeff Browne839a582010-04-22 18:58:52 -07006test_src_files := \
Jeff Brownf4a4ec22010-06-16 01:53:36 -07007 InputChannel_test.cpp \
Jeff Brownb2d44352011-02-17 13:01:34 -08008 InputEvent_test.cpp \
Jeff Brownf4a4ec22010-06-16 01:53:36 -07009 InputPublisherAndConsumer_test.cpp
Mathias Agopian20f68782009-05-11 00:03:41 -070010
Jeff Brownf69280e2010-06-14 15:44:41 -070011shared_libraries := \
Mathias Agopian20f68782009-05-11 00:03:41 -070012 libcutils \
13 libutils \
Jeff Browne839a582010-04-22 18:58:52 -070014 libEGL \
15 libbinder \
16 libpixelflinger \
17 libhardware \
18 libhardware_legacy \
19 libui \
Jeff Brownb2d44352011-02-17 13:01:34 -080020 libstlport \
21 libskia
Mathias Agopian20f68782009-05-11 00:03:41 -070022
Jeff Brownf69280e2010-06-14 15:44:41 -070023static_libraries := \
Jeff Browne839a582010-04-22 18:58:52 -070024 libgtest \
25 libgtest_main
Mathias Agopian20f68782009-05-11 00:03:41 -070026
Jeff Brownf69280e2010-06-14 15:44:41 -070027c_includes := \
Jeff Browne839a582010-04-22 18:58:52 -070028 bionic \
29 bionic/libstdc++/include \
30 external/gtest/include \
Jeff Brownb2d44352011-02-17 13:01:34 -080031 external/stlport/stlport \
32 external/skia/include/core
Mathias Agopian20f68782009-05-11 00:03:41 -070033
Jeff Brownf69280e2010-06-14 15:44:41 -070034module_tags := eng tests
Jeff Browne839a582010-04-22 18:58:52 -070035
36$(foreach file,$(test_src_files), \
Jeff Brownf69280e2010-06-14 15:44:41 -070037 $(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)) \
Jeff Browne839a582010-04-22 18:58:52 -070041 $(eval LOCAL_SRC_FILES := $(file)) \
42 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
Jeff Brownf69280e2010-06-14 15:44:41 -070043 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
Jeff Browne839a582010-04-22 18:58:52 -070044 $(eval include $(BUILD_EXECUTABLE)) \
45)
46
47# Build the manual test programs.
48include $(call all-subdir-makefiles)