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..d71d9977436ee5342492b0f67b298ce1bb450e28 100644 |
| --- a/mojo/dart/embedder/BUILD.gn |
| +++ b/mojo/dart/embedder/BUILD.gn |
| @@ -12,9 +12,11 @@ source_set("dart_controller_no_snapshot") { |
| "isolate_data.h", |
| "mojo_natives.cc", |
| "mojo_natives.h", |
| + "$target_gen_dir/dart_embedder_patch_resources.cc", |
| ] |
| deps = [ |
| + ":generate_dart_embedder_patch_resources_cc", |
| "//base", |
| "//base:i18n", |
| "//crypto", |
| @@ -33,3 +35,49 @@ source_set("dart_controller_no_snapshot") { |
| include_dirs = [ "//dart/runtime" ] |
| } |
| + |
| +action("generate_dart_embedder_patch_resources_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/create_resources.py", |
|
zra
2015/02/24 15:56:35
alphabetical order, so this goes to the top.
Cutch
2015/02/24 16:02:03
Done.
|
| + ] |
| + output = "$target_gen_dir/dart_embedder_patch_resources.cc" |
| + outputs = [ |
| + output, |
| + ] |
| + |
| + # Patch files |
| + 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") |
| + |
| + root_path = rebase_path("//mojo/dart/embedder/") |
| + script = "//dart/runtime/tools/create_resources.py" |
| + |
| + args = [ |
| + "--output", |
| + rebase_path(output), |
| + "--outer_namespace", |
| + "mojo", |
| + "--inner_namespace", |
| + "dart", |
| + "--table_name", |
| + "dart_embedder_patch", |
| + "--root_prefix", |
| + root_path, |
| + buffer_patch_path, |
| + data_pipe_patch_path, |
| + handle_patch_path, |
| + handle_watcher_patch_path, |
| + message_pipe_patch_path, |
| + ] |
| +} |