Jeff Brown | e839a58 | 2010-04-22 18:58:52 -0700 | [diff] [blame^] | 1 | # Build the unit tests. |
| 2 | LOCAL_PATH := $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | test_src_files := \ |
| 6 | PollLoop_test.cpp |
| 7 | |
| 8 | LOCAL_SHARED_LIBRARIES := \ |
| 9 | libz \ |
| 10 | liblog \ |
| 11 | libcutils \ |
| 12 | libutils \ |
| 13 | libstlport |
| 14 | |
| 15 | LOCAL_STATIC_LIBRARIES := \ |
| 16 | libgtest \ |
| 17 | libgtest_main |
| 18 | |
| 19 | LOCAL_C_INCLUDES := \ |
| 20 | external/zlib \ |
| 21 | external/icu4c/common \ |
| 22 | bionic \ |
| 23 | bionic/libstdc++/include \ |
| 24 | external/gtest/include \ |
| 25 | external/stlport/stlport |
| 26 | |
| 27 | LOCAL_MODULE_TAGS := eng tests |
| 28 | |
| 29 | $(foreach file,$(test_src_files), \ |
| 30 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 31 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
| 32 | $(eval include $(BUILD_EXECUTABLE)) \ |
| 33 | ) |