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/core/idl.gni") | 6 import("//third_party/WebKit/Source/bindings/core/idl.gni") |
7 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 7 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
8 import("//third_party/WebKit/Source/core/core.gni") | 8 import("//third_party/WebKit/Source/core/core.gni") |
9 | 9 |
10 visibility = [ "//third_party/WebKit/Source/*" ] | 10 visibility = [ "//third_party/WebKit/Source/*" ] |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 generated_core_testing_dictionary_files = [ | 186 generated_core_testing_dictionary_files = [ |
187 "$blink_core_output_dir/testing/InternalDictionary.cpp", | 187 "$blink_core_output_dir/testing/InternalDictionary.cpp", |
188 "$blink_core_output_dir/testing/InternalDictionary.h", | 188 "$blink_core_output_dir/testing/InternalDictionary.h", |
189 "$blink_core_output_dir/testing/InternalDictionaryDerived.cpp", | 189 "$blink_core_output_dir/testing/InternalDictionaryDerived.cpp", |
190 "$blink_core_output_dir/testing/InternalDictionaryDerived.h", | 190 "$blink_core_output_dir/testing/InternalDictionaryDerived.h", |
191 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.cpp", | 191 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.cpp", |
192 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h", | 192 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h", |
193 ] | 193 ] |
194 | 194 |
| 195 generated_core_testing_callback_function_files = [ |
| 196 "$bindings_core_v8_output_dir/V8TestCallback.cpp", |
| 197 "$bindings_core_v8_output_dir/V8TestCallback.h", |
| 198 ] |
| 199 |
195 if (is_win && is_official_build) { | 200 if (is_win && is_official_build) { |
196 bindings_core_generated_aggregate_files = | 201 bindings_core_generated_aggregate_files = |
197 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] | 202 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] |
198 } else { | 203 } else { |
199 bindings_core_generated_aggregate_files = [ | 204 bindings_core_generated_aggregate_files = [ |
200 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings00.cpp", | 205 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings00.cpp", |
201 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings01.cpp", | 206 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings01.cpp", |
202 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings02.cpp", | 207 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings02.cpp", |
203 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings03.cpp", | 208 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings03.cpp", |
204 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings04.cpp", | 209 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings04.cpp", |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 idl_compiler("bindings_core_v8_generated_individual") { | 305 idl_compiler("bindings_core_v8_generated_individual") { |
301 sources = core_definition_idl_files + core_testing_definition_idl_files + | 306 sources = core_definition_idl_files + core_testing_definition_idl_files + |
302 generated_webcore_testing_idl_files | 307 generated_webcore_testing_idl_files |
303 output_dir = bindings_core_v8_output_dir | 308 output_dir = bindings_core_v8_output_dir |
304 output_name_suffix = "" | 309 output_name_suffix = "" |
305 target_component = "core" | 310 target_component = "core" |
306 } | 311 } |
307 | 312 |
308 idl_impl("bindings_core_impl_generated") { | 313 idl_impl("bindings_core_impl_generated") { |
309 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files | 314 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files |
310 outputs = | 315 outputs = bindings_core_generated_union_type_files + |
311 bindings_core_generated_union_type_files + | 316 generated_core_dictionary_files + |
312 generated_core_dictionary_files + generated_core_testing_dictionary_files | 317 generated_core_testing_dictionary_files + |
| 318 generated_core_testing_callback_function_files |
313 output_dir = bindings_core_v8_output_dir | 319 output_dir = bindings_core_v8_output_dir |
314 target_component = "core" | 320 target_component = "core" |
315 } | 321 } |
316 | 322 |
317 # Compile the non-test sources generated above. | 323 # Compile the non-test sources generated above. |
318 blink_core_sources("bindings_core_impl") { | 324 blink_core_sources("bindings_core_impl") { |
319 sources = | 325 sources = |
320 bindings_core_generated_union_type_files + | 326 bindings_core_generated_union_type_files + |
321 generated_core_dictionary_files + bindings_core_generated_aggregate_files | 327 generated_core_dictionary_files + bindings_core_generated_aggregate_files |
322 | 328 |
323 deps = [ | 329 deps = [ |
324 ":bindings_core_impl_generated", | 330 ":bindings_core_impl_generated", |
325 ":bindings_core_v8_generated_aggregate", | 331 ":bindings_core_v8_generated_aggregate", |
326 ] | 332 ] |
327 } | 333 } |
328 | 334 |
329 # Compile the test sources generated above. This test target doesn't count | 335 # Compile the test sources generated above. This test target doesn't count |
330 # as part of the "core" component so shouldn't use the blink_core_sources for | 336 # as part of the "core" component so shouldn't use the blink_core_sources for |
331 # linking on Windows. | 337 # linking on Windows. |
332 source_set("testing") { | 338 source_set("testing") { |
333 sources = generated_core_testing_dictionary_files | 339 sources = generated_core_testing_dictionary_files + |
| 340 generated_core_testing_callback_function_files |
334 | 341 |
335 configs -= core_config_remove | 342 configs -= core_config_remove |
336 configs += [ | 343 configs += [ |
337 "//third_party/WebKit/Source:inside_blink", | 344 "//third_party/WebKit/Source:inside_blink", |
338 "//third_party/WebKit/Source:config", | 345 "//third_party/WebKit/Source:config", |
339 ] | 346 ] |
340 | 347 |
341 deps = [ | 348 deps = [ |
342 ":bindings_core_impl_generated", | 349 ":bindings_core_impl_generated", |
343 "//skia", | 350 "//skia", |
344 "//third_party/WebKit/Source/wtf", | 351 "//third_party/WebKit/Source/wtf", |
345 "//v8", | 352 "//v8", |
346 ] | 353 ] |
347 } | 354 } |
OLD | NEW |