android.mk怎么在jni编译时把系统头文件包含

2024-11-29 14:54:31
推荐回答(1个)
回答(1):

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE:= libxxx

LOCAL_SRC_FILES:= \
xxx.cpp

LOCAL_SHARED_LIBRARIES := \
liblog \
libutils \
libandroid_runtime

LOCAL_C_INCLUDES += \
$(JNI_H_INCLUDE)

LOCAL_PROGUARD_ENABLED:= disabled

include $(BUILD_SHARED_LIBRARY)