flutter/packages/updater/BUILD.gn
Matt Perry af3a10f4e4 Implement working UpdateTask in Dart
Dart code now supports the full flow that the C++ code used to: version check,
download, replace app bundle. Bonus: the Dart code is much easier to follow,
thanks to async/await!

This is part 2 of a 3-part change. The first part added new mojom
interfaces, PathService and UpdateService, to the sky_services package.
2015-09-30 18:13:11 -04:00

33 lines
900 B
Plaintext

# Copyright 2015 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.
action("updater") {
snapshot = "$target_gen_dir/updater_snapshot.bin"
main_dart = "lib/main.dart"
inputs = [
main_dart,
]
outputs = [
snapshot,
]
sky_snapshot_dir =
get_label_info("//sky/tools/sky_snapshot($host_toolchain)", "root_out_dir")
script = "//sky/tools/run_sky_snapshot.py"
args = [
"--compiler", rebase_path("$sky_snapshot_dir/sky_snapshot", root_build_dir),
"--package-root", rebase_path("packages", root_build_dir),
"--snapshot", rebase_path(snapshot, root_build_dir),
"--main", rebase_path(main_dart, root_build_dir),
]
deps = [
"//sky/services/activity:interfaces",
"//sky/services/updater:interfaces",
"//sky/tools/sky_snapshot($host_toolchain)",
]
}