OLD | NEW |
1 import("../mojo_sdk.gni") | 1 import("../mojo_sdk.gni") |
2 import("rules.gni") | 2 import("rules.gni") |
3 | 3 |
4 dart_mojo_sdk_sources = [ | 4 dart_mojo_sdk_sources = [ |
5 "application.dart", | 5 "lib/application.dart", |
6 "bindings.dart", | 6 "lib/bindings.dart", |
7 "core.dart", | 7 "lib/core.dart", |
8 "src/application_connection.dart", | 8 "lib/src/application_connection.dart", |
9 "src/application.dart", | 9 "lib/src/application.dart", |
10 "src/buffer.dart", | 10 "lib/src/buffer.dart", |
11 "src/codec.dart", | 11 "lib/src/codec.dart", |
12 "src/data_pipe.dart", | 12 "lib/src/control_message.dart", |
13 "src/drain_data.dart", | 13 "lib/src/data_pipe.dart", |
14 "src/event_stream.dart", | 14 "lib/src/drain_data.dart", |
15 "src/handle.dart", | 15 "lib/src/event_stream.dart", |
16 "src/message.dart", | 16 "lib/src/handle.dart", |
17 "src/message_pipe.dart", | 17 "lib/src/message.dart", |
18 "src/proxy.dart", | 18 "lib/src/message_pipe.dart", |
19 "src/struct.dart", | 19 "lib/src/proxy.dart", |
20 "src/stub.dart", | 20 "lib/src/struct.dart", |
21 "src/types.dart", | 21 "lib/src/stub.dart", |
| 22 "lib/src/types.dart", |
22 ] | 23 ] |
23 | 24 |
24 dart_package("dart") { | 25 dartzip_package("dart") { |
25 # This base dir ensures that Dart's Mojo SDK can be imported with, e.g., | 26 sources = dart_mojo_sdk_sources + [ |
26 # import 'package:mojo/public/dart/core.dart' even when the Mojo SDK lives | 27 "pubspec.yaml", |
27 # somewhere else in the source tree. | 28 "README.md", |
28 base_dir = rebase_path("../../$mojo_root", ".", ".") | 29 ] |
29 sources = dart_mojo_sdk_sources | 30 uses_pub = true |
| 31 package_name_override = "mojo" |
30 deps = [ | 32 deps = [ |
31 "../interfaces/application", | 33 "../interfaces/application", |
| 34 "../interfaces/bindings", |
32 ] | 35 ] |
33 } | 36 } |
| 37 |
| 38 dart_pkg("mojo") { |
| 39 sources = dart_mojo_sdk_sources + [ |
| 40 "pubspec.yaml", |
| 41 "README.md", |
| 42 ] |
| 43 deps = [ |
| 44 "../interfaces/application", |
| 45 "../interfaces/bindings", |
| 46 ] |
| 47 } |
OLD | NEW |