Skip to content

Commit

Permalink
[fuchsia] Sandbox Flutter runner (flutter#4410)
Browse files Browse the repository at this point in the history
  • Loading branch information
abarth authored Dec 4, 2017
1 parent 3e84bf0 commit b5d0a4a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 21 deletions.
37 changes: 22 additions & 15 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ group("flutter") {

if (is_fuchsia) {
public_deps += [
"$flutter_root/content_handler",
"$flutter_root/content_handler:aot_content_handler",
"$flutter_root/content_handler:aot",
"$flutter_root/content_handler:jit",
"$flutter_root/examples",
"$flutter_root/flow",
]
Expand Down Expand Up @@ -62,25 +62,32 @@ config("config") {
if (is_fuchsia) {
import("//build/package.gni")

package("package") {
system_image = true
testonly = true
package("flutter_aot_runner") {
deps = [
"$flutter_root/content_handler:aot",
]

binary = "flutter_aot_runner"

package_name = "flutter"
meta = [ {
path = rebase_path("content_handler/meta/sandbox")
dest = "sandbox"
} ]
}

package("flutter_jit_runner") {
deps = [
":flutter",
"$flutter_root/content_handler:jit",
]

binaries = [
{
name = "flutter_jit_runner"
},
{
name = "flutter_aot_runner"
},
]
binary = "flutter_jit_runner"

meta = [ {
path = rebase_path("content_handler/meta/sandbox")
dest = "sandbox"
} ]
}

} else {
group("dist") {
testonly = true
Expand Down
12 changes: 6 additions & 6 deletions content_handler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ template("flutter_content_handler") {
}
}

flutter_content_handler("content_handler") {
output_name = "flutter_jit_runner"
extra_deps = [ "//third_party/dart/runtime:libdart_jit" ]
}

flutter_content_handler("aot_content_handler") {
flutter_content_handler("aot") {
output_name = "flutter_aot_runner"
extra_deps = [ "//third_party/dart/runtime:libdart_precompiled_runtime" ]
}

flutter_content_handler("jit") {
output_name = "flutter_jit_runner"
extra_deps = [ "//third_party/dart/runtime:libdart_jit" ]
}
7 changes: 7 additions & 0 deletions content_handler/meta/sandbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"features": [
"root-ssl-certificates",
"system-temp",
"vulkan"
]
}
1 change: 1 addition & 0 deletions travis/licenses_golden/licenses_flutter
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,7 @@ LIBRARY: engine
ORIGIN: ../../../LICENSE
TYPE: LicenseType.bsd
FILE: ../../../flutter/DEPS
FILE: ../../../flutter/content_handler/meta/sandbox
FILE: ../../../flutter/frontend_server/.packages
FILE: ../../../flutter/frontend_server/bin/starter.dart
FILE: ../../../flutter/frontend_server/lib/server.dart
Expand Down

0 comments on commit b5d0a4a

Please sign in to comment.