Update manifest merger to use binary am: 87ecbfe107
am: d8f3e6f5d4
am: 867b1daec4
Change-Id: I72f9f76865d19495cb340adcf5244e8c7f2f8a38
This commit is contained in:
commit
513b76d51f
|
@ -21,7 +21,6 @@ import (
|
|||
"github.com/google/blueprint"
|
||||
|
||||
"android/soong/android"
|
||||
"android/soong/java/config"
|
||||
)
|
||||
|
||||
var manifestFixerRule = pctx.AndroidStaticRule("manifestFixer",
|
||||
|
@ -37,9 +36,8 @@ var manifestFixerRule = pctx.AndroidStaticRule("manifestFixer",
|
|||
|
||||
var manifestMergerRule = pctx.AndroidStaticRule("manifestMerger",
|
||||
blueprint.RuleParams{
|
||||
Command: `${config.JavaCmd} -classpath ${config.ManifestMergerClasspath} com.android.manifmerger.Merger ` +
|
||||
`--main $in $libs --out $out`,
|
||||
CommandDeps: config.ManifestMergerClasspath,
|
||||
Command: `${config.ManifestMergerCmd} --main $in $libs --out $out`,
|
||||
CommandDeps: []string{"${config.ManifestMergerCmd}"},
|
||||
},
|
||||
"libs")
|
||||
|
||||
|
|
|
@ -45,16 +45,6 @@ var (
|
|||
"core-libart",
|
||||
"updatable-media",
|
||||
}
|
||||
|
||||
ManifestMergerClasspath = []string{
|
||||
"prebuilts/gradle-plugin/com/android/tools/build/manifest-merger/26.1.0/manifest-merger-26.1.0.jar",
|
||||
"prebuilts/gradle-plugin/com/android/tools/common/26.1.0/common-26.1.0.jar",
|
||||
"prebuilts/gradle-plugin/com/android/tools/sdk-common/26.1.0/sdk-common-26.1.0.jar",
|
||||
"prebuilts/gradle-plugin/com/android/tools/sdklib/26.1.0/sdklib-26.1.0.jar",
|
||||
"prebuilts/gradle-plugin/org/jetbrains/kotlin/kotlin-runtime/1.0.5/kotlin-runtime-1.0.5.jar",
|
||||
"prebuilts/gradle-plugin/org/jetbrains/kotlin/kotlin-stdlib/1.1.3/kotlin-stdlib-1.1.3.jar",
|
||||
"prebuilts/misc/common/guava/guava-21.0.jar",
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -153,8 +143,7 @@ func init() {
|
|||
|
||||
pctx.SourcePathVariable("ManifestFixerCmd", "build/soong/scripts/manifest_fixer.py")
|
||||
|
||||
pctx.SourcePathsVariable("ManifestMergerJars", " ", ManifestMergerClasspath...)
|
||||
pctx.SourcePathsVariable("ManifestMergerClasspath", ":", ManifestMergerClasspath...)
|
||||
pctx.HostBinToolVariable("ManifestMergerCmd", "manifest-merger")
|
||||
|
||||
pctx.HostBinToolVariable("ZipAlign", "zipalign")
|
||||
|
||||
|
|
|
@ -75,9 +75,7 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
|
|||
|
||||
ctx.Strict("MANIFEST_FIXER", "${ManifestFixerCmd}")
|
||||
|
||||
ctx.Strict("ANDROID_MANIFEST_MERGER_DEPS", "${ManifestMergerJars}")
|
||||
ctx.Strict("ANDROID_MANIFEST_MERGER",
|
||||
"${JavaCmd} -classpath ${ManifestMergerClasspath} com.android.manifmerger.Merger")
|
||||
ctx.Strict("ANDROID_MANIFEST_MERGER", "${ManifestMergerCmd}")
|
||||
|
||||
ctx.Strict("CLASS2GREYLIST", "${Class2Greylist}")
|
||||
ctx.Strict("HIDDENAPI", "${HiddenAPI}")
|
||||
|
|
Loading…
Reference in New Issue