Android使用repo来管理多个Git项目。它需要一个manifest XML文件来指示这些git项目的属性。
Manifest
repo manifest XML可以包含下面的元素。
以如下,manifest片段为例:https://github.com/CyanogenMod/android
-
<?xml version="1.0" encoding="UTF-8"?>
-
<manifest>
-
<remote name="github"
-
fetch=".."
-
review="review.cyanogenmod.org" />
-
<remote name="private"
-
fetch="ssh://git@github.com" />
-
<remote name="aosp"
-
fetch="https://android.googlesource.com"
-
review="android-review.googlesource.com"
-
revision="refs/tags/android-7.1.1_r6" />
-
<default revision="refs/heads/cm-14.1"
-
remote="github"
-
sync-c="true"
-
sync-j="4" />
-
<!-- AOSP Projects -->
-
<project path="build" name="CyanogenMod/android_build" groups="pdk,tradefed">
-
<copyfile src="core/root.mk" dest="Makefile" />
-
</project>
-
<project path="build/blueprint" name="platform/build/blueprint" groups="pdk,tradefed" remote="aosp" />
-
<project path="build/kati" name="CyanogenMod/android_build_kati" groups="pdk,tradefed" />
-
<project path="build/soong" name="platform/build/soong" groups="pdk,tradefed" remote="aosp" >
-
<linkfile src="root.bp" dest="Android.bp" />
-
<linkfile src="bootstrap.bash" dest="bootstrap.bash" /&