Commit 4eebe74d authored by tfarina@chromium.org's avatar tfarina@chromium.org

Refactor webkit resources targets.

* First, this was to remove blink_common_resources target that was moved
* into third_party/WebKit/public:resources.

* Second, the above clean up reduced webkit/BUILD.gn into a single
* target that could be moved closer to webkit_resources.grd, becoming
* webkit/glue/resources/BUILD.gn and //webkit/glue/resources target,
* which is much more inline with the GN philosophy.

BUG=400860
TEST=gn gen out/Debug_gn && ninja -C out/Debug_gn
R=brettw@chromium.org
TBR=ben@chromium.org

Review URL: https://codereview.chromium.org/458053002

Cr-Commit-Position: refs/heads/master@{#289163}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289163 0039d316-1c4b-4281-b951-d872f2087c98
parent 48a857a9
......@@ -156,6 +156,7 @@ static_library("browser") {
"//mojo/public/js/bindings",
"//mojo/system",
"//net:net_with_v8",
"//third_party/WebKit/public:resources",
"//third_party/adobe/flash:flapper_version_h",
"//third_party/expat",
"//third_party/leveldatabase",
......@@ -168,10 +169,10 @@ static_library("browser") {
"//ui/surface",
"//ui/web_dialogs",
"//v8",
"//webkit:resources",
"//webkit/browser:storage",
"//webkit/common",
"//webkit/common:storage",
"//webkit/glue/resources",
# TODO(GYP)
#"apps",
#"debugger",
......
......@@ -52,6 +52,7 @@ static_library("extensions") {
"//net",
"//skia",
"//sync",
"//third_party/WebKit/public:resources",
"//third_party/cacheinvalidation",
"//third_party/icu",
"//third_party/leveldatabase",
......@@ -63,9 +64,9 @@ static_library("extensions") {
"//ui/resources",
"//ui/strings",
"//url",
"//webkit:resources",
"//webkit/browser:storage",
"//webkit/common:storage",
"//webkit/glue/resources",
#"debugger", TODO(GYP)
#"installer_util", TODO(GYP)
#"../components/components.gyp:omaha_query_params", TODO(GYP)
......
......@@ -91,6 +91,7 @@ static_library("ui") {
"//media",
"//mojo/system",
"//net:net_with_v8",
"//third_party/WebKit/public:resources",
"//third_party/adobe/flash:flapper_version_h",
"//third_party/expat",
"//third_party/hunspell",
......@@ -101,10 +102,10 @@ static_library("ui") {
"//ui/surface",
"//ui/web_dialogs",
"//v8",
"//webkit:resources",
"//webkit/browser:storage",
"//webkit/common",
"//webkit/common:storage",
"//webkit/glue/resources",
#'debugger', TODO(GYP)
#'installer_util', TODO(GYP)
#'../third_party/libjingle/libjingle.gyp:libjingle', TODO(GYP)
......
......@@ -48,6 +48,7 @@ static_library("renderer") {
"//net",
"//skia",
"//third_party/WebKit/public:blink",
"//third_party/WebKit/public:resources",
"//third_party/icu",
"//third_party/npapi",
"//third_party/re2",
......@@ -56,7 +57,7 @@ static_library("renderer") {
"//v8:v8",
"//webkit/child",
"//webkit/common",
"//webkit:resources",
"//webkit/glue/resources",
#"../components/components.gyp:cdm_renderer", TODO(GYP)
#"../extensions/extensions.gyp:extensions_renderer", TODO(GYP)
#"../media/cast/cast.gyp:cast_sender", TODO(GYP)
......
......@@ -97,16 +97,17 @@ source_set("browser") {
"//mojo/public/interfaces/application",
"//mojo/public/js/bindings",
"//net:http_server",
"//third_party/WebKit/public:resources",
"//third_party/angle:commit_id",
"//third_party/icu",
"//third_party/leveldatabase",
"//third_party/libyuv",
"//ui/resources",
"//ui/surface",
"//webkit:resources",
"//webkit/browser:storage",
"//webkit/common",
"//webkit/common:storage",
"//webkit/glue/resources",
]
}
......
......@@ -90,10 +90,11 @@ source_set("child") {
"//content/app/strings",
"//crypto:platform",
"//third_party/WebKit/public:blink",
"//third_party/WebKit/public:resources",
"//third_party/npapi",
"//webkit:resources",
"//webkit/child",
"//webkit/common",
"//webkit/glue/resources",
]
}
......
......@@ -96,8 +96,9 @@ source_set("common") {
]
deps += [
"//webkit:resources",
"//content:resources",
"//third_party/WebKit/public:resources",
"//webkit/glue/resources",
]
libs += [ "QuartzCore.framework" ]
}
......
......@@ -222,9 +222,10 @@ static_library("content_shell_lib") {
"//net",
"//net:net_resources",
"//skia",
"//third_party/icu",
"//third_party/WebKit/public:blink",
"//third_party/WebKit/public:resources",
"//third_party/WebKit/public:test_support",
"//third_party/icu",
"//ui/base",
"//ui/events:events_base",
"//ui/gfx",
......@@ -233,8 +234,8 @@ static_library("content_shell_lib") {
"//ui/gl",
"//url",
"//v8",
"//webkit:resources",
"//webkit/browser:storage",
"//webkit/glue/resources",
#'copy_test_netscape_plugin', TODO(GYP)
]
......@@ -407,9 +408,10 @@ repack("pak") {
"//content/app/strings",
"//content/browser/tracing:resources",
"//net:net_resources",
"//third_party/WebKit/public:resources",
"//ui/resources",
"//ui/strings",
"//webkit:resources",
"//webkit/glue/resources",
]
if (is_android) {
......
......@@ -4,29 +4,11 @@
import("//tools/grit/grit_rule.gni")
group("resources") {
deps = [
":webkit_resources_action",
":blink_common_resources",
]
}
grit("webkit_resources_action") {
visibility = ":resources"
source = "glue/resources/webkit_resources.grd"
grit("resources") {
source = "webkit_resources.grd"
outputs = [
"grit/webkit_resources.h",
"webkit_resources_100_percent.pak",
"webkit_resources_200_percent.pak",
]
}
grit("blink_common_resources") {
visibility = ":resources"
source = "//third_party/WebKit/public/blink_resources.grd"
outputs = [
"grit/blink_resources.h",
"blink_resources.rc",
"blink_resources.pak",
]
}
......@@ -5,7 +5,7 @@
{
'targets': [
{
# GN version: //webkit:resources
# GN version: //webkit/glue/resources
'target_name': 'webkit_resources',
'type': 'none',
'variables': {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment