blob: a868e0d238f1e400308736bb044a0fda11efb6f4 [file] [log] [blame]
LOCAL_PATH:= $(call my-dir)
include $(LOCAL_PATH)/sources.mk
ifeq (,$(GABIXX_FORCE_REBUILD))
include $(CLEAR_VARS)
LOCAL_MODULE:= gabi++_shared
LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).so
LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
LOCAL_CPP_FEATURES := rtti exceptions
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE:= gabi++_static
LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE).a
LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
LOCAL_CPP_FEATURES := rtti exceptions
include $(PREBUILT_STATIC_LIBRARY)
else # ! GABIXX_FORCE_REBUILD
# Shared version of the library
# Note that the module is named libgabi++_shared to avoid
# any conflict with any potential system library named libgabi++
#
include $(CLEAR_VARS)
LOCAL_MODULE:= libgabi++_shared
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES:= $(libgabi++_src_files)
LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
LOCAL_C_INCLUDES := $(libgabi++_c_includes)
LOCAL_CPP_FEATURES := rtti exceptions
include $(BUILD_SHARED_LIBRARY)
# And now the static version
#
include $(CLEAR_VARS)
LOCAL_MODULE:= libgabi++_static
LOCAL_SRC_FILES:= $(libgabi++_src_files)
LOCAL_CPP_EXTENSION := .cc
LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
LOCAL_C_INCLUDES := $(libgabi++_c_includes)
LOCAL_CPP_FEATURES := rtti exceptions
include $(BUILD_STATIC_LIBRARY)
endif # ! GABIXX_FORCE_REBUILD