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

Commit 655b936e authored by Ryan Mitchell's avatar Ryan Mitchell
Browse files

Create aapt2_artifacts dist goal for aapt2

Building aapt2_artifacts will output aapt2 and aapt2-protos.zip to
DIST_DIR. If BUILD_HOST_static is not specified, aapt2.exe will also
be built.

Bug: 147476179
Test: m -j dist DIST_DIR=~/dist_test aapt2_artifacts
Test: m -j dist DIST_DIR=~/dist_test BUILD_HOST_static=1 \
      aapt2_artifacts
Change-Id: I9a0ee769f8c6579f1e01c04e42c62ebe850ba401
parent 0aa490c1
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -201,6 +201,9 @@ cc_binary_host {
    use_version_lib: true,
    use_version_lib: true,
    static_libs: ["libaapt2"],
    static_libs: ["libaapt2"],
    defaults: ["aapt2_defaults"],
    defaults: ["aapt2_defaults"],
    dist: {
        targets: ["aapt2_artifacts"],
    },
}
}


// ==========================================================
// ==========================================================
@@ -219,6 +222,6 @@ genrule {
        "cp $(in) $(genDir)/protos && " +
        "cp $(in) $(genDir)/protos && " +
        "$(location :soong_zip) -o $(out) -C $(genDir)/protos -D $(genDir)/protos",
        "$(location :soong_zip) -o $(out) -C $(genDir)/protos -D $(genDir)/protos",
    dist: {
    dist: {
        targets: ["sdk_repo"],
        targets: ["sdk_repo", "aapt2_artifacts"],
    },
    },
}
}