blob: 4c3e862981159fb07584901cae3d82dce2a533f4 [file] [log] [blame]
Andreas Gampecd2ef4c2014-08-19 22:31:31 -07001# Build the unit tests.
2LOCAL_PATH := $(call my-dir)
Calin Juravlef9d9e2a2014-10-17 13:45:39 +01003
4include $(LOCAL_PATH)/Android.nativebridge-dummy.mk
5
Andreas Gampecd2ef4c2014-08-19 22:31:31 -07006include $(CLEAR_VARS)
7
8# Build the unit tests.
9test_src_files := \
Calin Juravle59a719c2014-10-28 12:43:24 +000010 CodeCacheCreate_test.cpp \
11 CodeCacheExists_test.cpp \
jgu21cef898f2015-07-02 12:02:11 +080012 CodeCacheStatFail_test.cpp \
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010013 CompleteFlow_test.cpp \
Andreas Gampecd2ef4c2014-08-19 22:31:31 -070014 InvalidCharsNativeBridge_test.cpp \
Andreas Gampea6ac9ce2015-04-30 20:39:12 -070015 NativeBridge2Signal_test.cpp \
16 NativeBridgeVersion_test.cpp \
Andreas Gampe04054e22014-09-25 22:33:01 -070017 NeedsNativeBridge_test.cpp \
18 PreInitializeNativeBridge_test.cpp \
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010019 PreInitializeNativeBridgeFail1_test.cpp \
20 PreInitializeNativeBridgeFail2_test.cpp \
Andreas Gampecd2ef4c2014-08-19 22:31:31 -070021 ReSetupNativeBridge_test.cpp \
22 UnavailableNativeBridge_test.cpp \
Zhenhua WANGf2804e52016-05-30 11:16:08 +080023 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 Gampecd2ef4c2014-08-19 22:31:31 -070030
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010031
Andreas Gampecd2ef4c2014-08-19 22:31:31 -070032shared_libraries := \
33 liblog \
Calin Juravlef9d9e2a2014-10-17 13:45:39 +010034 libnativebridge \
35 libnativebridge-dummy
Andreas Gampecd2ef4c2014-08-19 22:31:31 -070036
37$(foreach file,$(test_src_files), \
38 $(eval include $(CLEAR_VARS)) \
39 $(eval LOCAL_CLANG := true) \
Andreas Gampecd2ef4c2014-08-19 22:31:31 -070040 $(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 Gampecd2ef4c2014-08-19 22:31:31 -070049 $(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 Gampe049249c2014-08-19 22:31:31 -070053)