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

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

Issue 2367543004: Extended implementation to use interface as arguments (Closed)
Patch Set: Use generated code for callback function Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.h » ('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("//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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h", 196 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h",
197 ] 197 ]
198 198
199 generated_core_testing_callback_function_files = [ 199 generated_core_testing_callback_function_files = [
200 "$bindings_core_v8_output_dir/V8TestCallback.cpp", 200 "$bindings_core_v8_output_dir/V8TestCallback.cpp",
201 "$bindings_core_v8_output_dir/V8TestCallback.h", 201 "$bindings_core_v8_output_dir/V8TestCallback.h",
202 "$bindings_core_v8_output_dir/V8TestInterfaceCallback.cpp", 202 "$bindings_core_v8_output_dir/V8TestInterfaceCallback.cpp",
203 "$bindings_core_v8_output_dir/V8TestInterfaceCallback.h", 203 "$bindings_core_v8_output_dir/V8TestInterfaceCallback.h",
204 ] 204 ]
205 205
206 generated_core_timing_callback_function_files = [
207 "$bindings_core_v8_output_dir/V8PerformanceObserverInnerCallback.cpp",
208 "$bindings_core_v8_output_dir/V8PerformanceObserverInnerCallback.h",
209 ]
210
206 if (is_win) { 211 if (is_win) {
207 # On Windows Official release builds, we try to preserve symbol space. 212 # On Windows Official release builds, we try to preserve symbol space.
208 bindings_core_generated_interface_files = 213 bindings_core_generated_interface_files =
209 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] 214 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ]
210 } else { 215 } else {
211 bindings_core_generated_interface_files = 216 bindings_core_generated_interface_files =
212 process_file_template( 217 process_file_template(
213 core_definition_idl_files, 218 core_definition_idl_files,
214 [ 219 [
215 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp", 220 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp",
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 public_deps = [ 252 public_deps = [
248 ":generate_bindings_core_v8_interfaces", 253 ":generate_bindings_core_v8_interfaces",
249 ] 254 ]
250 } 255 }
251 256
252 idl_impl("bindings_core_impl_generated") { 257 idl_impl("bindings_core_impl_generated") {
253 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files 258 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files
254 outputs = bindings_core_generated_union_type_files + 259 outputs = bindings_core_generated_union_type_files +
255 generated_core_dictionary_files + 260 generated_core_dictionary_files +
256 generated_core_testing_dictionary_files + 261 generated_core_testing_dictionary_files +
257 generated_core_testing_callback_function_files 262 generated_core_testing_callback_function_files +
263 generated_core_timing_callback_function_files
258 output_dir = bindings_core_v8_output_dir 264 output_dir = bindings_core_v8_output_dir
259 target_component = "core" 265 target_component = "core"
260 } 266 }
261 267
262 # Compile the non-test sources generated above. 268 # Compile the non-test sources generated above.
263 blink_core_sources("bindings_core_impl") { 269 blink_core_sources("bindings_core_impl") {
264 sources = 270 sources = bindings_core_generated_union_type_files +
265 bindings_core_generated_union_type_files + 271 generated_core_dictionary_files +
266 generated_core_dictionary_files + bindings_core_generated_interface_files 272 bindings_core_generated_interface_files +
273 generated_core_timing_callback_function_files
267 274
268 deps = [ 275 deps = [
269 ":bindings_core_v8_generated", 276 ":bindings_core_v8_generated",
270 ] 277 ]
271 } 278 }
272 279
273 # Compile the test sources generated above. This test target doesn't count 280 # Compile the test sources generated above. This test target doesn't count
274 # as part of the "core" component so shouldn't use the blink_core_sources for 281 # as part of the "core" component so shouldn't use the blink_core_sources for
275 # linking on Windows. 282 # linking on Windows.
276 source_set("testing") { 283 source_set("testing") {
277 sources = generated_core_testing_dictionary_files + 284 sources = generated_core_testing_dictionary_files +
278 generated_core_testing_callback_function_files 285 generated_core_testing_callback_function_files
279 286
280 configs -= core_config_remove 287 configs -= core_config_remove
281 configs += [ 288 configs += [
282 "//third_party/WebKit/Source:inside_blink", 289 "//third_party/WebKit/Source:inside_blink",
283 "//third_party/WebKit/Source:config", 290 "//third_party/WebKit/Source:config",
284 ] 291 ]
285 292
286 deps = [ 293 deps = [
287 ":bindings_core_impl_generated", 294 ":bindings_core_impl_generated",
288 "//skia", 295 "//skia",
289 "//third_party/WebKit/Source/wtf", 296 "//third_party/WebKit/Source/wtf",
290 "//v8", 297 "//v8",
291 ] 298 ]
292 } 299 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698