| 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}}"
|
| + ]
|
| +}
|
|
|