| Index: mojo/public/sky/rules.gni
|
| diff --git a/mojo/public/sky/rules.gni b/mojo/public/sky/rules.gni
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..485729c22a2ed4a7aeb8a602d71f8f44d43719c0
|
| --- /dev/null
|
| +++ b/mojo/public/sky/rules.gni
|
| @@ -0,0 +1,24 @@
|
| +# 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.
|
| +
|
| +# Rules to generate packaged applications for Sky
|
| +
|
| +import("//build/module_args/mojo.gni")
|
| +import("$mojo_sdk_root/mojo/public/dart/rules.gni")
|
| +
|
| +# Use this template to generate a .mojo Sky application. One of the source
|
| +# files should be named main.sky; this file will be the entrypoint of the
|
| +# application.
|
| +template("sky_packaged_application") {
|
| + dart_packaged_application(target_name) {
|
| + sources = invoker.sources
|
| + if (defined(invoker.deps)) {
|
| + deps = invoker.deps
|
| + }
|
| + if (defined(invoker.uses_pub)) {
|
| + uses_pub = invoker.uses_pub
|
| + }
|
| + uses_sky = true
|
| + }
|
| +}
|
|
|