There is a much simpler way to do all this.
Say your prebuilt library is called "libprebuilt.so"
In the project folder of the new project, you want to include only the previously created library, do the following:
mkdir -p jni/libprebuilt cp libprebuilt.so jni/libprebuilt
Then just create the jni / libprebuilt / Android.mk file:
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libprebuilt LOCAL_SRC_FILES := libprebuilt.so include $(PREBUILT_SHARED_LIBRARY)
Then, when you do ndk-build, it will copy this library to libs / armeabi / ..., that's all!
gnychis Apr 20 '11 at 19:19 2011-04-20 19:19
source share