| 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("//third_party/WebKit/Source/bindings/bindings.gni") | 5 import("//third_party/WebKit/Source/bindings/bindings.gni") |
| 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
| 7 import("//third_party/WebKit/Source/core/core.gni") | 7 import("//third_party/WebKit/Source/core/core.gni") |
| 8 import("//third_party/WebKit/Source/core/core_idl_files.gni") | 8 import("//third_party/WebKit/Source/core/core_idl_files.gni") |
| 9 | 9 |
| 10 visibility = [ "//third_party/WebKit/Source/*" ] | 10 visibility = [ "//third_party/WebKit/Source/*" ] |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 generated_core_testing_dictionary_files = [ | 190 generated_core_testing_dictionary_files = [ |
| 191 "$blink_core_output_dir/testing/InternalDictionary.cpp", | 191 "$blink_core_output_dir/testing/InternalDictionary.cpp", |
| 192 "$blink_core_output_dir/testing/InternalDictionary.h", | 192 "$blink_core_output_dir/testing/InternalDictionary.h", |
| 193 "$blink_core_output_dir/testing/InternalDictionaryDerived.cpp", | 193 "$blink_core_output_dir/testing/InternalDictionaryDerived.cpp", |
| 194 "$blink_core_output_dir/testing/InternalDictionaryDerived.h", | 194 "$blink_core_output_dir/testing/InternalDictionaryDerived.h", |
| 195 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.cpp", | 195 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.cpp", |
| 196 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h", | 196 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h", |
| 197 ] | 197 ] |
| 198 | 198 |
| 199 |
| 200 generated_core_testing_callback_function_files = [ |
| 201 "$bindings_core_v8_output_dir/V8TestCallback.cpp", |
| 202 "$bindings_core_v8_output_dir/V8TestCallback.h", |
| 203 ] |
| 204 |
| 199 if (is_win) { | 205 if (is_win) { |
| 200 # On Windows Official release builds, we try to preserve symbol space. | 206 # On Windows Official release builds, we try to preserve symbol space. |
| 201 bindings_core_generated_interface_files = | 207 bindings_core_generated_interface_files = |
| 202 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] | 208 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] |
| 203 } else { | 209 } else { |
| 204 bindings_core_generated_interface_files = | 210 bindings_core_generated_interface_files = |
| 205 process_file_template( | 211 process_file_template( |
| 206 core_definition_idl_files, | 212 core_definition_idl_files, |
| 207 [ | 213 [ |
| 208 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp", | 214 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 237 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp", | 243 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp", |
| 238 ] | 244 ] |
| 239 component = "core" | 245 component = "core" |
| 240 public_deps = [ | 246 public_deps = [ |
| 241 ":generate_bindings_core_v8_interfaces", | 247 ":generate_bindings_core_v8_interfaces", |
| 242 ] | 248 ] |
| 243 } | 249 } |
| 244 | 250 |
| 245 idl_impl("bindings_core_impl_generated") { | 251 idl_impl("bindings_core_impl_generated") { |
| 246 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files | 252 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files |
| 247 outputs = | 253 outputs = bindings_core_generated_union_type_files + |
| 248 bindings_core_generated_union_type_files + | 254 generated_core_dictionary_files + |
| 249 generated_core_dictionary_files + generated_core_testing_dictionary_files | 255 generated_core_testing_dictionary_files + |
| 256 generated_core_testing_callback_function_files |
| 250 output_dir = bindings_core_v8_output_dir | 257 output_dir = bindings_core_v8_output_dir |
| 251 target_component = "core" | 258 target_component = "core" |
| 252 } | 259 } |
| 253 | 260 |
| 254 # Compile the non-test sources generated above. | 261 # Compile the non-test sources generated above. |
| 255 blink_core_sources("bindings_core_impl") { | 262 blink_core_sources("bindings_core_impl") { |
| 256 sources = | 263 sources = |
| 257 bindings_core_generated_union_type_files + | 264 bindings_core_generated_union_type_files + |
| 258 generated_core_dictionary_files + bindings_core_generated_interface_files | 265 generated_core_dictionary_files + bindings_core_generated_interface_files |
| 259 | 266 |
| 260 deps = [ | 267 deps = [ |
| 261 ":bindings_core_v8_generated", | 268 ":bindings_core_v8_generated", |
| 262 ] | 269 ] |
| 263 } | 270 } |
| 264 | 271 |
| 265 # Compile the test sources generated above. This test target doesn't count | 272 # Compile the test sources generated above. This test target doesn't count |
| 266 # as part of the "core" component so shouldn't use the blink_core_sources for | 273 # as part of the "core" component so shouldn't use the blink_core_sources for |
| 267 # linking on Windows. | 274 # linking on Windows. |
| 268 source_set("testing") { | 275 source_set("testing") { |
| 269 sources = generated_core_testing_dictionary_files | 276 sources = generated_core_testing_dictionary_files + |
| 277 generated_core_testing_callback_function_files |
| 270 | 278 |
| 271 configs -= core_config_remove | 279 configs -= core_config_remove |
| 272 configs += [ | 280 configs += [ |
| 273 "//third_party/WebKit/Source:inside_blink", | 281 "//third_party/WebKit/Source:inside_blink", |
| 274 "//third_party/WebKit/Source:config", | 282 "//third_party/WebKit/Source:config", |
| 275 ] | 283 ] |
| 276 | 284 |
| 277 deps = [ | 285 deps = [ |
| 278 ":bindings_core_impl_generated", | 286 ":bindings_core_impl_generated", |
| 279 "//skia", | 287 "//skia", |
| 280 "//third_party/WebKit/Source/wtf", | 288 "//third_party/WebKit/Source/wtf", |
| 281 "//v8", | 289 "//v8", |
| 282 ] | 290 ] |
| 283 } | 291 } |
| OLD | NEW |