[fuchsia] CML files for Flutter runner CF v2. (flutter/engine#28982)

Bug: 50694
This commit is contained in:
Alexander Biggs
2021-10-05 13:13:44 -04:00
committed by GitHub
parent db55bd455c
commit 46d879a563
11 changed files with 169 additions and 3 deletions

View File

@@ -1462,9 +1462,14 @@ FILE: ../../../flutter/shell/platform/fuchsia/flutter/logging.h
FILE: ../../../flutter/shell/platform/fuchsia/flutter/main.cc
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/aot_product_runtime
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/aot_runtime
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/common.shard.cml
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_aot_product_runner.cml
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_aot_product_runner.cmx
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_aot_runner.cml
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_aot_runner.cmx
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_jit_product_runner.cml
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_jit_product_runner.cmx
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_jit_runner.cml
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_jit_runner.cmx
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/flutter_runner_tests.cmx
FILE: ../../../flutter/shell/platform/fuchsia/flutter/meta/jit_product_runtime

View File

@@ -3,6 +3,9 @@
// found in the LICENSE file.
{
capabilities: [
// Required for inspect.
// Copied from inspect/client.shard.cml because out-of-tree doesn't
// have support for CML includes from the SDK.
{
directory: "diagnostics",
rights: [ "connect" ],
@@ -29,6 +32,9 @@
},
],
expose: [
// Required for inspect.
// Copied from inspect/client.shard.cml because out-of-tree doesn't
// have support for CML includes from the SDK.
{
directory: "diagnostics",
from: "self",

View File

@@ -8,7 +8,7 @@
binary: "bin/app",
forward_stdout_to: "log",
forward_stderr_to: "log",
// needed for JIT builds
// Needed for JIT builds.
job_policy_ambient_mark_vmo_exec: "true",
},
capabilities: [

View File

@@ -8,7 +8,7 @@
binary: "bin/app",
forward_stdout_to: "log",
forward_stderr_to: "log",
// needed for JIT builds
// Needed for JIT builds.
job_policy_ambient_mark_vmo_exec: "true",
},
capabilities: [

View File

@@ -315,6 +315,7 @@ template("jit_runner") {
binary = "flutter_jit${product_suffix}_runner"
cmx_file = rebase_path("meta/flutter_jit${product_suffix}_runner.cmx")
cml_file = rebase_path("meta/flutter_jit${product_suffix}_runner.cml")
resources = [
{
@@ -394,6 +395,7 @@ template("aot_runner") {
}
cmx_file = rebase_path("meta/flutter_aot${product_suffix}_runner.cmx")
cml_file = rebase_path("meta/flutter_aot${product_suffix}_runner.cml")
binary = "flutter_aot${product_suffix}_runner"

View File

@@ -0,0 +1,53 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file
{
capabilities: [
// Required for inspect.
// Copied from inspect/client.shard.cml because out-of-tree doesn't
// have support for CML includes from the SDK.
{
directory: "diagnostics",
rights: [ "connect" ],
path: "/diagnostics",
},
],
expose: [
// Required for inspect.
// Copied from inspect/client.shard.cml because out-of-tree doesn't
// have support for CML includes from the SDK.
{
directory: "diagnostics",
from: "self",
to: "framework",
},
],
use: [
{
directory: "config-data",
rights: [ "r*" ],
path: "/config/data",
},
{
protocol: [
"fuchsia.accessibility.SettingsManager",
"fuchsia.accessibility.semantics.SemanticsManager",
"fuchsia.deprecatedtimezone.Timezone",
"fuchsia.device.NameProvider",
"fuchsia.feedback.CrashReporter",
"fuchsia.fonts.Provider",
"fuchsia.intl.PropertyProvider",
"fuchsia.logger.LogSink", // Copied from syslog/client.shard.cml.
"fuchsia.net.name.Lookup",
"fuchsia.posix.socket.Provider",
"fuchsia.sysmem.Allocator",
"fuchsia.timezone.Timezone", // Copied from vulkan/client.shard.cml.
"fuchsia.tracing.provider.Registry", // Copied from vulkan/client.shard.cml.
"fuchsia.ui.composition.Allocator",
"fuchsia.ui.composition.Flatland",
"fuchsia.vulkan.loader.Loader" // Copied from vulkan/client.shard.cml.
]
}
]
}

View File

@@ -0,0 +1,24 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file
{
include: [ "common.shard.cml" ],
program: {
runner: "elf",
binary: "bin/app",
forward_stdout_to: "log",
forward_stderr_to: "log",
},
capabilities: [
{
runner: "flutter_aot_product_runner",
path: "/svc/fuchsia.component.runner.ComponentRunner",
},
],
expose: [
{
runner: "flutter_aot_product_runner",
from: "self",
},
],
}

View File

@@ -0,0 +1,24 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file
{
include: [ "common.shard.cml" ],
program: {
runner: "elf",
binary: "bin/app",
forward_stdout_to: "log",
forward_stderr_to: "log",
},
capabilities: [
{
runner: "flutter_aot_runner",
path: "/svc/fuchsia.component.runner.ComponentRunner",
},
],
expose: [
{
runner: "flutter_aot_runner",
from: "self",
},
],
}

View File

@@ -0,0 +1,26 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file
{
include: [ "common.shard.cml" ],
program: {
runner: "elf",
binary: "bin/app",
forward_stdout_to: "log",
forward_stderr_to: "log",
// Needed for JIT builds.
job_policy_ambient_mark_vmo_exec: "true"
},
capabilities: [
{
runner: "flutter_jit_product_runner",
path: "/svc/fuchsia.component.runner.ComponentRunner",
},
],
expose: [
{
runner: "flutter_jit_product_runner",
from: "self",
},
],
}

View File

@@ -0,0 +1,26 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file
{
include: [ "common.shard.cml" ],
program: {
runner: "elf",
binary: "bin/app",
forward_stdout_to: "log",
forward_stderr_to: "log",
// Needed for JIT builds.
job_policy_ambient_mark_vmo_exec: "true"
},
capabilities: [
{
runner: "flutter_jit_runner",
path: "/svc/fuchsia.component.runner.ComponentRunner",
},
],
expose: [
{
runner: "flutter_jit_runner",
from: "self",
},
],
}

View File

@@ -2,7 +2,7 @@
"program": {
"binary": "bin/app",
"env_vars": [
"ICU_TIMEZONE_FILES_DIR=/pkg/data/tzdata"
"ICU_TIMEZONE_FILES_DIR=/pkg/data/tzdata"
]
},
"facets": {