Move sky_snapshot to a more reasonable location (flutter/engine#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.
This commit is contained in:
Adam Barth
2016-08-10 16:05:38 -07:00
committed by GitHub
parent 51b395ffb8
commit 8656cda538
4 changed files with 5 additions and 14 deletions

View File

@@ -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) {

View File

@@ -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}}" ]
}

View File

@@ -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",
]

View File

@@ -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));
}