1LOCAL_PATH:= $(call my-dir) 2 3NATIVE_BRIDGE_COMMON_SRC_FILES := \ 4 DummyNativeBridge.cpp 5 6# Shared library for target 7# ======================================================== 8include $(CLEAR_VARS) 9 10LOCAL_MODULE:= libnativebridge-dummy 11 12LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) 13LOCAL_CLANG := true 14LOCAL_CFLAGS += -Werror -Wall 15LOCAL_CPPFLAGS := -fvisibility=protected 16LOCAL_SHARED_LIBRARIES := libdl 17LOCAL_MULTILIB := both 18 19include $(BUILD_SHARED_LIBRARY) 20 21# Shared library for host 22# ======================================================== 23include $(CLEAR_VARS) 24 25LOCAL_MODULE:= libnativebridge-dummy 26 27LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) 28LOCAL_CLANG := true 29LOCAL_CFLAGS += -Werror -Wall 30LOCAL_CPPFLAGS := -fvisibility=protected 31LOCAL_LDFLAGS := -ldl 32LOCAL_MULTILIB := both 33 34include $(BUILD_HOST_SHARED_LIBRARY) 35 36 37# v2. 38 39NATIVE_BRIDGE2_COMMON_SRC_FILES := \ 40 DummyNativeBridge2.cpp 41 42# Shared library for target 43# ======================================================== 44include $(CLEAR_VARS) 45 46LOCAL_MODULE:= libnativebridge2-dummy 47 48LOCAL_SRC_FILES:= $(NATIVE_BRIDGE2_COMMON_SRC_FILES) 49LOCAL_CLANG := true 50LOCAL_CFLAGS += -Werror -Wall 51LOCAL_CPPFLAGS := -fvisibility=protected 52LOCAL_SHARED_LIBRARIES := libdl 53LOCAL_MULTILIB := both 54 55include $(BUILD_SHARED_LIBRARY) 56 57# Shared library for host 58# ======================================================== 59include $(CLEAR_VARS) 60 61LOCAL_MODULE:= libnativebridge2-dummy 62 63LOCAL_SRC_FILES:= $(NATIVE_BRIDGE2_COMMON_SRC_FILES) 64LOCAL_CLANG := true 65LOCAL_CFLAGS += -Werror -Wall 66LOCAL_CPPFLAGS := -fvisibility=protected 67LOCAL_LDFLAGS := -ldl 68LOCAL_MULTILIB := both 69 70include $(BUILD_HOST_SHARED_LIBRARY) 71 72 73# v3. 74 75NATIVE_BRIDGE3_COMMON_SRC_FILES := \ 76 DummyNativeBridge3.cpp 77 78# Shared library for target 79# ======================================================== 80include $(CLEAR_VARS) 81 82LOCAL_MODULE:= libnativebridge3-dummy 83 84LOCAL_SRC_FILES:= $(NATIVE_BRIDGE3_COMMON_SRC_FILES) 85LOCAL_CLANG := true 86LOCAL_CFLAGS += -Werror -Wall 87LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected 88LOCAL_LDFLAGS := -ldl 89LOCAL_MULTILIB := both 90 91include $(BUILD_SHARED_LIBRARY) 92 93# Shared library for host 94# ======================================================== 95include $(CLEAR_VARS) 96 97LOCAL_MODULE:= libnativebridge3-dummy 98 99LOCAL_SRC_FILES:= $(NATIVE_BRIDGE3_COMMON_SRC_FILES) 100LOCAL_CLANG := true 101LOCAL_CFLAGS += -Werror -Wall 102LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected 103LOCAL_LDFLAGS := -ldl 104LOCAL_MULTILIB := both 105 106include $(BUILD_HOST_SHARED_LIBRARY) 107 108 109