blob: f58b8f7a9c7c3078295a3b58b857f5703f3627fd [file] [log] [blame]
Andreas Gampe049249c2014-08-19 22:31:31 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5# Build the unit tests.
6test_src_files := \
7 InvalidCharsNativeBridge_test.cpp \
8 ReSetupNativeBridge_test.cpp \
9 UnavailableNativeBridge_test.cpp \
10 ValidNameNativeBridge_test.cpp
11
12shared_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)