Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 1 | # Build the unit tests. |
Mathias Agopian | 6158b1b | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 5 | test_src_files := \ |
| 6 | InputDispatcher_test.cpp |
Mathias Agopian | 6158b1b | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 7 | |
Jeff Brown | f1d3802 | 2010-06-14 15:44:41 -0700 | [diff] [blame^] | 8 | shared_libraries := \ |
Mathias Agopian | 6158b1b | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 9 | libcutils \ |
| 10 | libutils \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 11 | libEGL \ |
| 12 | libbinder \ |
| 13 | libpixelflinger \ |
| 14 | libhardware \ |
| 15 | libhardware_legacy \ |
| 16 | libui \ |
| 17 | libstlport |
Mathias Agopian | 6158b1b | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 18 | |
Jeff Brown | f1d3802 | 2010-06-14 15:44:41 -0700 | [diff] [blame^] | 19 | static_libraries := \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 20 | libgtest \ |
| 21 | libgtest_main |
Mathias Agopian | 6158b1b | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 22 | |
Jeff Brown | f1d3802 | 2010-06-14 15:44:41 -0700 | [diff] [blame^] | 23 | c_includes := \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 24 | bionic \ |
| 25 | bionic/libstdc++/include \ |
| 26 | external/gtest/include \ |
| 27 | external/stlport/stlport |
Mathias Agopian | 6158b1b | 2009-05-11 00:03:41 -0700 | [diff] [blame] | 28 | |
Jeff Brown | f1d3802 | 2010-06-14 15:44:41 -0700 | [diff] [blame^] | 29 | module_tags := eng tests |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 30 | |
| 31 | $(foreach file,$(test_src_files), \ |
Jeff Brown | f1d3802 | 2010-06-14 15:44:41 -0700 | [diff] [blame^] | 32 | $(eval include $(CLEAR_VARS)) \ |
| 33 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 34 | $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ |
| 35 | $(eval LOCAL_C_INCLUDES := $(c_includes)) \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 36 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 37 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
Jeff Brown | f1d3802 | 2010-06-14 15:44:41 -0700 | [diff] [blame^] | 38 | $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 39 | $(eval include $(BUILD_EXECUTABLE)) \ |
| 40 | ) |
| 41 | |
| 42 | # Build the manual test programs. |
| 43 | include $(call all-subdir-makefiles) |