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

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

Issue 674383002: Initial work on Dart bindings for Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge. Work on templates. Created 6 years, 1 month 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/public/BUILD.gn ('k') | mojo/public/dart/bindings/lib/bindings.dart » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..b4c486b57bd6f7169f4da124c30e78f6884c3289
--- /dev/null
+++ b/mojo/public/dart/BUILD.gn
@@ -0,0 +1,72 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+group("dart") {
+ deps = [
+ ":system",
+ ":bindings",
+ ]
+}
+
+group("system") {
+ deps = [
+ ":mojo_dart_system",
+ ":copy_system",
+ ]
+}
+
+shared_library("mojo_dart_system") {
+ dart_flags = "//mojo/dart/tools/find_api_include_path.py"
+ include_dirs = exec_script(dart_flags, [], "list lines")
+ defines = ["DART_SHARED_LIB"]
+ sources = [
+ "system/lib/src/mojo_dart_system.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_system") {
+ sources = [
+ "$root_out_dir/libmojo_dart_system.so",
+ ]
+ outputs = [
+ "$root_out_dir/gen/mojo/public/dart/system/lib/src/libmojo_dart_system.so"
+ ]
+ deps =[
+ ":mojo_dart_system"
+ ]
+}
+
+copy("bindings") {
+ sources = [
+ "bindings/lib/bindings.dart",
+ "bindings/lib/src/interface.dart",
+ "bindings/lib/src/client.dart",
+ "bindings/lib/src/codec.dart",
+ "bindings/test/codec_test.dart",
+ "system/lib/embedder.dart",
+ "system/lib/src/handle.dart",
+ "system/lib/src/types.dart",
+ "system/lib/src/buffer.dart",
+ "system/lib/src/handle_watcher.dart",
+ "system/lib/src/data_pipe.dart",
+ "system/lib/src/message_pipe.dart",
+ "system/lib/core.dart",
+ "system/tests/event_handler_test.dart",
+ "system/tests/core_test.dart",
+ "tests/echo_test.dart",
+ "tests/bindings_generation_test.dart",
+ "utils/lib/expect.dart",
+ ]
+ outputs = [
+ "{{source_gen_dir}}/{{source_file_part}}"
+ ]
+}
« no previous file with comments | « mojo/public/BUILD.gn ('k') | mojo/public/dart/bindings/lib/bindings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698