| Mike Lockwood | f99ad11 | 2013-10-03 10:29:39 -0700 | [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 | BackupData_test.cpp \ | 
|  | 8 | ObbFile_test.cpp \ | 
| Narayan Kamath | aae73e7 | 2013-12-03 13:16:03 +0000 | [diff] [blame] | 9 | ZipUtils_test.cpp | 
| Mike Lockwood | f99ad11 | 2013-10-03 10:29:39 -0700 | [diff] [blame] | 10 |  | 
|  | 11 | shared_libraries := \ | 
|  | 12 | libandroidfw \ | 
|  | 13 | libcutils \ | 
|  | 14 | libutils \ | 
|  | 15 | libui \ | 
|  | 16 | libstlport | 
|  | 17 |  | 
|  | 18 | static_libraries := \ | 
|  | 19 | libgtest \ | 
|  | 20 | libgtest_main | 
|  | 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)) \ | 
|  | 26 | $(eval LOCAL_SRC_FILES := $(file)) \ | 
|  | 27 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ | 
|  | 28 | $(eval include $(BUILD_NATIVE_TEST)) \ | 
|  | 29 | ) | 
|  | 30 |  | 
|  | 31 | # Build the manual test programs. | 
|  | 32 | include $(call all-makefiles-under, $(LOCAL_PATH)) |