[fuchsia] Use SDK provided gn templates for d8
cr_fuchsia_package is deprecated in favor of using the Fuchsia SDK provided rules directly. This CL adds a cmx file specifically for v8_unittests. CMX files define fuchsia components, see https://chromium-review.googlesource.com/c/chromium/src/+/3529652 for more info. Bug: chromium:1092804 Change-Id: Ibf1d866ec6b94a0e1a7a7c7c443a6ee80e3b1042 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3537885 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Wez <wez@chromium.org> Reviewed-by: Camillo Bruni <cbruni@chromium.org> Commit-Queue: Bryant Chandler <bryantchandler@chromium.org> Cr-Commit-Position: refs/heads/main@{#79760}
This commit is contained in:
parent
e35d7e6167
commit
3111db91f8
16
BUILD.gn
16
BUILD.gn
@ -6059,17 +6059,23 @@ group("v8_archive") {
|
||||
if (is_fuchsia && !build_with_chromium) {
|
||||
import("//build/config/fuchsia/rules.gni")
|
||||
|
||||
cr_fuchsia_package("d8_fuchsia_pkg") {
|
||||
fuchsia_component("d8_fuchsia_component") {
|
||||
testonly = true
|
||||
binary = ":d8"
|
||||
manifest = "gni/v8.cmx"
|
||||
package_name_override = "d8"
|
||||
manifest = "src/d8/d8.cmx"
|
||||
data_deps = [ ":d8" ]
|
||||
visibility = [ ":*" ]
|
||||
}
|
||||
|
||||
fuchsia_package("d8_fuchsia_pkg") {
|
||||
testonly = true
|
||||
package_name = "d8"
|
||||
deps = [ ":d8_fuchsia_component" ]
|
||||
}
|
||||
|
||||
fuchsia_package_runner("d8_fuchsia") {
|
||||
testonly = true
|
||||
package = ":d8_fuchsia_pkg"
|
||||
package_name_override = "d8"
|
||||
package_name = "d8"
|
||||
}
|
||||
}
|
||||
|
||||
|
9
src/d8/d8.cmx
Normal file
9
src/d8/d8.cmx
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"include": [
|
||||
"build/config/fuchsia/test/minimum_capabilities.test-cmx",
|
||||
"gni/v8.cmx"
|
||||
],
|
||||
"program": {
|
||||
"binary": "d8"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user