Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1077)

Unified Diff: mojo/public/dart/BUILD.gn

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/dart/testing/validation_test_input_parser.dart ('k') | mojo/public/dart/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/BUILD.gn
diff --git a/mojo/public/dart/BUILD.gn b/mojo/public/dart/BUILD.gn
index 6d0be7870f402eb0546d390ad2dd91fee783fa25..7305582dd8ed3b5d745f3f82c428f5970ddd50a3 100644
--- a/mojo/public/dart/BUILD.gn
+++ b/mojo/public/dart/BUILD.gn
@@ -2,32 +2,44 @@ import("../mojo_sdk.gni")
import("rules.gni")
dart_mojo_sdk_sources = [
- "application.dart",
- "bindings.dart",
- "core.dart",
- "src/application_connection.dart",
- "src/application.dart",
- "src/buffer.dart",
- "src/codec.dart",
- "src/control_message.dart",
- "src/data_pipe.dart",
- "src/drain_data.dart",
- "src/event_stream.dart",
- "src/handle.dart",
- "src/message.dart",
- "src/message_pipe.dart",
- "src/proxy.dart",
- "src/struct.dart",
- "src/stub.dart",
- "src/types.dart",
+ "lib/application.dart",
+ "lib/bindings.dart",
+ "lib/core.dart",
+ "lib/src/application_connection.dart",
+ "lib/src/application.dart",
+ "lib/src/buffer.dart",
+ "lib/src/codec.dart",
+ "lib/src/control_message.dart",
+ "lib/src/data_pipe.dart",
+ "lib/src/drain_data.dart",
+ "lib/src/event_stream.dart",
+ "lib/src/handle.dart",
+ "lib/src/message.dart",
+ "lib/src/message_pipe.dart",
+ "lib/src/proxy.dart",
+ "lib/src/struct.dart",
+ "lib/src/stub.dart",
+ "lib/src/types.dart",
]
-dart_package("dart") {
- # This base dir ensures that Dart's Mojo SDK can be imported with, e.g.,
- # import 'package:mojo/public/dart/core.dart' even when the Mojo SDK lives
- # somewhere else in the source tree.
- base_dir = rebase_path("../../$mojo_root", ".", ".")
- sources = dart_mojo_sdk_sources
+dartzip_package("dart") {
+ sources = dart_mojo_sdk_sources + [
+ "pubspec.yaml",
+ "README.md",
+ ]
+ uses_pub = true
+ package_name_override = "mojo"
+ deps = [
+ "../interfaces/application",
+ "../interfaces/bindings",
+ ]
+}
+
+dart_pkg("mojo") {
+ sources = dart_mojo_sdk_sources + [
+ "pubspec.yaml",
+ "README.md",
+ ]
deps = [
"../interfaces/application",
"../interfaces/bindings",
« no previous file with comments | « mojo/dart/testing/validation_test_input_parser.dart ('k') | mojo/public/dart/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698