Commit abe2d750 authored by Wez's avatar Wez Committed by Commit Bot

[fuchsia] Rename fuchsia_package() rule to cr_fuchsia_package().

Fuchsia's SDK will soon provide GN rules include one for declaring
fuchsia package targets. Since the SDK-provided rule works differently
from the Chromium one but is called fuchsia_package(), we need to rename
the Chromium rule to avoid them clashing.

Bug: 1050703
Change-Id: I08c14069d98df07f78e9ef25bc2c234a825d5ebb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2047033
Auto-Submit: Wez <wez@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Reviewed-by: default avatarCharlie Reis <creis@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740324}
parent 1fa608f5
......@@ -856,7 +856,7 @@ if ((is_linux || is_win) && enable_remoting && !use_ozone) {
if (is_fuchsia) {
# TODO(https://crbug.com/731217): This can't practically be in //v8 without
# duplicating all the Fuchsia running infrastructure there.
fuchsia_package("d8_fuchsia_pkg") {
cr_fuchsia_package("d8_fuchsia_pkg") {
testonly = true
binary = "//v8:d8"
package_name_override = "d8"
......
......@@ -26,7 +26,9 @@ import("//build/config/sysroot.gni")
# component_name_override: If set, specifies the name of the component.
# By default, the component name is the same as the package name.
# deps: Additional targets to build and include in the package (optional).
template("fuchsia_package") {
#
# TODO(https://crbug.com/1050703): Migrate consumers to GN SDK equivalents.
template("cr_fuchsia_package") {
pkg = {
forward_variables_from(invoker, "*")
......@@ -234,3 +236,11 @@ template("fuchsia_package") {
outputs = [ _final_far_file ]
}
}
# TODO(https:crbug.com/1050703): Migrate callers to cr_fuchsia_package() and
# remove this old name.
template("fuchsia_package") {
cr_fuchsia_package(target_name) {
forward_variables_from(invoker, "*")
}
}
......@@ -648,7 +648,7 @@ if (is_android) {
}
if (is_fuchsia) {
fuchsia_package("content_shell_pkg") {
cr_fuchsia_package("content_shell_pkg") {
testonly = true
binary = ":content_shell"
package_name_override = "content_shell"
......
......@@ -204,7 +204,7 @@ executable("web_engine_exe") {
visibility = [ ":*" ]
}
fuchsia_package("web_engine") {
cr_fuchsia_package("web_engine") {
binary = ":web_engine_exe"
manifest = "context_provider.cmx"
component_name_override = "context_provider"
......@@ -326,7 +326,7 @@ test("web_engine_integration_tests") {
] ]
}
fuchsia_package("web_engine_shell_pkg") {
cr_fuchsia_package("web_engine_shell_pkg") {
testonly = true
manifest = "test/web_engine_shell.cmx"
binary = ":web_engine_shell_exec"
......
......@@ -35,7 +35,7 @@ executable("http_exe") {
visibility = [ ":*" ]
}
fuchsia_package("http_pkg") {
cr_fuchsia_package("http_pkg") {
binary = ":http_exe"
package_name_override = "http"
manifest = "http.cmx"
......
......@@ -92,7 +92,7 @@ executable("cast_runner_exe") {
visibility = [ ":*" ]
}
fuchsia_package("cast_runner_pkg") {
cr_fuchsia_package("cast_runner_pkg") {
binary = ":cast_runner_exe"
package_name_override = _cast_runner_package_name
archive_name_override = "cast_runner"
......@@ -198,7 +198,7 @@ executable("web_runner_exe") {
visibility = [ ":*" ]
}
fuchsia_package("web_runner_pkg") {
cr_fuchsia_package("web_runner_pkg") {
binary = ":web_runner_exe"
package_name_override = _web_runner_package_name
component_name_override = "web_runner"
......
......@@ -826,7 +826,7 @@ jumbo_static_library("headless_shell_lib") {
}
if (is_fuchsia) {
fuchsia_package("headless_shell_pkg") {
cr_fuchsia_package("headless_shell_pkg") {
binary = ":headless_shell"
package_name_override = "headless_shell"
manifest = "//build/config/fuchsia/tests.cmx"
......
......@@ -214,7 +214,7 @@ template("test") {
deps = [ "//testing/buildbot/filters:fuchsia_filters" ]
}
fuchsia_package(_pkg_target) {
cr_fuchsia_package(_pkg_target) {
testonly = true
forward_variables_from(invoker, [ "manifest" ])
binary = ":$_exec_target"
......
......@@ -102,7 +102,7 @@ executable("skia_demo") {
}
if (is_fuchsia) {
fuchsia_package("ozone_demo_pkg") {
cr_fuchsia_package("ozone_demo_pkg") {
testonly = true
binary = ":ozone_demo"
package_name_override = "ozone_demo"
......
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