提交 fef5589b 编写于 作者: A Adam Barth 提交者: GitHub

Move sky_snapshot to a more reasonable location (#2906)

We should eventually rename it to something more sensible, but that's a more
disruptive change. This patch just moves the source code to somewhere easier to
find.
上级 54d5068b
......@@ -15,7 +15,7 @@ group("sky") {
]
if (dart_host_toolchain == host_toolchain) {
deps += [ "//flutter/sky/tools/sky_snapshot($dart_host_toolchain)" ]
deps += [ "//flutter/snapshotter($dart_host_toolchain)" ]
}
if (is_linux || is_android) {
......
......@@ -43,15 +43,6 @@ copy("sky_shell") {
deps = []
}
sky_snapshot_dir =
get_label_info("//flutter/sky/tools/sky_snapshot($host_toolchain)", "root_out_dir")
sources += [ "$sky_snapshot_dir/sky_snapshot" ]
deps += [
"//flutter/sky/tools/sky_snapshot($host_toolchain)",
]
outputs = [ "$root_dist_dir/shell/{{source_file_part}}" ]
}
......
......@@ -2,7 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
executable("sky_snapshot") {
executable("snapshotter") {
output_name = "sky_snapshot"
sources = [
"main.cc",
]
......
......@@ -26,7 +26,6 @@ extern const uint8_t kDartVmIsolateSnapshotBuffer[];
extern const uint8_t kDartIsolateSnapshotBuffer[];
}
namespace sky_snapshot {
namespace {
using tonic::ToDart;
......@@ -233,8 +232,7 @@ int CreateSnapshot(const ftl::CommandLine& command_line) {
}
} // namespace
} // namespace sky_snapshot
int main(int argc, const char* argv[]) {
return sky_snapshot::CreateSnapshot(ftl::CommandLineFromArgcArgv(argc, argv));
return CreateSnapshot(ftl::CommandLineFromArgcArgv(argc, argv));
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册