If you are using repo and git directly from the Google official online download source code, please ignore this problem, but because Google is restricted in the country, through this method not everyone can download the source code, the usual practice is to copy from others, And then compile it yourself, the following error usually occurs:
No rule to do target ' external/chromium_org/third_party/angle/.git/index ', need by .....
Enter the corresponding directory, found in the angle directory, there is no. git directory, this can also be understood, because it is not their own through repo and git directly from the official website download, so there is no. git directory (this directory is Git's management directory, the same as the. svn function). So we have only one way, is not to let the source code compiled. Git/index part. Http://hovertree.com/menu/android/
The specific changes are as follows:
Comment out the section about index in the External/chromium_org/third_party/angle/src/commit_id.target.linux-arm.mk file:
The original part (the section in the original file with the green mark below is written in the same line)
......
$ (Gyp_shared_intermediate_dir)/angle/id/commit.h: $ (Gyp_shared_intermediate_dir)/angle/commit_id.py $ (LOCAL_PATH )/third_party/angle/.git/index
$ (gyp_target_dependencies)
......
Change into
......
$ (Gyp_shared_intermediate_dir)/angle/id/commit.h: $ (gyp_shared_intermediate_dir)/angle/commit_id.py
#$ (Local_path)/third_party/angle/.git/index$ (gyp_target_dependencies)
......
This will allow the source code to not compile. Git the index part below, compile can pass, Pro test success!
Recommendation: http://www.cnblogs.com/roucheng/p/androidservice.html
Android 5.0 Source Code compilation problem