| 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 import("//sky/engine/bindings/core/v8/generated.gni") | 5 import("//sky/engine/bindings/core/v8/generated.gni") |
| 6 import("//sky/engine/bindings/core/core.gni") | 6 import("//sky/engine/bindings/core/core.gni") |
| 7 import("//sky/engine/bindings/core/idl.gni") | 7 import("//sky/engine/bindings/core/idl.gni") |
| 8 | 8 |
| 9 bindings_scripts_dir = get_path_info(".", "abspath") | 9 bindings_scripts_dir = get_path_info(".", "abspath") |
| 10 bindings_scripts_output_dir = "$root_gen_dir/sky/bindings/scripts" | 10 bindings_scripts_output_dir = "$root_gen_dir/sky/bindings/scripts" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 visibility = invoker.visibility | 39 visibility = invoker.visibility |
| 40 } | 40 } |
| 41 | 41 |
| 42 # Save static list to temp file to avoid blowing out command-line length | 42 # Save static list to temp file to avoid blowing out command-line length |
| 43 # limit. | 43 # limit. |
| 44 file_list = "$target_gen_dir/${target_name}_file_list.txt" | 44 file_list = "$target_gen_dir/${target_name}_file_list.txt" |
| 45 write_file(file_list, rebase_path(invoker.sources_static, root_build_dir)) | 45 write_file(file_list, rebase_path(invoker.sources_static, root_build_dir)) |
| 46 | 46 |
| 47 inputs = [ | 47 inputs = [ |
| 48 "$bindings_scripts_dir/utilities.py", | 48 "$bindings_scripts_dir/utilities.py", |
| 49 file_list, | |
| 50 ] + invoker.sources_static + invoker.sources_generated | 49 ] + invoker.sources_static + invoker.sources_generated |
| 51 | 50 |
| 52 outputs = [ | 51 outputs = [ |
| 52 file_list, |
| 53 invoker.output_file | 53 invoker.output_file |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 args = [ | 56 args = [ |
| 57 "--component-dir", invoker.component_dir, | 57 "--component-dir", invoker.component_dir, |
| 58 "--idl-files-list", rebase_path(file_list, root_build_dir), | 58 "--idl-files-list", rebase_path(file_list, root_build_dir), |
| 59 "--interfaces-info-file", | 59 "--interfaces-info-file", |
| 60 rebase_path(invoker.output_file, root_build_dir), | 60 rebase_path(invoker.output_file, root_build_dir), |
| 61 "--write-file-only-if-changed=1", | 61 "--write-file-only-if-changed=1", |
| 62 "--", | 62 "--", |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 outputs = invoker.outputs | 227 outputs = invoker.outputs |
| 228 | 228 |
| 229 args = [ | 229 args = [ |
| 230 invoker.component_dir, | 230 invoker.component_dir, |
| 231 rebase_path(idl_files_list, root_build_dir), | 231 rebase_path(idl_files_list, root_build_dir), |
| 232 "--", | 232 "--", |
| 233 ] | 233 ] |
| 234 args += rebase_path(invoker.outputs, root_build_dir) | 234 args += rebase_path(invoker.outputs, root_build_dir) |
| 235 } | 235 } |
| 236 } | 236 } |
| OLD | NEW |