1 LOCAL_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 # 7 gnustl_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 12 gnustl_exported_c_includes := \ 13 $(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/include \ 14 $(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/include \ 15 $(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/include/backward 16 17 include $(CLEAR_VARS) 18 LOCAL_MODULE := gnustl_static 19 LOCAL_SRC_FILES := $(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/libgnustl_static$(TARGET_LIB_EXTENSION) 20 LOCAL_EXPORT_CPPFLAGS := $(gnustl_exported_cppflags) 21 LOCAL_EXPORT_C_INCLUDES := $(gnustl_exported_c_includes) 22 include $(PREBUILT_STATIC_LIBRARY) 23 24 include $(CLEAR_VARS) 25 LOCAL_MODULE := gnustl_shared 26 LOCAL_SRC_FILES := $(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/libgnustl_shared$(TARGET_SONAME_EXTENSION) 27 LOCAL_EXPORT_CPPFLAGS := $(gnustl_exported_cppflags) 28 LOCAL_EXPORT_C_INCLUDES := $(gnustl_exported_c_includes) 29 LOCAL_EXPORT_LDLIBS := $(call host-path,$(LOCAL_PATH)/$(TOOLCHAIN_VERSION)/libs/$(TARGET_ARCH_ABI)/libsupc++$(TARGET_LIB_EXTENSION)) 30 include $(PREBUILT_SHARED_LIBRARY) 31