本文基于Android8.1系统源码,常量的定义在文件./build/make/core/envsetup.mk中
TOPDIR – 源码根目录
OUT_DIR – out目录,默认情况下是源码目录下的out目录,如果指定OUT_DIR_COMMON_BASE这个环境变量,则为这个变量指定的目录
TARGET_BUILD_TYPE – 是release还是debug的编译,在环境变量TARGET_BUILD_TYPE中指定
SOONG_OUT_DIR – soong目录,默认情况下是out/soong
DEBUG_OUT_DIR – TARGET_BUILD_TYPE为debug时会用到此目录,默认是out/debug
TARGET_OUT_ROOT – target目录,默认是out/target,debug时为out/debug/target
TARGET_PRODUCT_OUT_ROOT – 默认是out/target/product目录
TARGET_COMMON_OUT_ROOT – 默认是out/target/common目录,用于生成编译时的中间文件
PRODUCT_OUT – 默认是out/target/product/{设备型号},真正的编译生成文件的目录
TARGET_OUT – $(PRODUCT_OUT)/system目录
TARGET_OUT_GEN – $(PRODUCT_OUT)/gen
TARGET_OUT_EXECUTABLES – $(TARGET_OUT)/bin
TARGET_OUT_OPTIONAL_EXECUTABLES – $(TARGET_OUT)/xbin
TARGET_OUT_RENDERSCRIPT_BITCODE := $(TARGET_OUT_SHARED_LIBRARIES)
TARGET_OUT_JAVA_LIBRARIES :=$(PRODUCT_OUT)/system/framework
TARGET_OUT_APPS :=$(PRODUCT_OUT)/system/app
TARGET_OUT_APPS_PRIVILEGED :=$(PRODUCT_OUT)/system/priv-app
TARGET_OUT_KEYLAYOUT :=$(PRODUCT_OUT)/system/usr/keylayout
TARGET_OUT_KEYCHARS :=$(PRODUCT_OUT)/system/usr/keychars
TARGET_OUT_ETC :=$(PRODUCT_OUT)/system/etc
TARGET_OUT_FAKE := $(PRODUCT_OUT)/fake_packages
TARGET_OUT_TESTCASES := $(PRODUCT_OUT)/testcases
HOST_OUT_ROOT – host目录,默认是out/host
HOST_OUT –
SOONG_HOST_OUT –
HOST_CROSS_OUT –
Sorry, the comment form is closed at this time.