使用 android-ndk-r10d
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_CFLAGS += -std=c99 LOCAL_EXPORT_LDLIBS += -llog LOCAL_SRC_FILES += android/loghelp.c LOCAL_SRC_FILES += android/jnihelp.c LOCAL_MODULE := myutil include $(BUILD_STATIC_LIBRARY)
以上没有任何东西生成。
在myutil前面加上lib即可:
LOCAL_MODULE := libmyutil
时间: 2024-08-05 06:38:45