Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/BUILD.gn

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//testing/libfuzzer/fuzzer_test.gni") 5 import("//testing/libfuzzer/fuzzer_test.gni")
6 import("//third_party/WebKit/Source/bindings/bindings.gni") 6 import("//third_party/WebKit/Source/bindings/bindings.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 import("//third_party/WebKit/Source/core/core_idl_files.gni") 9 import("//third_party/WebKit/Source/core/core_idl_files.gni")
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 core_definition_idl_files, 245 core_definition_idl_files,
246 [ 246 [
247 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp", 247 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp",
248 "$bindings_core_v8_output_dir/V8{{source_name_part}}.h", 248 "$bindings_core_v8_output_dir/V8{{source_name_part}}.h",
249 ]) 249 ])
250 } 250 }
251 251
252 group("bindings_core_v8_generated") { 252 group("bindings_core_v8_generated") {
253 public_deps = [ 253 public_deps = [
254 ":bindings_core_impl_generated", 254 ":bindings_core_impl_generated",
255 ":fake_gen",
255 ] 256 ]
256 if (is_win) { 257 if (is_win) {
257 public_deps += [ ":generate_bindings_core_v8_all_interfaces" ] 258 public_deps += [ ":generate_bindings_core_v8_all_interfaces" ]
258 } else { 259 } else {
259 public_deps += [ ":generate_bindings_core_v8_interfaces" ] 260 public_deps += [ ":generate_bindings_core_v8_interfaces" ]
260 } 261 }
261 } 262 }
262 263
263 # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces 264 # IDL file lists; see: http://www.chromium.org/developers/web-idl-interfaces
264 # Interface IDL files: generate individual bindings (includes testing) 265 # Interface IDL files: generate individual bindings (includes testing)
265 idl_compiler("generate_bindings_core_v8_interfaces") { 266 idl_compiler("generate_bindings_core_v8_interfaces") {
266 sources = core_definition_idl_files + core_testing_definition_idl_files + 267 sources = core_definition_idl_files + core_testing_definition_idl_files +
267 generated_webcore_testing_idl_files 268 generated_webcore_testing_idl_files
268 output_dir = bindings_core_v8_output_dir 269 output_dir = bindings_core_v8_output_dir
269 output_name_suffix = "" 270 output_name_suffix = ""
270 target_component = "core" 271 target_component = "core"
271 } 272 }
272 273
274 action("fake_gen") {
275 input_dir = "//third_party/WebKit/fake_gen"
276 api_path = "web/api"
277 output_dir = "$root_gen_dir/blink/$api_path"
278
279 script_name = "$input_dir/fake_the_gen.py"
280
281 fake_gen_files = [
282 "document.cc",
283 "document.h",
284 "element.cc",
285 "element.h",
286 "node.cc",
287 "node.h",
288 "event.cc",
289 "event.h",
290 "event_target.cc",
291 "event_target.h",
292 ]
293
294 inputs = [
295 script_name,
296 ]
297 outputs = []
298 foreach(gen_file, fake_gen_files) {
299 inputs += [ "$input_dir/$api_path/$gen_file" ]
300 outputs += [ "$output_dir/$gen_file" ]
301 }
302 script = script_name
303
304 args = [ rebase_path("$output_dir") ]
305 }
306
307 source_set("fake_gen_compiled") {
308 deps = [
309 ":fake_gen",
310 "//skia",
311 "//third_party/WebKit/Source/wtf",
312 "//v8",
313 ]
314
315 sources = get_target_outputs(":fake_gen")
316
317 configs += [
318 "//third_party/WebKit/Source:config",
319 "//third_party/WebKit/Source/core:blink_core_pch",
320 ]
321 }
322
273 aggregate_generated_bindings("generate_bindings_core_v8_all_interfaces") { 323 aggregate_generated_bindings("generate_bindings_core_v8_all_interfaces") {
274 sources = core_definition_idl_files 324 sources = core_definition_idl_files
275 outputs = [ 325 outputs = [
276 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp", 326 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp",
277 ] 327 ]
278 component = "core" 328 component = "core"
279 public_deps = [ 329 public_deps = [
280 ":generate_bindings_core_v8_interfaces", 330 ":generate_bindings_core_v8_interfaces",
281 ] 331 ]
282 } 332 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 fuzzer_test("v8_serialized_script_value_fuzzer") { 378 fuzzer_test("v8_serialized_script_value_fuzzer") {
329 sources = [ 379 sources = [
330 "serialization/SerializedScriptValueFuzzer.cpp", 380 "serialization/SerializedScriptValueFuzzer.cpp",
331 ] 381 ]
332 seed_corpus = "serialization/fuzz_corpus" 382 seed_corpus = "serialization/fuzz_corpus"
333 deps = [ 383 deps = [
334 "//third_party/WebKit/Source/core", 384 "//third_party/WebKit/Source/core",
335 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", 385 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support",
336 ] 386 ]
337 } 387 }
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698