Merge "Dist aapt2 protos" am: b602193169 am: 0783f2d300

am: 0fc50310f3

Change-Id: Ifd9668f3931ec4d276b79a6e5ece576860271de7
This commit is contained in:
Colin Cross
2019-03-20 17:59:14 -07:00
committed by android-build-merger

View File

@@ -198,3 +198,22 @@ cc_binary_host {
static_libs: ["libaapt2"],
defaults: ["aapt2_defaults"],
}
// ==========================================================
// Dist the protos
// ==========================================================
genrule {
name: "aapt2-protos",
tools: [":soong_zip"],
srcs: [
"Configuration.proto",
"Resources.proto",
],
out: ["aapt2-protos.zip"],
cmd: "mkdir $(genDir)/protos && " +
"cp $(in) $(genDir)/protos && " +
"$(location :soong_zip) -o $(out) -C $(genDir)/protos -D $(genDir)/protos",
dist: {
targets: ["sdk_repo"],
},
}