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 := \ |
Mathias Agopian | 1f5762e | 2013-05-06 20:20:34 -0700 | [diff] [blame] | 7 | ObbFile_test.cpp \ |
Narayan Kamath | 48620f1 | 2014-01-20 13:57:11 +0000 | [diff] [blame] | 8 | ZipUtils_test.cpp \ |
| 9 | ResourceTypes_test.cpp |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 10 | |
| 11 | shared_libraries := \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame] | 12 | libandroidfw \ |
| 13 | libcutils \ |
| 14 | libutils \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame] | 15 | libui \ |
Jeff Brown | 9d3b1a4 | 2013-07-01 19:07:15 -0700 | [diff] [blame] | 16 | libstlport |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 17 | |
| 18 | static_libraries := \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame] | 19 | libgtest \ |
| 20 | libgtest_main |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 21 | |
| 22 | $(foreach file,$(test_src_files), \ |
| 23 | $(eval include $(CLEAR_VARS)) \ |
| 24 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 25 | $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 26 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 27 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
Kenny Root | f3f286d | 2012-10-02 10:52:47 -0700 | [diff] [blame] | 28 | $(eval include $(BUILD_NATIVE_TEST)) \ |
Mathias Agopian | 83c64e6 | 2012-02-20 16:58:20 -0800 | [diff] [blame] | 29 | ) |
| 30 | |
| 31 | # Build the manual test programs. |
| 32 | include $(call all-makefiles-under, $(LOCAL_PATH)) |