| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 "--generate-globals", | 323 "--generate-globals", |
| 324 rebase_path(bindings_output_dir, root_build_dir), | 324 rebase_path(bindings_output_dir, root_build_dir), |
| 325 rebase_path(file_list, root_build_dir), | 325 rebase_path(file_list, root_build_dir), |
| 326 ] | 326 ] |
| 327 | 327 |
| 328 deps = [ | 328 deps = [ |
| 329 ":compile_idls", | 329 ":compile_idls", |
| 330 ] | 330 ] |
| 331 } | 331 } |
| 332 | 332 |
| 333 copy("copy_core_dart_files") { |
| 334 sources = core_dart_files |
| 335 outputs = [ |
| 336 "$bindings_output_dir/{{source_file_part}}", |
| 337 ] |
| 338 } |
| 339 |
| 333 action("generate_dart_sky") { | 340 action("generate_dart_sky") { |
| 334 sources = core_idl_files | 341 sources = core_idl_files + core_dart_files |
| 335 script = "$bindings_scripts_dir/compiler.py" | 342 script = "$bindings_scripts_dir/compiler.py" |
| 336 | 343 |
| 337 file_list = "$target_gen_dir/${target_name}_file_list.txt" | 344 file_list = "$target_gen_dir/${target_name}_file_list.txt" |
| 338 write_file(file_list, rebase_path(sources, root_build_dir)) | 345 write_file(file_list, rebase_path(sources, root_build_dir)) |
| 339 | 346 |
| 340 inputs = | 347 inputs = |
| 341 sources + idl_compiler_files + [ "scripts/templates/dart_blink.template" ] | 348 sources + idl_compiler_files + [ "scripts/templates/dart_blink.template" ] |
| 342 | 349 |
| 343 outputs = [ | 350 outputs = [ |
| 344 file_list, | 351 file_list, |
| 345 "$bindings_output_dir/dart_sky.dart", | 352 "$bindings_output_dir/dart_sky.dart", |
| 346 ] | 353 ] |
| 347 | 354 |
| 348 args = [ | 355 args = [ |
| 349 "--output-directory", | 356 "--output-directory", |
| 350 rebase_path(bindings_output_dir, root_build_dir), | 357 rebase_path(bindings_output_dir, root_build_dir), |
| 351 "--generate-dart-blink", | 358 "--generate-dart-blink", |
| 352 rebase_path(bindings_output_dir, root_build_dir), | 359 rebase_path(bindings_output_dir, root_build_dir), |
| 353 rebase_path(file_list, root_build_dir), | 360 rebase_path(file_list, root_build_dir), |
| 354 ] | 361 ] |
| 355 | 362 |
| 356 deps = [ | 363 deps = [ |
| 364 ":copy_core_dart_files", |
| 357 ":compile_idls", | 365 ":compile_idls", |
| 358 ] | 366 ] |
| 359 } | 367 } |
| 360 | 368 |
| 361 source_set("generated_bindings") { | 369 source_set("generated_bindings") { |
| 362 deps = [ | 370 deps = [ |
| 363 "//base", | 371 "//base", |
| 364 "//dart/runtime/bin:libdart_withcore", | 372 "//dart/runtime/bin:libdart_withcore", |
| 365 "//gpu/command_buffer/client:gles2_c_lib", | 373 "//gpu/command_buffer/client:gles2_c_lib", |
| 366 "//mojo/application", | 374 "//mojo/application", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 386 ] | 394 ] |
| 387 | 395 |
| 388 include_dirs = [ | 396 include_dirs = [ |
| 389 "..", | 397 "..", |
| 390 "$root_build_dir", | 398 "$root_build_dir", |
| 391 ] | 399 ] |
| 392 | 400 |
| 393 sources = get_target_outputs(":compile_idls") | 401 sources = get_target_outputs(":compile_idls") |
| 394 sources += get_target_outputs(":generate_dart_globals") | 402 sources += get_target_outputs(":generate_dart_globals") |
| 395 } | 403 } |
| OLD | NEW |