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 \ |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 12 | CompleteFlow_test.cpp \ |
Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 13 | InvalidCharsNativeBridge_test.cpp \ |
Andreas Gampe | 04054e2 | 2014-09-25 22:33:01 -0700 | [diff] [blame] | 14 | NeedsNativeBridge_test.cpp \ |
| 15 | PreInitializeNativeBridge_test.cpp \ |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 16 | PreInitializeNativeBridgeFail1_test.cpp \ |
| 17 | PreInitializeNativeBridgeFail2_test.cpp \ |
Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 18 | ReSetupNativeBridge_test.cpp \ |
| 19 | UnavailableNativeBridge_test.cpp \ |
| 20 | ValidNameNativeBridge_test.cpp |
| 21 | |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 22 | |
Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 23 | shared_libraries := \ |
| 24 | liblog \ |
Calin Juravle | f9d9e2a | 2014-10-17 13:45:39 +0100 | [diff] [blame] | 25 | libnativebridge \ |
| 26 | libnativebridge-dummy |
Andreas Gampe | cd2ef4c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 27 | |
| 28 | $(foreach file,$(test_src_files), \ |
| 29 | $(eval include $(CLEAR_VARS)) \ |
| 30 | $(eval LOCAL_CLANG := true) \ |
| 31 | $(eval LOCAL_CPPFLAGS := -std=gnu++11) \ |
| 32 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 33 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 34 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
| 35 | $(eval include $(BUILD_NATIVE_TEST)) \ |
| 36 | ) |
| 37 | |
| 38 | $(foreach file,$(test_src_files), \ |
| 39 | $(eval include $(CLEAR_VARS)) \ |
| 40 | $(eval LOCAL_CLANG := true) \ |
| 41 | $(eval LOCAL_CPPFLAGS := -std=gnu++11) \ |
| 42 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 43 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 44 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
| 45 | $(eval include $(BUILD_HOST_NATIVE_TEST)) \ |
Andreas Gampe | 049249c | 2014-08-19 22:31:31 -0700 | [diff] [blame] | 46 | ) |