diff --git a/engine/src/flutter/sky/BUILD.gn b/engine/src/flutter/sky/BUILD.gn index ec3c19b585..7daacaf590 100644 --- a/engine/src/flutter/sky/BUILD.gn +++ b/engine/src/flutter/sky/BUILD.gn @@ -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) { diff --git a/engine/src/flutter/sky/dist/BUILD.gn b/engine/src/flutter/sky/dist/BUILD.gn index d80e582353..fdee76e99c 100644 --- a/engine/src/flutter/sky/dist/BUILD.gn +++ b/engine/src/flutter/sky/dist/BUILD.gn @@ -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}}" ] } diff --git a/engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn b/engine/src/flutter/snapshotter/BUILD.gn similarity index 92% rename from engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn rename to engine/src/flutter/snapshotter/BUILD.gn index bd6887c878..55fc85a453 100644 --- a/engine/src/flutter/sky/tools/sky_snapshot/BUILD.gn +++ b/engine/src/flutter/snapshotter/BUILD.gn @@ -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", ] diff --git a/engine/src/flutter/sky/tools/sky_snapshot/main.cc b/engine/src/flutter/snapshotter/main.cc similarity index 98% rename from engine/src/flutter/sky/tools/sky_snapshot/main.cc rename to engine/src/flutter/snapshotter/main.cc index 838766ad3b..68cb53cc0f 100644 --- a/engine/src/flutter/sky/tools/sky_snapshot/main.cc +++ b/engine/src/flutter/snapshotter/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)); }