| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 1 | # Build the unit tests. | 
|  | 2 | LOCAL_PATH := $(call my-dir) | 
| Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 3 |  | 
|  | 4 | include $(LOCAL_PATH)/Android.nativebridge-dummy.mk | 
|  | 5 |  | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 6 | include $(CLEAR_VARS) | 
|  | 7 |  | 
|  | 8 | # Build the unit tests. | 
|  | 9 | test_src_files := \ | 
| Calin Juravle | 59a719c | 2014-10-28 12:43:24 +0000 | [diff] [blame] | 10 | CodeCacheCreate_test.cpp \ | 
|  | 11 | CodeCacheExists_test.cpp \ | 
| jgu21 | cef898f | 2015-07-02 12:02:11 +0800 | [diff] [blame] | 12 | CodeCacheStatFail_test.cpp \ | 
| Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 13 | CompleteFlow_test.cpp \ | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 14 | InvalidCharsNativeBridge_test.cpp \ | 
| Andreas Gampe | a6ac9ce | 2015-04-30 20:39:12 -0700 | [diff] [blame] | 15 | NativeBridge2Signal_test.cpp \ | 
|  | 16 | NativeBridgeVersion_test.cpp \ | 
| Andreas Gampe | 04054e2 | 2014-09-25 22:33:01 -0700 | [diff] [blame] | 17 | NeedsNativeBridge_test.cpp \ | 
|  | 18 | PreInitializeNativeBridge_test.cpp \ | 
| Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 19 | PreInitializeNativeBridgeFail1_test.cpp \ | 
|  | 20 | PreInitializeNativeBridgeFail2_test.cpp \ | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 21 | ReSetupNativeBridge_test.cpp \ | 
|  | 22 | UnavailableNativeBridge_test.cpp \ | 
| Zhenhua WANG | f2804e5 | 2016-05-30 11:16:08 +0800 | [diff] [blame] | 23 | ValidNameNativeBridge_test.cpp \ | 
|  | 24 | NativeBridge3UnloadLibrary_test.cpp \ | 
|  | 25 | NativeBridge3GetError_test.cpp \ | 
|  | 26 | NativeBridge3IsPathSupported_test.cpp \ | 
|  | 27 | NativeBridge3InitNamespace_test.cpp \ | 
|  | 28 | NativeBridge3CreateNamespace_test.cpp \ | 
|  | 29 | NativeBridge3LoadLibraryExt_test.cpp | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 30 |  | 
| Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 31 |  | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 32 | shared_libraries := \ | 
|  | 33 | liblog \ | 
| Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 34 | libnativebridge \ | 
|  | 35 | libnativebridge-dummy | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 36 |  | 
|  | 37 | $(foreach file,$(test_src_files), \ | 
|  | 38 | $(eval include $(CLEAR_VARS)) \ | 
|  | 39 | $(eval LOCAL_CLANG := true) \ | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 40 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ | 
|  | 41 | $(eval LOCAL_SRC_FILES := $(file)) \ | 
|  | 42 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ | 
|  | 43 | $(eval include $(BUILD_NATIVE_TEST)) \ | 
|  | 44 | ) | 
|  | 45 |  | 
|  | 46 | $(foreach file,$(test_src_files), \ | 
|  | 47 | $(eval include $(CLEAR_VARS)) \ | 
|  | 48 | $(eval LOCAL_CLANG := true) \ | 
| Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 49 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ | 
|  | 50 | $(eval LOCAL_SRC_FILES := $(file)) \ | 
|  | 51 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ | 
|  | 52 | $(eval include $(BUILD_HOST_NATIVE_TEST)) \ | 
| Andreas Gampe | 049249c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 53 | ) |