1,先执行 . build/envsetup.sh
2, lunch
envsetup.sh是非执行文件,在此是作为源文件在sh中执行的。里面有很多脚本定义了很多函数(命令),包括lunch
lunch命令中使用了很多vendosetup.sh,其中包含于vendor/*/vendorsetup.sh vendor/*/build/vendorsetup.sh device/*/*/vendorsetup.sh
如下列表信息都是从vendosetup.sh获取到的。
Lunch menu... pick a combo:
1. generic-eng
2. simulator
3. full_dream-userdebug
4. full_passion-userdebug
5. full_sapphire-userdebug
6. full_telechips_m57te_us-userdebug
7. full_telechips_m57te_ko-userdebug
8. full_telechips_m57te_us-eng
9. full_telechips_m57te_ko-eng
10. full_telechips_tcc8900_us-userdebug
11. full_telechips_tcc8900_ko-userdebug
12. full_telechips_tcc8900_us-eng
13. full_telechips_tcc8900_ko-eng
14. full_telechips_tcc9200s_us-userdebug
15. full_telechips_tcc9200s_ko-userdebug
16. full_telechips_tcc9200s_us-eng
17. full_telechips_tcc9200s_ko-eng
18. full_telechips_tcc9201_us-userdebug
19. full_telechips_tcc9201_ko-userdebug
20. full_telechips_tcc9201_us-eng
21. full_telechips_tcc9201_ko-eng
22. full_telechips_tcc9300_us-userdebug
23. full_telechips_tcc9300_ko-userdebug
24. full_telechips_tcc9300_us-eng
25. full_telechips_tcc9300_ko-eng
选择后,lunch的最终的作用其实是获取如下等信息罢了
export TARGET_PRODUCT=$product
export TARGET_BUILD_VARIANT=$variant
export TARGET_SIMULATOR=false
export TARGET_BUILD_TYPE=release
from: http://hi.baidu.com/ktpeng/blog/item/7bbe04cea39b250101e928de.html
阅读(2155) | 评论(0) | 转发(0) |