LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
AlvaDefineRoot := $(LOCAL_PATH)/
JniInterface_PATH := $(SRC_ROOT)/JniInterface
#生成Test.so
LOCAL_MODULE := libTest
JNI_C_FILES = hello.cpp \
hello1.cpp
#将JniInterface_PATH 文件夹下的cpp
JNI_SRC_FILES = $(addprefix $(JniInterface_PATH)/, $(JNI_C_FILES))
LOCAL_SRC_FILES := $(JNI_SRC_FILES)
LOCAL_C_INCLUDES:= $(LOCAL_PATH)/$(JniInterface_PATH)
# 宏定义
LOCAL_CFLAGS := -DOS_ALVA=OS_Android
LOCAL_LDLIBS := -llog -lGLESv2 -lEGL -landroid
# 调用另一个mk文件
include $(AlvaDefineRoot)/AlvaDefines.mk
include $(BUILD_SHARED_LIBRARY)
简单的Android.mk 文件
最新推荐文章于 2022-04-08 11:13:08 发布