Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 1 | # Build the unit tests. |
Mathias Agopian | 20f6878 | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Jeff Brown | a50ee3e | 2010-07-14 22:40:08 -0700 | [diff] [blame] | 5 | # Build the unit tests. |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 6 | test_src_files := \ |
Jeff Brown | f4a4ec2 | 2010-06-16 01:53:36 -0700 | [diff] [blame] | 7 | InputChannel_test.cpp \ |
Jeff Brown | b2d4435 | 2011-02-17 13:01:34 -0800 | [diff] [blame] | 8 | InputEvent_test.cpp \ |
Jeff Brown | f4a4ec2 | 2010-06-16 01:53:36 -0700 | [diff] [blame] | 9 | InputPublisherAndConsumer_test.cpp |
Mathias Agopian | 20f6878 | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 10 | |
Jeff Brown | f69280e | 2010-06-14 15:44:41 -0700 | [diff] [blame] | 11 | shared_libraries := \ |
Mathias Agopian | 20f6878 | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 12 | libcutils \ |
| 13 | libutils \ |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 14 | libEGL \ |
| 15 | libbinder \ |
| 16 | libpixelflinger \ |
| 17 | libhardware \ |
| 18 | libhardware_legacy \ |
| 19 | libui \ |
Jeff Brown | b2d4435 | 2011-02-17 13:01:34 -0800 | [diff] [blame] | 20 | libstlport \ |
| 21 | libskia |
Mathias Agopian | 20f6878 | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 22 | |
Jeff Brown | f69280e | 2010-06-14 15:44:41 -0700 | [diff] [blame] | 23 | static_libraries := \ |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 24 | libgtest \ |
| 25 | libgtest_main |
Mathias Agopian | 20f6878 | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 26 | |
Jeff Brown | f69280e | 2010-06-14 15:44:41 -0700 | [diff] [blame] | 27 | c_includes := \ |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 28 | bionic \ |
| 29 | bionic/libstdc++/include \ |
| 30 | external/gtest/include \ |
Jeff Brown | b2d4435 | 2011-02-17 13:01:34 -0800 | [diff] [blame] | 31 | external/stlport/stlport \ |
| 32 | external/skia/include/core |
Mathias Agopian | 20f6878 | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 33 | |
Jeff Brown | f69280e | 2010-06-14 15:44:41 -0700 | [diff] [blame] | 34 | module_tags := eng tests |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 35 | |
| 36 | $(foreach file,$(test_src_files), \ |
Jeff Brown | f69280e | 2010-06-14 15:44:41 -0700 | [diff] [blame] | 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)) \ |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 41 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 42 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
Jeff Brown | f69280e | 2010-06-14 15:44:41 -0700 | [diff] [blame] | 43 | $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ |
Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 44 | $(eval include $(BUILD_EXECUTABLE)) \ |
| 45 | ) |
| 46 | |
| 47 | # Build the manual test programs. |
| 48 | include $(call all-subdir-makefiles) |