Andreas Gampe | 049249c | 2014-08-19 22:31:31 -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 | InvalidCharsNativeBridge_test.cpp \ |
| 8 | ReSetupNativeBridge_test.cpp \ |
| 9 | UnavailableNativeBridge_test.cpp \ |
| 10 | ValidNameNativeBridge_test.cpp |
| 11 | |
| 12 | shared_libraries := \ |
| 13 | libnativebridge |
| 14 | |
| 15 | $(foreach file,$(test_src_files), \ |
| 16 | $(eval include $(CLEAR_VARS)) \ |
| 17 | $(eval LOCAL_CLANG := true) \ |
| 18 | $(eval LOCAL_CPPFLAGS := -std=gnu++11) \ |
| 19 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 20 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 21 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
| 22 | $(eval include $(BUILD_NATIVE_TEST)) \ |
| 23 | ) |
| 24 | |
| 25 | $(foreach file,$(test_src_files), \ |
| 26 | $(eval include $(CLEAR_VARS)) \ |
| 27 | $(eval LOCAL_CLANG := true) \ |
| 28 | $(eval LOCAL_CPPFLAGS := -std=gnu++11) \ |
| 29 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ |
| 30 | $(eval LOCAL_SRC_FILES := $(file)) \ |
| 31 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ |
| 32 | $(eval include $(BUILD_HOST_NATIVE_TEST)) \ |
| 33 | ) |