Index: mojo/public/dart/BUILD.gn |
diff --git a/mojo/public/dart/BUILD.gn b/mojo/public/dart/BUILD.gn |
index 83c5a25284717efaeec04617b22446b2b606374a..89af889199be266210930255d2c881d7814d9c69 100644 |
--- a/mojo/public/dart/BUILD.gn |
+++ b/mojo/public/dart/BUILD.gn |
@@ -3,16 +3,63 @@ |
# found in the LICENSE file. |
group("dart") { |
+ testonly = true |
deps = [ |
+ ":core", |
":bindings", |
] |
} |
+group("core") { |
+ deps = [ |
+ ":mojo_dart_core", |
+ ":copy_core_library", |
+ ] |
+} |
+ |
+ |
+shared_library("mojo_dart_core") { |
+ defines = ["DART_SHARED_LIB"] |
+ sources = [ |
+ "src/mojo_dart_core.cc", |
+ ] |
+ deps = [ |
+ "//mojo/public/c/environment", |
+ "//mojo/public/c/system:for_shared_library", |
+ "//mojo/public/cpp/environment:standalone", |
+ "//mojo/public/cpp/system", |
+ "//mojo/public/cpp/utility", |
+ "//mojo/public/cpp/bindings:callback", |
+ ] |
+} |
+ |
+ |
+copy("copy_core_library") { |
+ sources = [ |
+ "$root_out_dir/libmojo_dart_core.so", |
+ ] |
+ outputs = [ |
+ "$root_out_dir/gen/mojo/public/dart/src/libmojo_dart_core.so" |
+ ] |
+ deps =[ |
+ ":mojo_dart_core" |
+ ] |
+} |
+ |
+ |
copy("bindings") { |
sources = [ |
"bindings.dart", |
+ "core.dart", |
+ "mojo_init.dart", |
+ "src/buffer.dart", |
"src/codec.dart", |
+ "src/data_pipe.dart", |
+ "src/handle.dart", |
+ "src/handle_watcher.dart", |
+ "src/message_pipe.dart", |
+ "src/types.dart", |
] |
outputs = [ |
"{{source_gen_dir}}/{{source_file_part}}" |