| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//sky/engine/bindings/bindings.gni") | 5 import("//sky/engine/bindings/bindings.gni") |
| 6 import("//sky/engine/core/core.gni") | 6 import("//sky/engine/core/core.gni") |
| 7 | 7 |
| 8 source_set("bindings") { | 8 source_set("bindings") { |
| 9 sources = [ | 9 sources = [ |
| 10 "builtin.cc", | 10 "builtin.cc", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 ] | 32 ] |
| 33 deps = [ | 33 deps = [ |
| 34 "//base", | 34 "//base", |
| 35 "//dart/runtime/bin:libdart_withcore", | 35 "//dart/runtime/bin:libdart_withcore", |
| 36 "//mojo/public/c/system", | 36 "//mojo/public/c/system", |
| 37 "//mojo/public/cpp/system", | 37 "//mojo/public/cpp/system", |
| 38 "//sky/engine/platform:platform", | 38 "//sky/engine/platform:platform", |
| 39 "//sky/engine/tonic", | 39 "//sky/engine/tonic", |
| 40 "//sky/engine/wtf", | 40 "//sky/engine/wtf", |
| 41 ":generated_bindings", | 41 ":generated_bindings", |
| 42 ":patches_cc", |
| 42 ":snapshot_cc", | 43 ":snapshot_cc", |
| 43 ] | 44 ] |
| 44 include_dirs = [ | 45 include_dirs = [ |
| 45 "..", | 46 "..", |
| 46 "$root_build_dir", | 47 "$root_build_dir", |
| 47 ] | 48 ] |
| 48 } | 49 } |
| 49 | 50 |
| 50 action("generate_snapshot_bin") { | 51 action("generate_snapshot_bin") { |
| 51 deps = [ | 52 deps = [ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 source_set("snapshot_cc") { | 137 source_set("snapshot_cc") { |
| 137 sources = [ | 138 sources = [ |
| 138 "$target_gen_dir/snapshot.cc", | 139 "$target_gen_dir/snapshot.cc", |
| 139 ] | 140 ] |
| 140 | 141 |
| 141 deps = [ | 142 deps = [ |
| 142 ":generate_snapshot_file", | 143 ":generate_snapshot_file", |
| 143 ] | 144 ] |
| 144 } | 145 } |
| 145 | 146 |
| 147 action("generate_dart_embedder_patch_resources_cc") { |
| 148 inputs = [ |
| 149 "//dart/runtime/tools/create_resources.py", |
| 150 "//mojo/dart/embedder/core/buffer_patch.dart", |
| 151 "//mojo/dart/embedder/core/data_pipe_patch.dart", |
| 152 "//mojo/dart/embedder/core/handle_patch.dart", |
| 153 "//mojo/dart/embedder/core/handle_watcher_patch.dart", |
| 154 "//mojo/dart/embedder/core/message_pipe_patch.dart", |
| 155 ] |
| 156 output = "$target_gen_dir/dart_embedder_patch_resources.cc" |
| 157 outputs = [ |
| 158 output, |
| 159 ] |
| 160 |
| 161 # Patch files |
| 162 buffer_patch_path = rebase_path("//mojo/dart/embedder/core/buffer_patch.dart") |
| 163 data_pipe_patch_path = |
| 164 rebase_path("//mojo/dart/embedder/core/data_pipe_patch.dart") |
| 165 handle_patch_path = rebase_path("//mojo/dart/embedder/core/handle_patch.dart") |
| 166 handle_watcher_patch_path = |
| 167 rebase_path("//mojo/dart/embedder/core/handle_watcher_patch.dart") |
| 168 message_pipe_patch_path = |
| 169 rebase_path("//mojo/dart/embedder/core/message_pipe_patch.dart") |
| 170 |
| 171 root_path = rebase_path("//mojo/dart/embedder/") |
| 172 script = "//dart/runtime/tools/create_resources.py" |
| 173 |
| 174 args = [ |
| 175 "--output", |
| 176 rebase_path(output), |
| 177 "--outer_namespace", |
| 178 "blink", |
| 179 |
| 180 #"--inner_namespace", |
| 181 #"dart", |
| 182 "--table_name", |
| 183 "dart_embedder_patch", |
| 184 "--root_prefix", |
| 185 root_path, |
| 186 buffer_patch_path, |
| 187 data_pipe_patch_path, |
| 188 handle_patch_path, |
| 189 handle_watcher_patch_path, |
| 190 message_pipe_patch_path, |
| 191 ] |
| 192 } |
| 193 |
| 194 source_set("patches_cc") { |
| 195 sources = [ |
| 196 "$target_gen_dir/dart_embedder_patch_resources.cc", |
| 197 ] |
| 198 |
| 199 deps = [ |
| 200 ":generate_dart_embedder_patch_resources_cc", |
| 201 ] |
| 202 } |
| 203 |
| 146 action("compute_interfaces_info_individual") { | 204 action("compute_interfaces_info_individual") { |
| 147 sources = core_idl_files + core_dependency_idl_files | 205 sources = core_idl_files + core_dependency_idl_files |
| 148 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py" | 206 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py" |
| 149 output_file = "$bindings_output_dir/InterfacesInfoIndividual.pickle" | 207 output_file = "$bindings_output_dir/InterfacesInfoIndividual.pickle" |
| 150 | 208 |
| 151 # TODO(eseidel): This is no longer needed, could pass these as args. | 209 # TODO(eseidel): This is no longer needed, could pass these as args. |
| 152 file_list = "$target_gen_dir/${target_name}_file_list.txt" | 210 file_list = "$target_gen_dir/${target_name}_file_list.txt" |
| 153 write_file(file_list, rebase_path(sources, root_build_dir)) | 211 write_file(file_list, rebase_path(sources, root_build_dir)) |
| 154 | 212 |
| 155 # TODO(eseidel): Use depfile instead of this manual list. | 213 # TODO(eseidel): Use depfile instead of this manual list. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 ] | 448 ] |
| 391 | 449 |
| 392 include_dirs = [ | 450 include_dirs = [ |
| 393 "..", | 451 "..", |
| 394 "$root_build_dir", | 452 "$root_build_dir", |
| 395 ] | 453 ] |
| 396 | 454 |
| 397 sources = get_target_outputs(":compile_idls") | 455 sources = get_target_outputs(":compile_idls") |
| 398 sources += get_target_outputs(":generate_dart_globals") | 456 sources += get_target_outputs(":generate_dart_globals") |
| 399 } | 457 } |
| OLD | NEW |