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