Android编译大全(四)
6. 编译详细分解
6.1. build系统简介
6.1.1.build系统文件结构
./build
|– CleanSpec.mk
|– buildspec.mk.default
|– core
| |– Makefile
| |– apicheck_msg_current.txt
| |– apicheck_msg_last.txt
| |– armelf.x
| |– armelf.xsc
| |– armelflib.x
| |– base_rules.mk
| |– binary.mk
| |– build-system.html
| |– build_id.mk
| |– checktree
| |– cleanbuild.mk
| |– cleanspec.mk
| |– clear_vars.mk
| |– combo
| | |– HOST_darwin-x86.mk
| | |– HOST_linux-x86.mk
| | |– HOST_windows-x86.mk
| | |– TARGET_linux-arm.mk
| | |– TARGET_linux-sh.mk
| | |– TARGET_linux-x86.mk
| | |– arch
| | | `– arm
| | | |– armv4t.mk
| | | |– armv5te-vfp.mk
| | | |– armv5te.mk
| | | |– armv7-a-neon.mk
| | | `– armv7-a.mk
| | |– javac.mk
| | `– select.mk
| |– config.mk
| |– copy_headers.mk
| |– definitions.mk
| |– device.mk
| |– distdir.mk
| |– droiddoc.mk
| |– dynamic_binary.mk
| |– envsetup.mk
| |– executable.mk
| |– filter_symbols.sh
| |– find-jdk-tools-jar.sh
| |– host_executable.mk
| |– host_java_library.mk
| |– host_prebuilt.mk
| |– host_shared_library.mk
| |– host_static_library.mk
| |– java.mk
| |– java_library.mk
| |– key_char_map.mk
| |– main.mk
| |– multi_prebuilt.mk
| |– node_fns.mk
| |– notice_files.mk
| |– package.mk
| |– pathmap.mk
| |– prebuilt.mk
| |– prelink-linux-arm-2G.map
| |– prelink-linux-arm.map
| |– process_wrapper.sh
| |– process_wrapper_gdb.cmds
| |– process_wrapper_gdb.sh
| |– product.mk
| |– product_config.mk
| |– proguard.flags
| |– proguard_tests.flags
| |– raw_executable.mk
| |– raw_static_library.mk
| |– root.mk
| |– shared_library.mk
| |– static_java_library.mk
| |– static_library.mk
| |– tasks
| | |– apicheck.mk
| | |– cts.mk
| | |– product-graph.mk
| | `– sdk-addon.mk
| `– version_defaults.mk
|– envsetup.sh
|– libs
| `– host
| |– Android.mk
| |– CopyFile.c
| |– include
| | `– host
| | |– CopyFile.h
| | |– Directories.h
| | `– pseudolocalize.h
| |– list.java
| `– pseudolocalize.cpp
|– target
| |– board
| | |– Android.mk
| | |– emulator
| | | |– AndroidBoard.mk
| | | |– BoardConfig.mk
| | | |– README.txt
| | | |– tuttle2.kcm
| | | `– tuttle2.kl
| | |– generic
| | | |– AndroidBoard.mk
| | | |– BoardConfig.mk
| | | |– README.txt
| | | |– system.prop
| | | |– tuttle2.kcm
| | | `– tuttle2.kl
| | `– sim
| | |– AndroidBoard.mk
| | `– BoardConfig.mk
| `– product
| |– AndroidProducts.mk
| |– core.mk
| |– full.mk
| |– generic.mk
| |– languages_full.mk
| |– languages_small.mk
| |– sdk.mk
| |– security
| | |– README
| | |– media.pk8
| | |– media.x509.pem
| | |– platform.pk8
| | |– platform.x509.pem
| | |– shared.pk8
| | |– shared.x509.pem
| | |– testkey.pk8
| | `– testkey.x509.pem
| `– sim.mk