android 添加 iconv 支持

NDK自带的iconv的 查看 android-ndk-r9d/sources/android/support/include/iconv.h
在Android.mk中加入
LOCAL_WHOLE_STATIC_LIBRARIES += android_support

$(call import-module,android/support)


如:

LOCAL_PATH := $(call my-dir)


include $(CLEAR_VARS)
LOCAL_MODULE := mylib
LOCAL_SRC_FILES := mylib.cpp


LOCAL_WHOLE_STATIC_LIBRARIES += android_support
LOCAL_CXXFLAGS += -std=c++11 -fexceptions


include $(BUILD_SHARED_LIBRARY)


$(call import-module, android/support)

你可能感兴趣的:(android)