| 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_world_dartzip") { | 7 dart_pkg("world") { |
| 8 output_name = "mojo_dart_world" | |
| 9 sources = [ | |
| 10 "lib/main.dart", | |
| 11 "pubspec.yaml", | |
| 12 ] | |
| 13 deps = [ | |
| 14 "//mojo/public/dart:dart_dartzip", | |
| 15 ] | |
| 16 | |
| 17 # This exercises the ability of the Dart content handler to run isolates in | |
| 18 # either strict or non-strict mode at the same time. In a Debug build, the | |
| 19 # content handler always runs code in strict mode, so we run in different | |
| 20 # modes only in a Release build. | |
| 21 if (!is_debug) { | |
| 22 strict = true | |
| 23 } | |
| 24 } | |
| 25 | |
| 26 dart_pkg("mojo_dart_world_pkg") { | |
| 27 apps = [ "lib/main.dart" ] | 8 apps = [ "lib/main.dart" ] |
| 9 app_name_override = "dart_world" |
| 28 sources = [ | 10 sources = [ |
| 29 "pubspec.yaml", | 11 "pubspec.yaml", |
| 30 ] | 12 ] |
| 31 deps = [ | 13 deps = [ |
| 32 "//mojo/public/dart", | 14 "//mojo/public/dart", |
| 33 ] | 15 ] |
| 34 | 16 |
| 35 # This exercises the ability of the Dart content handler to run isolates in | 17 # This exercises the ability of the Dart content handler to run isolates in |
| 36 # either strict or non-strict mode at the same time. In a Debug build, the | 18 # either strict or non-strict mode at the same time. In a Debug build, the |
| 37 # content handler always runs code in strict mode, so we run in different | 19 # content handler always runs code in strict mode, so we run in different |
| 38 # modes only in a Release build. | 20 # modes only in a Release build. |
| 39 if (!is_debug) { | 21 if (!is_debug) { |
| 40 strict = true | 22 strict = true |
| 41 } | 23 } |
| 42 } | 24 } |
| 43 | |
| 44 group("world") { | |
| 45 deps = [ | |
| 46 ":mojo_dart_world_dartzip", | |
| 47 ":mojo_dart_world_pkg", | |
| 48 ] | |
| 49 } | |
| OLD | NEW |