Add support for child view on Fuchsia (flutter/engine#3217)

This commit is contained in:
Adam Barth
2016-11-10 18:03:00 -08:00
committed by GitHub
parent e2bdb9a8c9
commit 8ed446e1d0
3 changed files with 11 additions and 5 deletions

View File

@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_TONIC_DART_IO_H_
#define FLUTTER_TONIC_DART_IO_H_
#ifndef FLUTTER_LIB_IO_DART_IO_H_
#define FLUTTER_LIB_IO_DART_IO_H_
#include "lib/ftl/macros.h"
@@ -19,4 +19,4 @@ class DartIO {
} // namespace blink
#endif // FLUTTER_TONIC_DART_IO_H_
#endif // FLUTTER_LIB_IO_DART_IO_H_

View File

@@ -9,6 +9,7 @@ import("//flutter/lib/ui/dart_ui.gni")
target_is_fuchsia = target_os == "fuchsia"
if (target_is_fuchsia) {
import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni")
import("//lib/fidl/dart/sdk_ext/sdk_ext.gni")
}
@@ -81,9 +82,13 @@ action("generate_snapshot_bin") {
]
if (target_is_fuchsia) {
inputs += fidl_dart_sdk_ext_files
inputs += fidl_dart_sdk_ext_files + mozart_dart_sdk_ext_files
fidl_internal_path = rebase_path(fidl_dart_sdk_ext_lib)
args += [ "--url_mapping=dart:fidl.internal,$fidl_internal_path" ]
mozart_internal_path = rebase_path(mozart_dart_sdk_ext_lib)
args += [
"--url_mapping=dart:fidl.internal,$fidl_internal_path",
"--url_mapping=dart:mozart.internal,$mozart_internal_path",
]
}
}

View File

@@ -11,5 +11,6 @@ import 'dart:fidl.internal';
import 'dart:io';
import 'dart:isolate';
import 'dart:math';
import 'dart:mozart.internal';
import 'dart:typed_data';
import 'dart:ui';