include $(BUILD_PACKAGE) # Tell it to build an APK
$(BUILD_PACKAGE)是用来编译生成package/app/下的apk。
include $(BUILD_STATIC_LIBRARY) 表示编译成静态库
include $(BUILD_SHARED_LIBRARY) 表示编译成动态库
include $(BUILD_EXECUTABLE) 表示编译成可执行程序
LOCAL_PACKAGE_NAME 指定APP应用名称
LOCAL_MODULE 除应用(apk)以LOCAL_PACKAGE_NAME指定模块名以外,其余的模块都以LOCAL_MODULE指定模块名。
LOCAL_SRC_FILES := $(call all-java-files-under, src) 如果要包含的是java源码的话,可以调用all-java-files-under得到。(这种形式来包含local_path目录下的所有java文件)
BUILD_STATIC_JAVA_LIBRARY: 产物路径 out/target/common/obj/JAVA_LIBRARIES
查看AOSP版本:build/make/core/version_defaults.mk
PLATFORM_SDK_VERSION:=28