Android 编译后目录解析

you can find the defination in envsetup.mk


DEBUG_OUT_DIR := ./out/debug


TARGET_OUT_ROOT_release := ./out/target
TARGET_OUT_ROOT_debug := ./out/debug/target
TARGET_OUT_ROOT := $(TARGET_OUT_ROOT_$(TARGET_BUILD_TYPE))
TARGET_OUT_ROOT_release
TARGET_OUT_ROOT_debug


HOST_OUT_ROOT_release := ./out/host
HOST_OUT_ROOT_debug := ./out/debug/host
HOST_OUT_ROOT := $(HOST_OUT_ROOT_$(HOST_BUILD_TYPE))
HOST_OUT_ROOT_release
HOST_OUT_ROOT_debug


HOST_OUT_release := $(HOST_OUT_ROOT_release)/$(HOST_OS)-$(HOST_ARCH)
HOST_OUT_debug := $(HOST_OUT_ROOT_debug)/$(HOST_OS)-$(HOST_ARCH)
HOST_OUT := $(HOST_OUT_$(HOST_BUILD_TYPE))


HOST_OUT := ./out/host/linux-x86


BUILD_OUT := ./out/host/linux-x86


TARGET_PRODUCT_OUT_ROOT := ./out/target/product


TARGET_COMMON_OUT_ROOT := ./out/target/common
HOST_COMMON_OUT_ROOT := ./out/host/common


PRODUCT_OUT := ./out/target/product/mango


OUT_DOCS := $(TARGET_COMMON_OUT_ROOT)/docs


BUILD_OUT_EXECUTABLES := ./out/host/linux-86/bin


HOST_OUT_EXECUTABLES := ./out/host/linux-86/bin
对应于 ./out/host/linux-86/obj/EXECUTABLES
HOST_OUT_SHARED_LIBRARIES := ./out/host/linux-86/lib
对应于 ./out/host/linux-86/obj/lib
HOST_OUT_JAVA_LIBRARIES := ./out/host/linux-86/framework
对应于 ./out/host/common/obj
HOST_OUT_SDK_ADDON := ./out/host/linux-86/sdk_addon


HOST_OUT_INTERMEDIATES := ./out/host/linux-86/obj
HOST_OUT_HEADERS := ./out/host/linux-86/obj/include

HOST_OUT_INTERMEDIATE_LIBRARIES := ./out/host/linux-86/obj/lib

 对应于./out/host/linux-86/lib  .so文件
HOST_OUT_STATIC_LIBRARIES := ./out/host/linux-86/obj/lib
HOST_OUT_NOTICE_FILES := ./out/host/linux-86/obj/NOTICE_FILES
HOST_OUT_COMMON_INTERMEDIATES := ./out/host/common/obj
对应于./out/host/linux-86/framework




TARGET_OUT_INTERMEDIATES := ./out/target/product/mango/obj
TARGET_OUT_HEADERS := ./out/target/product/mango/obj/include
TARGET_OUT_INTERMEDIATE_LIBRARIES := ./out/target/product/mango/obj/lib
TARGET_OUT_COMMON_INTERMEDIATES := ./out/target/common/obj


TARGET_OUT := ./out/target/product/mango/system
TARGET_OUT_EXECUTABLES := ./out/target/product/mango/system/bin
TARGET_OUT_OPTIONAL_EXECUTABLES := ./out/target/product/mango/system/xbin
TARGET_OUT_SHARED_LIBRARIES := ./out/target/product/mango/system/lib
TARGET_OUT_JAVA_LIBRARIES := ./out/target/product/mango/system/framework
TARGET_OUT_APPS := ./out/target/product/mango/system/app
TARGET_OUT_KEYLAYOUT := ./out/target/product/mango/system/usr/keylayout
TARGET_OUT_KEYCHARS := ./out/target/product/mango/system/usr/keychars
TARGET_OUT_ETC := ./out/target/product/mango/system/etc
TARGET_OUT_STATIC_LIBRARIES := ./out/target/product/mango/obj/lib
TARGET_OUT_NOTICE_FILES := ./out/target/product/mango/obj/NOTICE_FILES


TARGET_OUT_DATA := ./out/target/product/mango/data
TARGET_OUT_DATA_EXECUTABLES := $(TARGET_OUT_EXECUTABLES)
TARGET_OUT_DATA_SHARED_LIBRARIES := $(TARGET_OUT_SHARED_LIBRARIES)
TARGET_OUT_DATA_JAVA_LIBRARIES := $(TARGET_OUT_JAVA_LIBRARIES)
TARGET_OUT_DATA_APPS := $(TARGET_OUT_DATA)/app
TARGET_OUT_DATA_KEYLAYOUT := $(TARGET_OUT_KEYLAYOUT)
TARGET_OUT_DATA_KEYCHARS := $(TARGET_OUT_KEYCHARS)
TARGET_OUT_DATA_ETC := $(TARGET_OUT_ETC)
TARGET_OUT_DATA_STATIC_LIBRARIES          := $(TARGET_OUT_STATIC_LIBRARIES)


TARGET_OUT_UNSTRIPPED := ./out/target/product/mango/symbols
TARGET_OUT_EXECUTABLES_UNSTRIPPED := ./out/target/product/mango/symbols/system/bin
TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED := ./out/target/product/mango/symbols/system/lib
TARGET_ROOT_OUT_UNSTRIPPED := ./out/target/product/mango/symbols
TARGET_ROOT_OUT_SBIN_UNSTRIPPED := ./out/target/product/mango/symbols/sbin
TARGET_ROOT_OUT_BIN_UNSTRIPPED := ./out/target/product/mango/symbols/bin


TARGET_ROOT_OUT := ./out/target/product/mango/root
TARGET_ROOT_OUT_BIN := ./out/target/product/mango/root/bin
TARGET_ROOT_OUT_SBIN := ./out/target/product/mango/root/sbin
TARGET_ROOT_OUT_ETC := ./out/target/product/mango/root/etc
TARGET_ROOT_OUT_USR := ./out/target/product/mango/root/usr


TARGET_RECOVERY_OUT := ./out/target/product/mango/recovery
TARGET_RECOVERY_ROOT_OUT := $(TARGET_RECOVERY_OUT)/root

TARGET_SYSLOADER_OUT := ./out/target/product/mango/sysloader
TARGET_SYSLOADER_ROOT_OUT := $(TARGET_SYSLOADER_OUT)/root
TARGET_SYSLOADER_SYSTEM_OUT := $(TARGET_SYSLOADER_OUT)/root/system


TARGET_INSTALLER_OUT := ./out/target/product/mango/installer
TARGET_INSTALLER_DATA_OUT := $(TARGET_INSTALLER_OUT)/data
TARGET_INSTALLER_ROOT_OUT := $(TARGET_INSTALLER_OUT)/root
TARGET_INSTALLER_SYSTEM_OUT := $(TARGET_INSTALLER_OUT)/root/system


COMMON_MODULE_CLASSES := TARGET-NOTICE_FILES HOST-NOTICE_FILES HOST-JAVA_LIBRARIES


Host 部分分析:

host        :表示在主机(X86)生成的工具
host/common/: 主机侧一些通用目标文件,
          /obj/
              /JAVA_LIBRARIES  :     这里主要是一些Java库的中间文件。 同/host/linux-x86/framework


host/linux-x86/
              /bin/       主机侧用的一些命令
              /cts/
              /cts/dxconverter
              /cts_dalviktests/
                              /data
                              /tests
              /etc/
                  /security
              /framework/
              /lib/                  :主机侧的一些共享库*.so
              /obj/
                    /EXECUTABLES    :主机侧用的命令的中间生成文件  同/host/linux-x86/bin
                    /include
                    /lib            : 主机侧的一些共享库*.so 同/host/linux-x86/lib
                    /NOTICE_FILES
                    /sdk            :
                    /SHARED_LIBRARIES :  主机侧的一些共享库*.so 的中间文件
                    /sources
                    /STATIC_LIBRARIES
                    /
              /sdk/android-sdk_eng.28848493_linux-x86
                    /add-ons
                    /docs
                    /platforms      :
                          /android-2.3.3:
                                /api  :include com.sonyericsson.privateapis_dynamic.jar com.sonyericsson.privateapis_static.jar  com.sonyericsson.uxp.jar
                                /certificates
                                /data
                                /idl
                                /images
                                /lib     : platform 提供的jar 文件比如framework.jar core.jar 通过/host/linux-x86/obj/source 生成
                                /res
                                /skins
                                /sources :   同/host/linux-x86/obj/source
                                 /templates
                    /platform-tools :SDK 中platform 用到得一些工具,suchas:  aapt adb aidl dexdump dx . come from   /host/linux-x86/bin and  /host/linux-x86/framework
                    /samples
                    /semcbuild-config
                    /tools          :SDK中用的一些工具和一些库文件 , come from   /host/linux-x86/bin and  /host/linux-x86/framework
                    
              
              /usr/
              /usr/icu
              /usr/share
              


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值