Build sky on Fuchsia. (flutter/engine#3247)

This requires an updated buildroot.
This commit is contained in:
P.Y. Laligand
2016-11-21 13:53:32 -08:00
committed by GitHub
parent 40ae490ca8
commit 798a5ca63f
6 changed files with 47 additions and 28 deletions

2
DEPS
View File

@@ -46,7 +46,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'fa103279b858e49b8755fdecf2b4242067ca36cb',
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'dd414103bf924433a1f763bd22bb71eee40e0914',
# Fuchsia compatibility
#

View File

@@ -5,9 +5,10 @@
group("flutter") {
testonly = true
deps = [ "//flutter/sky" ]
if (is_fuchsia) {
# TODO(abarth) Remove this specific list once Fuchsia can build everything.
deps = [
deps += [
"//flutter/content_handler",
"//flutter/examples",
"//flutter/flow",
@@ -15,10 +16,6 @@ group("flutter") {
"//flutter/snapshotter",
"//flutter/snapshotter($host_toolchain)",
]
} else {
deps = [
"//flutter/sky",
]
}
}

View File

@@ -12,7 +12,7 @@ source_set("glue") {
"//lib/ftl",
]
if (is_fuchsia) {
if (is_fuchsia || is_fuchsia_host) {
sources += [
"stack_trace_fuchsia.cc",
]

View File

@@ -10,9 +10,12 @@ group("sky") {
deps = [
"//flutter/sky/engine/wtf:unittests($host_toolchain)",
"//flutter/sky/packages",
"//flutter/shell",
]
if (!is_fuchsia) {
deps += [ "//flutter/shell" ]
}
if (dart_host_toolchain == host_toolchain) {
deps += [ "//flutter/snapshotter($dart_host_toolchain)" ]
}

View File

@@ -8,14 +8,16 @@ import("//flutter/lib/jni/dart_jni.gni")
import("//flutter/lib/ui/dart_ui.gni")
import("//flutter/sky/engine/core/core.gni")
copy("copy_sky_engine_authors") {
sources = [
"//AUTHORS",
]
if (!is_fuchsia) {
copy("copy_sky_engine_authors") {
sources = [
"//AUTHORS",
]
outputs = [
"$root_gen_dir/dart-pkg/sky_engine/{{source_file_part}}",
]
outputs = [
"$root_gen_dir/dart-pkg/sky_engine/{{source_file_part}}",
]
}
}
dart_sdk_lib_copy("async") {
@@ -106,9 +108,12 @@ dart_pkg("sky_engine") {
":copy_dart_jni",
":copy_dart_sdk",
":copy_dart_ui",
":copy_sky_engine_authors",
]
if (!is_fuchsia) {
deps += [ ":copy_sky_engine_authors" ]
}
service_isolate_dir = "//dart/runtime/bin/vmservice"
sdk_ext_directory = "$root_gen_dir/sky/bindings"
sdk_ext_files = [
@@ -117,3 +122,13 @@ dart_pkg("sky_engine") {
"$service_isolate_dir/server.dart",
]
}
if (is_fuchsia) {
import("//build/dart/dart_package.gni")
dart_package("sky_engine_dart") {
package_name = "sky_engine"
source_dir = rebase_path("$root_gen_dir/dart-pkg/sky_engine/lib")
}
}

View File

@@ -4,15 +4,17 @@
import("//flutter/build/dart/rules.gni")
copy("copy_sky_services_license") {
sources = [
"//AUTHORS",
"//LICENSE",
]
if (!is_fuchsia) {
copy("copy_sky_services_license") {
sources = [
"//AUTHORS",
"//LICENSE",
]
outputs = [
"$root_gen_dir/dart-pkg/sky_services/{{source_file_part}}",
]
outputs = [
"$root_gen_dir/dart-pkg/sky_services/{{source_file_part}}",
]
}
}
dart_pkg("sky_services") {
@@ -21,7 +23,9 @@ dart_pkg("sky_services") {
"pubspec.yaml",
]
deps = [
":copy_sky_services_license",
]
if (!is_fuchsia) {
deps = [
":copy_sky_services_license",
]
}
}