OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 source_set("dart_controller_no_snapshot") { | 5 source_set("dart_controller_no_snapshot") { |
6 sources = [ | 6 sources = [ |
7 "builtin.cc", | 7 "builtin.cc", |
8 "builtin.h", | 8 "builtin.h", |
9 "builtin_natives.cc", | 9 "builtin_natives.cc", |
10 "dart_controller.cc", | 10 "dart_controller.cc", |
11 "dart_controller.h", | 11 "dart_controller.h", |
12 "isolate_data.h", | 12 "isolate_data.h", |
13 "mojo_natives.cc", | 13 "mojo_natives.cc", |
14 "mojo_natives.h", | 14 "mojo_natives.h", |
| 15 "$target_gen_dir/dart_embedder_patch_resources.cc", |
15 ] | 16 ] |
16 | 17 |
17 deps = [ | 18 deps = [ |
| 19 ":generate_dart_embedder_patch_resources_cc", |
18 "//base", | 20 "//base", |
19 "//base:i18n", | 21 "//base:i18n", |
20 "//crypto", | 22 "//crypto", |
21 "//dart/runtime:libdart", | 23 "//dart/runtime:libdart", |
22 "//dart/runtime/bin:libdart_embedder_noio", | 24 "//dart/runtime/bin:libdart_embedder_noio", |
23 "//mojo/public/c/system", | 25 "//mojo/public/c/system", |
24 "//mojo/public/cpp/system", | 26 "//mojo/public/cpp/system", |
25 ] | 27 ] |
26 | 28 |
27 defines = [] | 29 defines = [] |
28 if (is_debug) { | 30 if (is_debug) { |
29 defines += [ "DEBUG" ] | 31 defines += [ "DEBUG" ] |
30 } else { | 32 } else { |
31 defines += [ "NDEBUG" ] | 33 defines += [ "NDEBUG" ] |
32 } | 34 } |
33 | 35 |
34 include_dirs = [ "//dart/runtime" ] | 36 include_dirs = [ "//dart/runtime" ] |
35 } | 37 } |
| 38 |
| 39 action("generate_dart_embedder_patch_resources_cc") { |
| 40 inputs = [ |
| 41 "//dart/runtime/tools/create_resources.py", |
| 42 "//mojo/dart/embedder/core/buffer_patch.dart", |
| 43 "//mojo/dart/embedder/core/data_pipe_patch.dart", |
| 44 "//mojo/dart/embedder/core/handle_patch.dart", |
| 45 "//mojo/dart/embedder/core/handle_watcher_patch.dart", |
| 46 "//mojo/dart/embedder/core/message_pipe_patch.dart", |
| 47 ] |
| 48 output = "$target_gen_dir/dart_embedder_patch_resources.cc" |
| 49 outputs = [ |
| 50 output, |
| 51 ] |
| 52 |
| 53 # Patch files |
| 54 buffer_patch_path = rebase_path("//mojo/dart/embedder/core/buffer_patch.dart") |
| 55 data_pipe_patch_path = |
| 56 rebase_path("//mojo/dart/embedder/core/data_pipe_patch.dart") |
| 57 handle_patch_path = rebase_path("//mojo/dart/embedder/core/handle_patch.dart") |
| 58 handle_watcher_patch_path = |
| 59 rebase_path("//mojo/dart/embedder/core/handle_watcher_patch.dart") |
| 60 message_pipe_patch_path = |
| 61 rebase_path("//mojo/dart/embedder/core/message_pipe_patch.dart") |
| 62 |
| 63 root_path = rebase_path("//mojo/dart/embedder/") |
| 64 script = "//dart/runtime/tools/create_resources.py" |
| 65 |
| 66 args = [ |
| 67 "--output", |
| 68 rebase_path(output), |
| 69 "--outer_namespace", |
| 70 "mojo", |
| 71 "--inner_namespace", |
| 72 "dart", |
| 73 "--table_name", |
| 74 "dart_embedder_patch", |
| 75 "--root_prefix", |
| 76 root_path, |
| 77 buffer_patch_path, |
| 78 data_pipe_patch_path, |
| 79 handle_patch_path, |
| 80 handle_watcher_patch_path, |
| 81 message_pipe_patch_path, |
| 82 ] |
| 83 } |
OLD | NEW |