| 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/build/scripts/scripts.gni") | 5 import("//sky/engine/build/scripts/scripts.gni") |
| 6 import("//sky/engine/core/core.gni") | 6 import("//sky/engine/core/core.gni") |
| 7 | 7 |
| 8 visibility = [ "//sky/engine/*" ] | 8 visibility = [ "//sky/engine/*" ] |
| 9 | 9 |
| 10 rel_sky_core_gen_dir = rebase_path(sky_core_output_dir, root_build_dir) | 10 rel_sky_core_gen_dir = rebase_path(sky_core_output_dir, root_build_dir) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 static_library("core") { | 56 static_library("core") { |
| 57 output_name = "sky_core" | 57 output_name = "sky_core" |
| 58 | 58 |
| 59 deps = [ | 59 deps = [ |
| 60 ":core_generated", | 60 ":core_generated", |
| 61 ":libraries", | 61 ":libraries", |
| 62 ":prerequisites", | 62 ":prerequisites", |
| 63 "//sky/engine/platform", | 63 "//sky/engine/platform", |
| 64 "//sky/engine/bindings2", | 64 "//sky/engine/bindings", |
| 65 "//dart/runtime/bin:libdart_withcore", | 65 "//dart/runtime/bin:libdart_withcore", |
| 66 ] | 66 ] |
| 67 | 67 |
| 68 sources = sky_core_files | 68 sources = sky_core_files |
| 69 | 69 |
| 70 forward_dependent_configs_from = [ ":libraries" ] | 70 forward_dependent_configs_from = [ ":libraries" ] |
| 71 | 71 |
| 72 # core and core_generated are really the same thing. | 72 # core and core_generated are really the same thing. |
| 73 allow_circular_includes_from = [ | 73 allow_circular_includes_from = [ |
| 74 ":core_generated", | 74 ":core_generated", |
| 75 "//sky/engine/bindings2", | 75 "//sky/engine/bindings", |
| 76 ] | 76 ] |
| 77 } | 77 } |
| 78 | 78 |
| 79 source_set("testing") { | 79 source_set("testing") { |
| 80 deps = [ | 80 deps = [ |
| 81 ":core", | 81 ":core", |
| 82 ":core_generated", | 82 ":core_generated", |
| 83 ":prerequisites", | 83 ":prerequisites", |
| 84 "//sky/engine/platform", | 84 "//sky/engine/platform", |
| 85 "//sky/engine/wtf", | 85 "//sky/engine/wtf", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 # output_file = The .in file to write, relative to the sky_gen_dir. | 133 # output_file = The .in file to write, relative to the sky_gen_dir. |
| 134 # suffix = (Optional) String to be passed to script via --suffix | 134 # suffix = (Optional) String to be passed to script via --suffix |
| 135 template("generate_event_interfaces") { | 135 template("generate_event_interfaces") { |
| 136 action(target_name) { | 136 action(target_name) { |
| 137 # Write the file list to a unique temp file to avoid blowing out the | 137 # Write the file list to a unique temp file to avoid blowing out the |
| 138 # command line length limit. | 138 # command line length limit. |
| 139 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp" | 139 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp" |
| 140 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir)) | 140 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir)) |
| 141 | 141 |
| 142 inputs = [ | 142 inputs = [ |
| 143 "//sky/engine/bindings2/scripts/utilities.py", | 143 "//sky/engine/bindings/scripts/utilities.py", |
| 144 idl_files_list, | 144 idl_files_list, |
| 145 ] + invoker.sources | 145 ] + invoker.sources |
| 146 | 146 |
| 147 output_file = "$root_gen_dir/sky/" + invoker.output_file | 147 output_file = "$root_gen_dir/sky/" + invoker.output_file |
| 148 outputs = [ | 148 outputs = [ |
| 149 output_file, | 149 output_file, |
| 150 ] | 150 ] |
| 151 | 151 |
| 152 script = "//sky/engine/bindings2/scripts/generate_event_interfaces.py" | 152 script = "//sky/engine/bindings/scripts/generate_event_interfaces.py" |
| 153 args = [ | 153 args = [ |
| 154 "--event-idl-files-list", | 154 "--event-idl-files-list", |
| 155 rebase_path(idl_files_list, root_build_dir), | 155 rebase_path(idl_files_list, root_build_dir), |
| 156 "--event-interfaces-file", | 156 "--event-interfaces-file", |
| 157 rebase_path(output_file, root_build_dir), | 157 rebase_path(output_file, root_build_dir), |
| 158 "--write-file-only-if-changed=1", # Always true for Ninja. | 158 "--write-file-only-if-changed=1", # Always true for Ninja. |
| 159 ] | 159 ] |
| 160 | 160 |
| 161 if (defined(invoker.suffix)) { | 161 if (defined(invoker.suffix)) { |
| 162 args += [ | 162 args += [ |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 "$sky_core_output_dir/{{source_name_part}}.h", | 488 "$sky_core_output_dir/{{source_name_part}}.h", |
| 489 ] | 489 ] |
| 490 args = [ | 490 args = [ |
| 491 "{{source}}", | 491 "{{source}}", |
| 492 rel_sky_core_gen_dir, | 492 rel_sky_core_gen_dir, |
| 493 bison_exe, | 493 bison_exe, |
| 494 ] | 494 ] |
| 495 | 495 |
| 496 deps = make_core_generated_deps | 496 deps = make_core_generated_deps |
| 497 } | 497 } |
| OLD | NEW |