Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fc50310 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Dist aapt2 protos" am: b6021931

am: 0783f2d3

Change-Id: I7c5650cc603162aef18341c3fa79abf23cc1e55d
parents 8d824a77 0783f2d3
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -187,3 +187,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"],
    },
}