参考: AOSP code navigation with cscope
生成cscope数据库
1 2
| find . -type f \( -name "*.java" -o -name "*.c" -o -name "*.cpp" -o -name "*.h" \) -and -not \( -path "./out/*" -o -path "./prebuilts/*" -o -path "./external/*" -o -path "./dalvik/*" -o -path "./ndk/*" \) > cscope.files cscope -b -q -k
|
排除了 out
等目录