| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ] | 43 ] |
| 44 include_dirs = [ | 44 include_dirs = [ |
| 45 "..", | 45 "..", |
| 46 "$root_build_dir", | 46 "$root_build_dir", |
| 47 ] | 47 ] |
| 48 } | 48 } |
| 49 | 49 |
| 50 action("generate_snapshot_bin") { | 50 action("generate_snapshot_bin") { |
| 51 deps = [ | 51 deps = [ |
| 52 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | 52 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 53 ":generate_sky_core_dart", | 53 ":generate_dart_sky", |
| 54 ] | 54 ] |
| 55 inputs = [ | 55 inputs = [ |
| 56 "//dart/runtime/tools/create_snapshot_bin.py", | 56 "//dart/runtime/tools/create_snapshot_bin.py", |
| 57 "//sky/engine/bindings/builtin.dart", | 57 "//sky/engine/bindings/builtin.dart", |
| 58 "//mojo/public/dart/bindings.dart", | 58 "//mojo/public/dart/bindings.dart", |
| 59 "//mojo/public/dart/core.dart", | 59 "//mojo/public/dart/core.dart", |
| 60 "//mojo/public/dart/src/application.dart", | 60 "//mojo/public/dart/src/application.dart", |
| 61 "//mojo/public/dart/src/application_connection.dart", | 61 "//mojo/public/dart/src/application_connection.dart", |
| 62 "//mojo/public/dart/src/buffer.dart", | 62 "//mojo/public/dart/src/buffer.dart", |
| 63 "//mojo/public/dart/src/codec.dart", | 63 "//mojo/public/dart/src/codec.dart", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 74 "//mojo/public/dart/src/timer_queue.dart", | 74 "//mojo/public/dart/src/timer_queue.dart", |
| 75 "//mojo/public/dart/src/types.dart", | 75 "//mojo/public/dart/src/types.dart", |
| 76 "snapshot.dart", | 76 "snapshot.dart", |
| 77 ] | 77 ] |
| 78 output = "$target_gen_dir/snapshot_gen.bin" | 78 output = "$target_gen_dir/snapshot_gen.bin" |
| 79 outputs = [ | 79 outputs = [ |
| 80 output, | 80 output, |
| 81 ] | 81 ] |
| 82 | 82 |
| 83 builtin_path = rebase_path("//sky/engine/bindings/builtin.dart") | 83 builtin_path = rebase_path("//sky/engine/bindings/builtin.dart") |
| 84 sky_core_path = rebase_path("$bindings_output_dir/sky_core.dart") | 84 dart_sky_path = rebase_path("$bindings_output_dir/dart_sky.dart") |
| 85 mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") | 85 mojo_bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
| 86 mojo_core_path = rebase_path("//mojo/public/dart/core.dart") | 86 mojo_core_path = rebase_path("//mojo/public/dart/core.dart") |
| 87 | 87 |
| 88 gen_snapshot_dir = | 88 gen_snapshot_dir = |
| 89 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", | 89 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 90 "root_out_dir") | 90 "root_out_dir") |
| 91 script = "//dart/runtime/tools/create_snapshot_bin.py" | 91 script = "//dart/runtime/tools/create_snapshot_bin.py" |
| 92 | 92 |
| 93 args = [ | 93 args = [ |
| 94 "--executable", | 94 "--executable", |
| 95 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 95 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
| 96 "--package_root", | 96 "--package_root", |
| 97 rebase_path("$root_gen_dir"), | 97 rebase_path("$root_gen_dir"), |
| 98 "--script", | 98 "--script", |
| 99 rebase_path("snapshot.dart"), | 99 rebase_path("snapshot.dart"), |
| 100 "--output_bin", | 100 "--output_bin", |
| 101 rebase_path(output, root_build_dir), | 101 rebase_path(output, root_build_dir), |
| 102 "--target_os", | 102 "--target_os", |
| 103 os, | 103 os, |
| 104 "--url_mapping=dart:sky,$sky_core_path", | 104 "--url_mapping=dart:sky,$dart_sky_path", |
| 105 "--url_mapping=mojo:bindings,$mojo_bindings_path", | 105 "--url_mapping=mojo:bindings,$mojo_bindings_path", |
| 106 "--url_mapping=mojo:core,$mojo_core_path", | 106 "--url_mapping=mojo:core,$mojo_core_path", |
| 107 "--url_mapping=dart:sky_builtin,$builtin_path", | 107 "--url_mapping=dart:sky_builtin,$builtin_path", |
| 108 ] | 108 ] |
| 109 } | 109 } |
| 110 | 110 |
| 111 action("generate_snapshot_file") { | 111 action("generate_snapshot_file") { |
| 112 deps = [ | 112 deps = [ |
| 113 ":generate_snapshot_bin", | 113 ":generate_snapshot_bin", |
| 114 ] | 114 ] |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 "--generate-globals", | 327 "--generate-globals", |
| 328 rebase_path(bindings_output_dir, root_build_dir), | 328 rebase_path(bindings_output_dir, root_build_dir), |
| 329 rebase_path(file_list, root_build_dir), | 329 rebase_path(file_list, root_build_dir), |
| 330 ] | 330 ] |
| 331 | 331 |
| 332 deps = [ | 332 deps = [ |
| 333 ":compile_idls", | 333 ":compile_idls", |
| 334 ] | 334 ] |
| 335 } | 335 } |
| 336 | 336 |
| 337 action("generate_sky_core_dart") { | 337 action("generate_dart_sky") { |
| 338 sources = core_idl_files | 338 sources = core_idl_files |
| 339 script = "$bindings_scripts_dir/compiler.py" | 339 script = "$bindings_scripts_dir/compiler.py" |
| 340 | 340 |
| 341 file_list = "$target_gen_dir/${target_name}_file_list.txt" | 341 file_list = "$target_gen_dir/${target_name}_file_list.txt" |
| 342 write_file(file_list, rebase_path(sources, root_build_dir)) | 342 write_file(file_list, rebase_path(sources, root_build_dir)) |
| 343 | 343 |
| 344 inputs = | 344 inputs = |
| 345 sources + idl_compiler_files + [ "scripts/templates/dart_blink.template" ] | 345 sources + idl_compiler_files + [ "scripts/templates/dart_blink.template" ] |
| 346 | 346 |
| 347 outputs = [ | 347 outputs = [ |
| 348 file_list, | 348 file_list, |
| 349 "$bindings_output_dir/sky_core.dart", | 349 "$bindings_output_dir/dart_sky.dart", |
| 350 ] | 350 ] |
| 351 | 351 |
| 352 args = [ | 352 args = [ |
| 353 "--output-directory", | 353 "--output-directory", |
| 354 rebase_path(bindings_output_dir, root_build_dir), | 354 rebase_path(bindings_output_dir, root_build_dir), |
| 355 "--generate-dart-blink", | 355 "--generate-dart-blink", |
| 356 rebase_path(bindings_output_dir, root_build_dir), | 356 rebase_path(bindings_output_dir, root_build_dir), |
| 357 rebase_path(file_list, root_build_dir), | 357 rebase_path(file_list, root_build_dir), |
| 358 ] | 358 ] |
| 359 | 359 |
| (...skipping 30 matching lines...) Expand all 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 |