Merge "Dist aapt2 protos" am: b602193169
am: 0783f2d300
Change-Id: I7c5650cc603162aef18341c3fa79abf23cc1e55d
This commit is contained in:
@@ -187,3 +187,22 @@ cc_binary_host {
|
|||||||
static_libs: ["libaapt2"],
|
static_libs: ["libaapt2"],
|
||||||
defaults: ["aapt2_defaults"],
|
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"],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user