1LOCAL_PATH := $(call my-dir) 2 3# Compute the compiler flags to export by the module. 4# This is controlled by the APP_GNUSTL_FORCE_CPP_FEATURES variable. 5# See docs/APPLICATION-MK.html for all details. 6# 7gnustl_exported_cppflags := $(strip \ 8 $(if $(filter exceptions,$(APP_GNUSTL_FORCE_CPP_FEATURES)),-fexceptions)\ 9 $(if $(filter rtti,$(APP_GNUSTL_FORCE_CPP_FEATURES)),-frtti)) 10 11# Include path to export 12gnustl_exported_c_includes := $(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/include $(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/include 13 14include $(CLEAR_VARS) 15LOCAL_MODULE := gnustl_static 16LOCAL_SRC_FILES := $(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/libgnustl_static.a 17LOCAL_EXPORT_CPPFLAGS := $(gnustl_exported_cppflags) 18LOCAL_EXPORT_C_INCLUDES := $(gnustl_exported_c_includes) 19include $(PREBUILT_STATIC_LIBRARY) 20 21include $(CLEAR_VARS) 22LOCAL_MODULE := gnustl_shared 23LOCAL_SRC_FILES := $(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/libgnustl_shared.so 24LOCAL_EXPORT_CPPFLAGS := $(gnustl_exported_cppflags) 25LOCAL_EXPORT_C_INCLUDES := $(gnustl_exported_c_includes) 26LOCAL_EXPORT_LDLIBS := $(call host-path,$(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/libsupc++.a) 27include $(PREBUILT_SHARED_LIBRARY) 28