Chromium Code Reviews| Index: mojo/dart/embedder/BUILD.gn |
| diff --git a/mojo/dart/embedder/BUILD.gn b/mojo/dart/embedder/BUILD.gn |
| index 25943b3a843591e05f21745598b4f6d3d6186b53..bb662f014cdcd170e422e54a711981259ca11ee6 100644 |
| --- a/mojo/dart/embedder/BUILD.gn |
| +++ b/mojo/dart/embedder/BUILD.gn |
| @@ -12,6 +12,7 @@ source_set("dart_controller_no_snapshot") { |
| "isolate_data.h", |
| "mojo_natives.cc", |
| "mojo_natives.h", |
| + "$target_gen_dir/dart_mojo_core_patch.cc", |
| ] |
| deps = [ |
| @@ -22,6 +23,7 @@ source_set("dart_controller_no_snapshot") { |
| "//dart/runtime/bin:libdart_embedder_noio", |
| "//mojo/public/c/system", |
| "//mojo/public/cpp/system", |
| + "//mojo/dart/embedder:generate_dart_mojo_core_patch_cc", |
|
zra
2015/02/23 23:21:02
I believe this can just be
":generate_dart_mojo_c
Cutch
2015/02/24 15:36:48
Done.
|
| ] |
| defines = [] |
| @@ -33,3 +35,47 @@ source_set("dart_controller_no_snapshot") { |
| include_dirs = [ "//dart/runtime" ] |
| } |
| + |
| +action("generate_dart_mojo_core_patch_cc") { |
| + inputs = [ |
| + "//mojo/dart/embedder/core/buffer_patch.dart", |
| + "//mojo/dart/embedder/core/data_pipe_patch.dart", |
| + "//mojo/dart/embedder/core/handle_patch.dart", |
| + "//mojo/dart/embedder/core/handle_watcher_patch.dart", |
| + "//mojo/dart/embedder/core/message_pipe_patch.dart", |
| + "//dart/runtime/tools/gen_library_src_paths.py", |
| + "//dart/runtime/bin/builtin_in.cc", |
| + ] |
| + output = "$target_gen_dir/dart_mojo_core_patch.cc" |
| + outputs = [ |
| + output, |
| + ] |
| + buffer_patch_path = rebase_path("//mojo/dart/embedder/core/buffer_patch.dart") |
| + data_pipe_patch_path = |
| + rebase_path("//mojo/dart/embedder/core/data_pipe_patch.dart") |
| + handle_patch_path = rebase_path("//mojo/dart/embedder/core/handle_patch.dart") |
| + handle_watcher_patch_path = |
| + rebase_path("//mojo/dart/embedder/core/handle_watcher_patch.dart") |
| + message_pipe_patch_path = |
| + rebase_path("//mojo/dart/embedder/core/message_pipe_patch.dart") |
| + builtin_in_cc_path = rebase_path("//dart/runtime/bin/builtin_in.cc") |
| + builtin_h_path = rebase_path("//mojo/dart/embedder/builtin.h") |
| + script = "//dart/runtime/tools/gen_library_src_paths.py" |
| + args = [ |
| + "--output", |
| + rebase_path(output), |
| + "--input_cc", |
| + builtin_in_cc_path, |
| + "--include", |
| + builtin_h_path, |
| + "--var_name", |
| + "mojo::dart::Builtin::mojo_core_patch_paths_", |
| + "--library_name", |
| + "dart:mojo_core", |
| + buffer_patch_path, |
| + data_pipe_patch_path, |
| + handle_patch_path, |
| + handle_watcher_patch_path, |
| + message_pipe_patch_path, |
| + ] |
| +} |