Commit d38e4cd1 authored by Simeon Anfinrud's avatar Simeon Anfinrud Committed by Commit Bot

[chromecast] Add a chromecast/build:archive target.

This target packages output artifacts into a format that the
Cast internal build infrastructure expects.

Bug: Internal b/143701141
Test: build atv and udon with internal patch
Change-Id: I38bab1bdffbb2cb78ae503f554def458f296ab41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894831Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Commit-Queue: Simeon Anfinrud <sanfin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712185}
parent 9b5b02c3
......@@ -25,7 +25,9 @@ declare_args() {
# Depends on all non-test targets that should be built by the Chromecast
# internal build infrastructure.
group("all") {
deps = []
deps = [
"//chromecast/build:archive",
]
if (is_android && chromecast_branding == "public") {
deps += [ ":cast_shell_apk" ]
}
......
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
if (is_android) {
artifact_type_suffix = "$cast_build_incremental-$target_cpu"
copy("archive_public_cast_apk") {
sources = [
"$root_out_dir/apks/CastShell.apk",
]
outputs = [
"$root_out_dir/archive/CastShell-$artifact_type_suffix.apk",
]
deps = [
"//chromecast:cast_shell_apk",
]
}
}
group("archive") {
if (chromecast_branding == "internal") {
deps = [
"//chromecast/internal/build:archive",
]
} else if (is_android) {
deps = [
":archive_public_cast_apk",
]
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment