| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/dart/rules.gni") | 5 import("//mojo/public/dart/rules.gni") |
| 6 | 6 |
| 7 dartzip_packaged_application("mojo_dart_hello_dartzip") { | 7 dart_pkg("hello") { |
| 8 output_name = "mojo_dart_hello" | |
| 9 sources = [ | |
| 10 "lib/main.dart", | |
| 11 "pubspec.yaml", | |
| 12 ] | |
| 13 deps = [ | |
| 14 "//mojo/public/dart:dart_dartzip", | |
| 15 ] | |
| 16 } | |
| 17 | |
| 18 dart_pkg("mojo_dart_hello_pkg") { | |
| 19 apps = [ "lib/main.dart" ] | 8 apps = [ "lib/main.dart" ] |
| 9 app_name_override = "dart_hello" |
| 20 sources = [ | 10 sources = [ |
| 21 "pubspec.yaml", | 11 "pubspec.yaml", |
| 22 ] | 12 ] |
| 23 deps = [ | 13 deps = [ |
| 24 "//mojo/public/dart", | 14 "//mojo/public/dart", |
| 25 ] | 15 ] |
| 26 } | 16 } |
| 27 | |
| 28 group("hello") { | |
| 29 deps = [ | |
| 30 ":mojo_dart_hello_dartzip", | |
| 31 ":mojo_dart_hello_pkg", | |
| 32 ] | |
| 33 } | |
| OLD | NEW |