| 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 9 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| 9 import("//third_party/WebKit/Source/config.gni") | 10 import("//third_party/WebKit/Source/config.gni") |
| 10 import("//third_party/WebKit/Source/platform/platform.gni") | 11 import("//third_party/WebKit/Source/platform/platform.gni") |
| 11 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 12 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
| 12 | 13 |
| 13 # Most targets in this file are private actions so use that as the default. | 14 # Most targets in this file are private actions so use that as the default. |
| 14 visibility = [ ":*" ] | 15 visibility = [ ":*" ] |
| 15 | 16 |
| 16 heap_gypi = exec_script("//build/gypi_to_gn.py", | 17 heap_gypi = exec_script("//build/gypi_to_gn.py", |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ":color_data", | 303 ":color_data", |
| 303 ":font_family_names", | 304 ":font_family_names", |
| 304 ":http_names", | 305 ":http_names", |
| 305 ":inspector_debugger_script", | 306 ":inspector_debugger_script", |
| 306 ":inspector_injected_script", | 307 ":inspector_injected_script", |
| 307 ":inspector_protocol_sources", | 308 ":inspector_protocol_sources", |
| 308 ":runtime_enabled_features", | 309 ":runtime_enabled_features", |
| 309 ] | 310 ] |
| 310 } | 311 } |
| 311 | 312 |
| 313 # This target is in Source/platform instead of public/platform so that platform |
| 314 # below has access to its target outputs. |
| 315 mojom("mojo_bindings") { |
| 316 visibility = [] # Allow re-assignment of list. |
| 317 visibility = [ "*" ] |
| 318 sources = [ |
| 319 "../../public/platform/mime_registry.mojom", |
| 320 "../../public/platform/modules/background_sync/background_sync.mojom", |
| 321 "../../public/platform/modules/bluetooth/web_bluetooth.mojom", |
| 322 "../../public/platform/modules/broadcastchannel/broadcast_channel.mojom", |
| 323 "../../public/platform/modules/hyphenation/hyphenation.mojom", |
| 324 "../../public/platform/modules/notifications/notification.mojom", |
| 325 "../../public/platform/modules/notifications/notification_service.mojom", |
| 326 "../../public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojo
m", |
| 327 "../../public/platform/modules/permissions/permission.mojom", |
| 328 "../../public/platform/modules/permissions/permission_status.mojom", |
| 329 "../../public/platform/modules/serviceworker/service_worker_event_status.moj
om", |
| 330 "../../public/platform/modules/wake_lock/wake_lock_service.mojom", |
| 331 ] |
| 332 public_deps = [ |
| 333 ":android_mojo_bindings", |
| 334 ":new_wrapper_types_mojo_bindings", |
| 335 "//cc/ipc:interfaces_surfaceid_only", |
| 336 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid", |
| 337 "//url/mojo:url_mojom_origin", |
| 338 ] |
| 339 |
| 340 use_new_wrapper_types = false |
| 341 } |
| 342 |
| 343 # GYP version: WebKit/public/blink.gyp:new_wrapper_types_mojo_bindings |
| 344 mojom("new_wrapper_types_mojo_bindings") { |
| 345 sources = [ |
| 346 "../../public/platform/modules/presentation/presentation.mojom", |
| 347 ] |
| 348 } |
| 349 |
| 350 # GYP version: WebKit/public/blink.gyp:android_mojo_bindings_java |
| 351 mojom("android_mojo_bindings") { |
| 352 sources = [ |
| 353 "../../public/platform/modules/payments/payment_request.mojom", |
| 354 "../../public/platform/modules/webshare/webshare.mojom", |
| 355 ] |
| 356 |
| 357 use_new_wrapper_types = false |
| 358 } |
| 359 |
| 360 group("generate_mojo_bindings") { |
| 361 visibility = [] # Allow re-assignment of list. |
| 362 visibility = [ |
| 363 ":*", |
| 364 "//third_party/WebKit/public:blink_headers", |
| 365 ] |
| 366 deps = [ |
| 367 ":mojo_bindings_blink__generator", |
| 368 ] |
| 369 } |
| 370 |
| 312 # TODO(brettw) Objective C Renaming postbuild steps on Mac. | 371 # TODO(brettw) Objective C Renaming postbuild steps on Mac. |
| 313 # blink_platform target in blink_platform.gyp | 372 # blink_platform target in blink_platform.gyp |
| 314 component("platform") { | 373 component("platform") { |
| 315 visibility = [] # Allow re-assignment of list. | 374 visibility = [] # Allow re-assignment of list. |
| 316 visibility = [ | 375 visibility = [ |
| 317 "//third_party/WebKit/*", | 376 "//third_party/WebKit/*", |
| 318 "//url/mojo:url_mojom_origin_blink_cpp_sources", | 377 "//url/mojo:url_mojom_origin_blink_cpp_sources", |
| 319 "//url/mojo:url_mojom_gurl_blink_cpp_sources", | 378 "//url/mojo:url_mojom_gurl_blink_cpp_sources", |
| 320 ] | 379 ] |
| 321 output_name = "blink_platform" | 380 output_name = "blink_platform" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 "//third_party/qcms", | 428 "//third_party/qcms", |
| 370 "//url", | 429 "//url", |
| 371 "//v8", | 430 "//v8", |
| 372 ] | 431 ] |
| 373 deps = [ | 432 deps = [ |
| 374 ":blink_common", | 433 ":blink_common", |
| 375 "//components/link_header_util:link_header_util", | 434 "//components/link_header_util:link_header_util", |
| 376 "//mojo/public/cpp/bindings", | 435 "//mojo/public/cpp/bindings", |
| 377 "//mojo/public/cpp/bindings:wtf_support", | 436 "//mojo/public/cpp/bindings:wtf_support", |
| 378 "//third_party/WebKit/Source/platform/heap", | 437 "//third_party/WebKit/Source/platform/heap", |
| 379 "//third_party/WebKit/public:mojo_bindings_blink", | |
| 380 "//third_party/ced", | 438 "//third_party/ced", |
| 381 "//third_party/harfbuzz-ng", | 439 "//third_party/harfbuzz-ng", |
| 382 "//third_party/icu", | 440 "//third_party/icu", |
| 383 "//ui/gfx", | 441 "//ui/gfx", |
| 384 "//ui/gfx/geometry", | 442 "//ui/gfx/geometry", |
| 385 ] | 443 ] |
| 386 | 444 |
| 445 if (is_component_build) { |
| 446 # Compile the Blink variant of Blink's mojoms directly as part of this |
| 447 # component instead of using a source_set to avoid circular dependencies. |
| 448 sources += |
| 449 get_target_outputs(":mojo_bindings_blink__generator") + |
| 450 get_target_outputs(":new_wrapper_types_mojo_bindings_blink__generator") |
| 451 deps += [ |
| 452 ":mojo_bindings_blink__generator", |
| 453 ":new_wrapper_types_mojo_bindings_blink__generator", |
| 454 |
| 455 # Dependencies of mojo_bindings_blink__generator. |
| 456 "//cc/ipc:interfaces_surfaceid_only_blink", |
| 457 "//device/bluetooth/public/interfaces:bluetooth_mojom_bluetooth_uuid_blink
", |
| 458 "//url/mojo:url_mojom_origin_blink", |
| 459 ] |
| 460 } else { |
| 461 deps += [ ":mojo_bindings_blink" ] |
| 462 } |
| 463 |
| 387 if (is_mac) { | 464 if (is_mac) { |
| 388 sources -= [ | 465 sources -= [ |
| 389 # Uses KillRingMac.mm instead. | 466 # Uses KillRingMac.mm instead. |
| 390 "KillRingNone.cpp", | 467 "KillRingNone.cpp", |
| 391 "fonts/skia/FontCacheSkia.cpp", | 468 "fonts/skia/FontCacheSkia.cpp", |
| 392 "scroll/ScrollAnimator.cpp", | 469 "scroll/ScrollAnimator.cpp", |
| 393 "scroll/ScrollAnimator.h", | 470 "scroll/ScrollAnimator.h", |
| 394 | 471 |
| 395 # Uses LocaleMac instead. | 472 # Uses LocaleMac instead. |
| 396 "text/LocaleICU.cpp", | 473 "text/LocaleICU.cpp", |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 } | 720 } |
| 644 | 721 |
| 645 if (current_cpu == "x86" || current_cpu == "x64") { | 722 if (current_cpu == "x86" || current_cpu == "x64") { |
| 646 source_set("blink_x86_sse") { | 723 source_set("blink_x86_sse") { |
| 647 sources = blink_platform_sse_files | 724 sources = blink_platform_sse_files |
| 648 deps = [ | 725 deps = [ |
| 649 ":blink_common", | 726 ":blink_common", |
| 650 ] | 727 ] |
| 651 } | 728 } |
| 652 } | 729 } |
| OLD | NEW |