1LOCAL_PATH:= $(call my-dir) 2 3NATIVE_BRIDGE_COMMON_SRC_FILES := \ 4 native_bridge.cc 5 6# Shared library for target 7# ======================================================== 8include $(CLEAR_VARS) 9 10LOCAL_MODULE:= libnativebridge 11 12LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) 13LOCAL_SHARED_LIBRARIES := liblog 14LOCAL_CLANG := true 15LOCAL_CPP_EXTENSION := .cc 16LOCAL_CFLAGS += -Werror -Wall 17LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected 18LOCAL_LDFLAGS := -ldl 19LOCAL_MULTILIB := both 20 21include $(BUILD_SHARED_LIBRARY) 22 23# Shared library for host 24# ======================================================== 25include $(CLEAR_VARS) 26 27LOCAL_MODULE:= libnativebridge 28 29LOCAL_SRC_FILES:= $(NATIVE_BRIDGE_COMMON_SRC_FILES) 30LOCAL_SHARED_LIBRARIES := liblog 31LOCAL_CLANG := true 32LOCAL_CPP_EXTENSION := .cc 33LOCAL_CFLAGS += -Werror -Wall 34LOCAL_CPPFLAGS := -std=gnu++11 -fvisibility=protected 35LOCAL_LDFLAGS := -ldl 36LOCAL_MULTILIB := both 37 38include $(BUILD_HOST_SHARED_LIBRARY) 39 40include $(LOCAL_PATH)/tests/Android.mk 41