| 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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//third_party/WebKit/Source/config.gni") | 6 import("//third_party/WebKit/Source/config.gni") |
| 7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| 11 } | 11 } |
| 12 | 12 |
| 13 # GYP version: WebKit/public/blink.gyp:blink | |
| 14 group("blink") { | 13 group("blink") { |
| 15 public_deps = [ | 14 public_deps = [ |
| 16 ":blink_headers", | 15 ":blink_headers", |
| 17 ":blink_minimal", | 16 ":blink_minimal", |
| 18 ] | 17 ] |
| 19 deps = [ | 18 deps = [ |
| 20 "//third_party/WebKit/Source/platform", | 19 "//third_party/WebKit/Source/platform", |
| 21 "//third_party/WebKit/Source/web", | 20 "//third_party/WebKit/Source/web", |
| 22 ] | 21 ] |
| 23 } | 22 } |
| 24 | 23 |
| 25 # This target provides a minimal set of Blink APIs such as WebString to use in | 24 # This target provides a minimal set of Blink APIs such as WebString to use in |
| 26 # places that cannot link against the full Blink library. FIXME: We really | 25 # places that cannot link against the full Blink library. FIXME: We really |
| 27 # shouldn't have this at all and should instead remove all uses of Blink's API | 26 # shouldn't have this at all and should instead remove all uses of Blink's API |
| 28 # types from places that can't link against Blink. crbug.com/248653 | 27 # types from places that can't link against Blink. crbug.com/248653 |
| 29 # | |
| 30 # GYP version: WebKit/public/blink.gyp:blink_minimal | |
| 31 group("blink_minimal") { | 28 group("blink_minimal") { |
| 32 public_deps = [ | 29 public_deps = [ |
| 33 ":blink_headers", | 30 ":blink_headers", |
| 34 "//third_party/WebKit/Source/platform:blink_common", | 31 "//third_party/WebKit/Source/platform:blink_common", |
| 35 ] | 32 ] |
| 36 } | 33 } |
| 37 | 34 |
| 38 # GYP version: WebKit/public/blink.gyp:blink_test_support | |
| 39 group("test_support") { | 35 group("test_support") { |
| 40 testonly = true | 36 testonly = true |
| 41 public_deps = [ | 37 public_deps = [ |
| 42 "//third_party/WebKit/Source/platform:test_support", | 38 "//third_party/WebKit/Source/platform:test_support", |
| 43 "//third_party/WebKit/Source/web:test_support", | 39 "//third_party/WebKit/Source/web:test_support", |
| 44 ] | 40 ] |
| 45 } | 41 } |
| 46 | 42 |
| 47 # GYP version: WebKit/public/all.gyp:all_blink | |
| 48 group("all_blink") { | 43 group("all_blink") { |
| 49 # This includes some test targets. Don't link into production! | 44 # This includes some test targets. Don't link into production! |
| 50 testonly = true | 45 testonly = true |
| 51 | 46 |
| 52 public_deps = [ | 47 public_deps = [ |
| 53 "//third_party/WebKit/Source/core", | 48 "//third_party/WebKit/Source/core", |
| 54 "//third_party/WebKit/Source/modules", | 49 "//third_party/WebKit/Source/modules", |
| 55 "//third_party/WebKit/Source/platform:blink_platform_unittests", | 50 "//third_party/WebKit/Source/platform:blink_platform_unittests", |
| 56 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests", | 51 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests", |
| 57 "//third_party/WebKit/Source/web", | 52 "//third_party/WebKit/Source/web", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 70 configs = [ "//v8:external_config" ] | 65 configs = [ "//v8:external_config" ] |
| 71 } | 66 } |
| 72 | 67 |
| 73 config("debug_devtools") { | 68 config("debug_devtools") { |
| 74 if (debug_devtools) { | 69 if (debug_devtools) { |
| 75 defines = [ "DEBUG_DEVTOOLS=1" ] | 70 defines = [ "DEBUG_DEVTOOLS=1" ] |
| 76 } | 71 } |
| 77 } | 72 } |
| 78 | 73 |
| 79 if (is_android) { | 74 if (is_android) { |
| 80 # GYP version: WebKit/public/blink_headers.gyp:web_input_event_java | |
| 81 # GYP version: WebKit/public/blink_headers.gyp:web_text_input_type | |
| 82 java_cpp_enum("blink_headers_java_enums_srcjar") { | 75 java_cpp_enum("blink_headers_java_enums_srcjar") { |
| 83 sources = [ | 76 sources = [ |
| 84 "./platform/WebDisplayMode.h", | 77 "./platform/WebDisplayMode.h", |
| 85 "./platform/WebInputEvent.h", | 78 "./platform/WebInputEvent.h", |
| 86 "./web/WebTextInputType.h", | 79 "./web/WebTextInputType.h", |
| 87 ] | 80 ] |
| 88 } | 81 } |
| 89 | 82 |
| 90 # GYP version: WebKit/public/blink_headers.gyp:blink_headers_java | |
| 91 android_library("blink_headers_java") { | 83 android_library("blink_headers_java") { |
| 92 deps = [ | 84 deps = [ |
| 93 "//third_party/android_tools:android_support_annotations_java", | 85 "//third_party/android_tools:android_support_annotations_java", |
| 94 ] | 86 ] |
| 95 srcjar_deps = [ ":blink_headers_java_enums_srcjar" ] | 87 srcjar_deps = [ ":blink_headers_java_enums_srcjar" ] |
| 96 } | 88 } |
| 97 } | 89 } |
| 98 | 90 |
| 99 # Depend on this target to use public blink API headers for things like enums | 91 # Depend on this target to use public blink API headers for things like enums |
| 100 # and public structures without actually linking against any Blink libraries. | 92 # and public structures without actually linking against any Blink libraries. |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 | 581 |
| 590 # Blink exposes icu headers in the public API. | 582 # Blink exposes icu headers in the public API. |
| 591 "//third_party/icu:icu_config", | 583 "//third_party/icu:icu_config", |
| 592 ] | 584 ] |
| 593 | 585 |
| 594 deps = [ | 586 deps = [ |
| 595 ":generate_mojo_bindings", | 587 ":generate_mojo_bindings", |
| 596 ] | 588 ] |
| 597 } | 589 } |
| 598 | 590 |
| 599 # GYP version: WebKit/public/blink_devtools.gyp:blink_devtools_frontend_resource
s | |
| 600 group("blink_devtools_frontend_resources") { | 591 group("blink_devtools_frontend_resources") { |
| 601 public_deps = [ | 592 public_deps = [ |
| 602 "//third_party/WebKit/Source/devtools:devtools_frontend_resources", | 593 "//third_party/WebKit/Source/devtools:devtools_frontend_resources", |
| 603 ] | 594 ] |
| 604 } | 595 } |
| 605 | 596 |
| 606 # GYP version: WebKit/public/blink_devtools.gyp:blink_generate_devtools_grd | |
| 607 group("blink_generate_devtools_grd") { | 597 group("blink_generate_devtools_grd") { |
| 608 public_deps = [ | 598 public_deps = [ |
| 609 "//third_party/WebKit/Source/devtools:generate_devtools_grd", | 599 "//third_party/WebKit/Source/devtools:generate_devtools_grd", |
| 610 ] | 600 ] |
| 611 } | 601 } |
| 612 | 602 |
| 613 # GYP version: WebKit/public/blink_resources.gyp:blink_resources | |
| 614 grit("resources") { | 603 grit("resources") { |
| 615 output_dir = "$root_gen_dir/blink/public/resources" | 604 output_dir = "$root_gen_dir/blink/public/resources" |
| 616 use_qualified_include = true | 605 use_qualified_include = true |
| 617 source = "blink_resources.grd" | 606 source = "blink_resources.grd" |
| 618 outputs = [ | 607 outputs = [ |
| 619 "grit/blink_resources.h", | 608 "grit/blink_resources.h", |
| 620 "blink_resources.pak", | 609 "blink_resources.pak", |
| 621 ] | 610 ] |
| 622 if (use_concatenated_impulse_responses) { | 611 if (use_concatenated_impulse_responses) { |
| 623 grit_flags = [ | 612 grit_flags = [ |
| 624 "-D", | 613 "-D", |
| 625 "use_concatenated_impulse_responses", | 614 "use_concatenated_impulse_responses", |
| 626 ] | 615 ] |
| 627 } | 616 } |
| 628 } | 617 } |
| 629 | 618 |
| 630 # GYP version: WebKit/public/blink_resources.gyp:blink_image_resources | |
| 631 grit("image_resources") { | 619 grit("image_resources") { |
| 632 output_dir = "$root_gen_dir/blink/public/resources" | 620 output_dir = "$root_gen_dir/blink/public/resources" |
| 633 use_qualified_include = true | 621 use_qualified_include = true |
| 634 source = "blink_image_resources.grd" | 622 source = "blink_image_resources.grd" |
| 635 outputs = [ | 623 outputs = [ |
| 636 "grit/blink_image_resources.h", | 624 "grit/blink_image_resources.h", |
| 637 "blink_image_resources_100_percent.pak", | 625 "blink_image_resources_100_percent.pak", |
| 638 "blink_image_resources_200_percent.pak", | 626 "blink_image_resources_200_percent.pak", |
| 639 ] | 627 ] |
| 640 } | 628 } |
| 641 | 629 |
| 642 # GYP versions: WebKit/public/blink.gyp:mojo_bindings_mojom, | |
| 643 # WebKit/public/blink.gyp:mojo_bindings_blink_mojom | |
| 644 mojom("mojo_bindings") { | 630 mojom("mojo_bindings") { |
| 645 sources = [ | 631 sources = [ |
| 646 "platform/mime_registry.mojom", | 632 "platform/mime_registry.mojom", |
| 647 "platform/modules/background_sync/background_sync.mojom", | 633 "platform/modules/background_sync/background_sync.mojom", |
| 648 "platform/modules/bluetooth/web_bluetooth.mojom", | 634 "platform/modules/bluetooth/web_bluetooth.mojom", |
| 649 "platform/modules/broadcastchannel/broadcast_channel.mojom", | 635 "platform/modules/broadcastchannel/broadcast_channel.mojom", |
| 650 "platform/modules/budget_service/budget_service.mojom", | 636 "platform/modules/budget_service/budget_service.mojom", |
| 651 "platform/modules/hyphenation/hyphenation.mojom", | 637 "platform/modules/hyphenation/hyphenation.mojom", |
| 652 "platform/modules/notifications/notification.mojom", | 638 "platform/modules/notifications/notification.mojom", |
| 653 "platform/modules/notifications/notification_service.mojom", | 639 "platform/modules/notifications/notification_service.mojom", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 671 export_define = "CONTENT_IMPLEMENTATION=1" | 657 export_define = "CONTENT_IMPLEMENTATION=1" |
| 672 export_header = "content/common/content_export.h" | 658 export_header = "content/common/content_export.h" |
| 673 | 659 |
| 674 # Similarly, the blink variant must be linked with the platform component | 660 # Similarly, the blink variant must be linked with the platform component |
| 675 # since it uses types from it in its typemaps. | 661 # since it uses types from it in its typemaps. |
| 676 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" | 662 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 677 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" | 663 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 678 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" | 664 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" |
| 679 } | 665 } |
| 680 | 666 |
| 681 # GYP version: WebKit/public/blink.gyp:new_wrapper_types_mojo_bindings | |
| 682 mojom("new_wrapper_types_mojo_bindings") { | 667 mojom("new_wrapper_types_mojo_bindings") { |
| 683 sources = [ | 668 sources = [ |
| 684 "platform/modules/permissions/permission.mojom", | 669 "platform/modules/permissions/permission.mojom", |
| 685 "platform/modules/permissions/permission_status.mojom", | 670 "platform/modules/permissions/permission_status.mojom", |
| 686 "platform/modules/presentation/presentation.mojom", | 671 "platform/modules/presentation/presentation.mojom", |
| 687 "platform/modules/websockets/websocket.mojom", | 672 "platform/modules/websockets/websocket.mojom", |
| 688 ] | 673 ] |
| 689 public_deps = [ | 674 public_deps = [ |
| 690 "//url/mojo:url_mojom_gurl", | 675 "//url/mojo:url_mojom_gurl", |
| 691 "//url/mojo:url_mojom_origin", | 676 "//url/mojo:url_mojom_origin", |
| 692 ] | 677 ] |
| 693 | 678 |
| 694 # See comment above. | 679 # See comment above. |
| 695 export_class_attribute = "CONTENT_EXPORT" | 680 export_class_attribute = "CONTENT_EXPORT" |
| 696 export_define = "CONTENT_IMPLEMENTATION=1" | 681 export_define = "CONTENT_IMPLEMENTATION=1" |
| 697 export_header = "content/common/content_export.h" | 682 export_header = "content/common/content_export.h" |
| 698 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" | 683 export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| 699 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" | 684 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 700 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" | 685 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" |
| 701 } | 686 } |
| 702 | 687 |
| 703 # GYP version: WebKit/public/blink.gyp:android_mojo_bindings_java | |
| 704 mojom("android_mojo_bindings") { | 688 mojom("android_mojo_bindings") { |
| 705 sources = [ | 689 sources = [ |
| 706 "platform/modules/payments/payment_request.mojom", | 690 "platform/modules/payments/payment_request.mojom", |
| 707 "platform/modules/webshare/webshare.mojom", | 691 "platform/modules/webshare/webshare.mojom", |
| 708 ] | 692 ] |
| 709 public_deps = [ | 693 public_deps = [ |
| 710 "//url/mojo:url_mojom_gurl", | 694 "//url/mojo:url_mojom_gurl", |
| 711 ] | 695 ] |
| 712 | 696 |
| 713 use_new_wrapper_types = false | 697 use_new_wrapper_types = false |
| (...skipping 26 matching lines...) Expand all Loading... |
| 740 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" | 724 export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| 741 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" | 725 export_header_blink = "third_party/WebKit/public/platform/WebCommon.h" |
| 742 } | 726 } |
| 743 | 727 |
| 744 group("generate_mojo_bindings") { | 728 group("generate_mojo_bindings") { |
| 745 deps = [ | 729 deps = [ |
| 746 ":mojo_bindings_blink__generator", | 730 ":mojo_bindings_blink__generator", |
| 747 ":offscreen_canvas_mojo_bindings_blink__generator", | 731 ":offscreen_canvas_mojo_bindings_blink__generator", |
| 748 ] | 732 ] |
| 749 } | 733 } |
| OLD | NEW |