0

我想从.c文件为ARM处理器创建一个预建共享库.so 。请给我一些步骤来做到这一点,以及如何在 android 中包含和访问它的功能。

4

1 回答 1

0

您正在寻找:

LOCAL_PATH       := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE     := my_static_lib
LOCAL_C_INCLUDES := src
LOCAL_SRC_FILES  := src/main_main.c
# Use this one to build a *.a file - static library
include $(BUILD_STATIC_LIBRARY) 
# Use this one to build a *.so file - a shared library
include $(BUILD_SHARED_LIBRARY) 
于 2012-12-30T15:02:10.343 回答