Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 1 | # Build the unit tests. |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | # Build the unit tests. |
| 6 | test_src_files := \ |
| 7 | InputChannel_test.cpp \ |
| 8 | InputEvent_test.cpp \ |
| 9 | InputPublisherAndConsumer_test.cpp \ |
Colin Cross | a982dc0 | 2012-03-22 18:43:07 -0700 | [diff] [blame^] | 10 | ObbFile_test.cpp |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 11 | |
| 12 | shared_libraries := \ |
| 13 | libandroidfw \ |
| 14 | libcutils \ |
| 15 | libutils \ |
| 16 | libbinder \ |
| 17 | libui \ |
| 18 | libstlport \ |
| 19 | libskia |
| 20 | |
| 21 | static_libraries := \ |
| 22 | libgtest \ |
| 23 | libgtest_main |
| 24 | |
| 25 | c_includes := \ |
| 26 | bionic \ |
| 27 | bionic/libstdc++/include \ |
| 28 | external/gtest/include \ |
| 29 | external/stlport/stlport \ |
| 30 | external/skia/include/core |
| 31 | |
| 32 | module_tags := eng tests |
| 33 | |
| 34 | $(foreach file,$(test_src_files), \ |
| 35 | $(eval include $(CLEAR_VARS)) \ |
| 36 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 37 | $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ |
| 38 | $(eval LOCAL_C_INCLUDES := $(c_includes)) \ |
| 39 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 40 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
| 41 | $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ |
| 42 | $(eval include $(BUILD_EXECUTABLE)) \ |
| 43 | ) |
| 44 | |
| 45 | # Build the manual test programs. |
| 46 | include $(call all-makefiles-under, $(LOCAL_PATH)) |