From f48a6cc560e17349a3adbe24c573974aaa14d160 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 27 Jul 2015 18:19:24 -0700 Subject: [PATCH] Run sky:init before creating a snapshot If we've never run sky:init before, the mojom package will be empty and the snapshot will fail. --- .../src/flutter/sky/packages/workbench/BUILD.gn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 engine/src/flutter/sky/packages/workbench/BUILD.gn diff --git a/engine/src/flutter/sky/packages/workbench/BUILD.gn b/engine/src/flutter/sky/packages/workbench/BUILD.gn new file mode 100644 index 0000000000..cc315559f2 --- /dev/null +++ b/engine/src/flutter/sky/packages/workbench/BUILD.gn @@ -0,0 +1,16 @@ +# 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("init") { + stamp = "$target_gen_dir/sky_init.stamp" + + script = "//sky/build/sky_init.py" + sources = [ "//sky/sdk/pubspec.yaml" ] + outputs = [ stamp ] + + args = [ + "--touch", + rebase_path(stamp, root_build_dir), + ] +}