| 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/bindings2/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("bindings2") { | 8 source_set("bindings") { |
| 9 sources = [ | 9 sources = [ |
| 10 "builtin.cc", | 10 "builtin.cc", |
| 11 "builtin.h", | 11 "builtin.h", |
| 12 "builtin_natives.cc", | 12 "builtin_natives.cc", |
| 13 "builtin_natives.h", | 13 "builtin_natives.h", |
| 14 "builtin_sky.cc", | 14 "builtin_sky.cc", |
| 15 "builtin_sky.h", | 15 "builtin_sky.h", |
| 16 "dart_callback.cc", | 16 "dart_callback.cc", |
| 17 "dart_callback.h", | 17 "dart_callback.h", |
| 18 "dart_event_listener.cc", | 18 "dart_event_listener.cc", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 46 ] | 46 ] |
| 47 } | 47 } |
| 48 | 48 |
| 49 action("generate_snapshot_bin") { | 49 action("generate_snapshot_bin") { |
| 50 deps = [ | 50 deps = [ |
| 51 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | 51 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 52 ":generate_sky_core_dart", | 52 ":generate_sky_core_dart", |
| 53 ] | 53 ] |
| 54 inputs = [ | 54 inputs = [ |
| 55 "//dart/runtime/tools/create_snapshot_bin.py", | 55 "//dart/runtime/tools/create_snapshot_bin.py", |
| 56 "//sky/engine/bindings2/builtin.dart", | 56 "//sky/engine/bindings/builtin.dart", |
| 57 "//mojo/public/dart/bindings.dart", | 57 "//mojo/public/dart/bindings.dart", |
| 58 "//mojo/public/dart/core.dart", | 58 "//mojo/public/dart/core.dart", |
| 59 "//mojo/public/dart/src/application.dart", | 59 "//mojo/public/dart/src/application.dart", |
| 60 "//mojo/public/dart/src/buffer.dart", | 60 "//mojo/public/dart/src/buffer.dart", |
| 61 "//mojo/public/dart/src/codec.dart", | 61 "//mojo/public/dart/src/codec.dart", |
| 62 "//mojo/public/dart/src/data_pipe.dart", | 62 "//mojo/public/dart/src/data_pipe.dart", |
| 63 "//mojo/public/dart/src/drain_data.dart", | 63 "//mojo/public/dart/src/drain_data.dart", |
| 64 "//mojo/public/dart/src/event_stream.dart", | 64 "//mojo/public/dart/src/event_stream.dart", |
| 65 "//mojo/public/dart/src/handle.dart", | 65 "//mojo/public/dart/src/handle.dart", |
| 66 "//mojo/public/dart/src/handle_watcher.dart", | 66 "//mojo/public/dart/src/handle_watcher.dart", |
| 67 "//mojo/public/dart/src/message.dart", | 67 "//mojo/public/dart/src/message.dart", |
| 68 "//mojo/public/dart/src/message_pipe.dart", | 68 "//mojo/public/dart/src/message_pipe.dart", |
| 69 "//mojo/public/dart/src/proxy.dart", | 69 "//mojo/public/dart/src/proxy.dart", |
| 70 "//mojo/public/dart/src/service_provider.dart", | 70 "//mojo/public/dart/src/service_provider.dart", |
| 71 "//mojo/public/dart/src/struct.dart", | 71 "//mojo/public/dart/src/struct.dart", |
| 72 "//mojo/public/dart/src/stub.dart", | 72 "//mojo/public/dart/src/stub.dart", |
| 73 "//mojo/public/dart/src/timer_queue.dart", | 73 "//mojo/public/dart/src/timer_queue.dart", |
| 74 "//mojo/public/dart/src/types.dart", | 74 "//mojo/public/dart/src/types.dart", |
| 75 "snapshot.dart", | 75 "snapshot.dart", |
| 76 ] | 76 ] |
| 77 output = "$target_gen_dir/snapshot_gen.bin" | 77 output = "$target_gen_dir/snapshot_gen.bin" |
| 78 outputs = [ | 78 outputs = [ |
| 79 output, | 79 output, |
| 80 ] | 80 ] |
| 81 | 81 |
| 82 builtin_path = rebase_path("//sky/engine/bindings2/builtin.dart") | 82 builtin_path = rebase_path("//sky/engine/bindings/builtin.dart") |
| 83 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") | 83 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") |
| 84 mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") | 84 mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
| 85 mojo_core_path = rebase_path("//mojo/public/dart/core.dart") | 85 mojo_core_path = rebase_path("//mojo/public/dart/core.dart") |
| 86 | 86 |
| 87 gen_snapshot_dir = | 87 gen_snapshot_dir = |
| 88 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", | 88 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 89 "root_out_dir") | 89 "root_out_dir") |
| 90 script = "//dart/runtime/tools/create_snapshot_bin.py" | 90 script = "//dart/runtime/tools/create_snapshot_bin.py" |
| 91 | 91 |
| 92 args = [ | 92 args = [ |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 "scripts/templates/interface_cpp.template", | 246 "scripts/templates/interface_cpp.template", |
| 247 "scripts/templates/interface_dart.template", | 247 "scripts/templates/interface_dart.template", |
| 248 "scripts/templates/interface_h.template", | 248 "scripts/templates/interface_h.template", |
| 249 "scripts/templates/methods_cpp.template", | 249 "scripts/templates/methods_cpp.template", |
| 250 ] | 250 ] |
| 251 inputs += [ | 251 inputs += [ |
| 252 "$bindings_output_dir/lextab.py", | 252 "$bindings_output_dir/lextab.py", |
| 253 "$bindings_output_dir/parsetab.pickle", | 253 "$bindings_output_dir/parsetab.pickle", |
| 254 | 254 |
| 255 # "$bindings_output_dir/cached_jinja_templates.stamp", | 255 # "$bindings_output_dir/cached_jinja_templates.stamp", |
| 256 "//sky/engine/bindings2/IDLExtendedAttributes.txt", | 256 "//sky/engine/bindings/IDLExtendedAttributes.txt", |
| 257 | 257 |
| 258 # If the dependency structure or public interface info (e.g., | 258 # If the dependency structure or public interface info (e.g., |
| 259 # [ImplementedAs]) changes, we rebuild all files, since we"re not | 259 # [ImplementedAs]) changes, we rebuild all files, since we"re not |
| 260 # computing dependencies file-by-file in the build. | 260 # computing dependencies file-by-file in the build. |
| 261 # This data is generally stable. | 261 # This data is generally stable. |
| 262 interfaces_info_overall_path, | 262 interfaces_info_overall_path, |
| 263 ] | 263 ] |
| 264 | 264 |
| 265 # Further, if any dependency (partial interface or implemented | 265 # Further, if any dependency (partial interface or implemented |
| 266 # interface) changes, rebuild everything, since every IDL potentially | 266 # interface) changes, rebuild everything, since every IDL potentially |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 ] | 390 ] |
| 391 | 391 |
| 392 include_dirs = [ | 392 include_dirs = [ |
| 393 "..", | 393 "..", |
| 394 "$root_build_dir", | 394 "$root_build_dir", |
| 395 ] | 395 ] |
| 396 | 396 |
| 397 sources = get_target_outputs(":compile_idls") | 397 sources = get_target_outputs(":compile_idls") |
| 398 sources += get_target_outputs(":generate_dart_globals") | 398 sources += get_target_outputs(":generate_dart_globals") |
| 399 } | 399 } |
| OLD | NEW |