Updates for the dart:fidl.internal rename and split. (flutter/engine#4070)
Now it references dart:zircon and dart:fuchsia.
This commit is contained in:
@@ -7,7 +7,8 @@ assert(is_fuchsia)
|
||||
import("//build/dart/dart_package.gni")
|
||||
import("//flutter/lib/ui/dart_ui.gni")
|
||||
import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni")
|
||||
import("//garnet/public/lib/fidl/dart/sdk_ext/sdk_ext.gni")
|
||||
import("//garnet/public/dart-pkg/fuchsia/sdk_ext.gni")
|
||||
import("//garnet/public/dart-pkg/zircon/sdk_ext.gni")
|
||||
|
||||
declare_args() {
|
||||
flutter_app_default_is_jit = true
|
||||
@@ -18,7 +19,8 @@ gen_snapshot_dir = get_label_info(gen_snapshot_label, "root_out_dir")
|
||||
gen_snapshot = "$gen_snapshot_dir/gen_snapshot"
|
||||
|
||||
flutter_root = "//lib/flutter"
|
||||
flutter_tools_label = "$flutter_root/packages/flutter_tools:fuchsia_builder($host_toolchain)"
|
||||
flutter_tools_label =
|
||||
"$flutter_root/packages/flutter_tools:fuchsia_builder($host_toolchain)"
|
||||
flutter_tools_out_dir = get_label_info(flutter_tools_label, "root_out_dir")
|
||||
flutter_tools_bin = "$flutter_tools_out_dir/dart-tools/fuchsia_builder"
|
||||
|
||||
@@ -219,12 +221,14 @@ template("flutter_aot_app") {
|
||||
action(assembly_label) {
|
||||
depfile = assembly_depfile
|
||||
|
||||
inputs = fidl_dart_sdk_ext_files + mozart_dart_sdk_ext_files + [
|
||||
main_dart,
|
||||
"//flutter/runtime/dart_vm_entry_points.txt",
|
||||
"//flutter/runtime/dart_vm_entry_points_fuchsia.txt",
|
||||
"//dart/runtime/bin/dart_io_entries.txt",
|
||||
]
|
||||
inputs = fuchsia_sdk_ext_files + zircon_sdk_ext_files +
|
||||
mozart_dart_sdk_ext_files +
|
||||
[
|
||||
main_dart,
|
||||
"//flutter/runtime/dart_vm_entry_points.txt",
|
||||
"//flutter/runtime/dart_vm_entry_points_fuchsia.txt",
|
||||
"//dart/runtime/bin/dart_io_entries.txt",
|
||||
]
|
||||
|
||||
outputs = [
|
||||
assembly_path,
|
||||
@@ -248,7 +252,9 @@ template("flutter_aot_app") {
|
||||
"--url-mapping",
|
||||
"dart:ui," + rebase_path(dart_ui_path),
|
||||
"--url-mapping",
|
||||
"dart:fidl.internal," + rebase_path(fidl_dart_sdk_ext_lib),
|
||||
"dart:zircon," + rebase_path(zircon_sdk_ext_lib),
|
||||
"--url-mapping",
|
||||
"dart:fuchsia," + rebase_path(fuchsia_sdk_ext_lib),
|
||||
"--url-mapping",
|
||||
"dart:mozart.internal," + rebase_path(mozart_dart_sdk_ext_lib),
|
||||
"--url-mapping",
|
||||
@@ -300,8 +306,8 @@ template("flutter_aot_app") {
|
||||
}
|
||||
|
||||
dylib_path =
|
||||
get_label_info(":$dylib_label($shlib_toolchain)",
|
||||
"root_out_dir") + "/lib.unstripped/lib$target_name.so"
|
||||
get_label_info(":$dylib_label($shlib_toolchain)", "root_out_dir") +
|
||||
"/lib.unstripped/lib$target_name.so"
|
||||
|
||||
action(target_name) {
|
||||
depfile = bundle_depfile
|
||||
@@ -392,7 +398,7 @@ template("flutter_app") {
|
||||
"deps",
|
||||
"manifest",
|
||||
"analysis_options",
|
||||
"source_dir"
|
||||
"source_dir",
|
||||
])
|
||||
}
|
||||
} else {
|
||||
@@ -405,7 +411,7 @@ template("flutter_app") {
|
||||
"deps",
|
||||
"manifest",
|
||||
"analysis_options",
|
||||
"source_dir"
|
||||
"source_dir",
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ source_set("flow") {
|
||||
deps += [
|
||||
"//apps/mozart/lib/scenic:client",
|
||||
"//apps/mozart/services/scenic",
|
||||
"//garnet/public/lib/fidl/dart/sdk_ext",
|
||||
"//garnet/public/dart-pkg/zircon",
|
||||
]
|
||||
|
||||
public_deps += [
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
namespace flow {
|
||||
|
||||
ExportNodeHolder::ExportNodeHolder(
|
||||
ftl::RefPtr<fidl::dart::Handle> export_token_handle)
|
||||
ftl::RefPtr<zircon::dart::Handle> export_token_handle)
|
||||
: export_node_(std::make_unique<ExportNode>(export_token_handle)) {
|
||||
ASSERT_IS_UI_THREAD;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ ExportNodeHolder::~ExportNodeHolder() {
|
||||
}));
|
||||
}
|
||||
|
||||
ExportNode::ExportNode(ftl::RefPtr<fidl::dart::Handle> export_token_handle)
|
||||
ExportNode::ExportNode(ftl::RefPtr<zircon::dart::Handle> export_token_handle)
|
||||
: export_token_(export_token_handle->ReleaseHandle()) {}
|
||||
|
||||
ExportNode::~ExportNode() {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "apps/mozart/lib/scenic/client/resources.h"
|
||||
#include "flutter/flow/scene_update_context.h"
|
||||
#include "lib/fidl/dart/sdk_ext/src/handle.h"
|
||||
#include "dart-pkg/zircon/sdk_ext/handle.h"
|
||||
#include "lib/ftl/build_config.h"
|
||||
#include "lib/ftl/macros.h"
|
||||
#include "lib/ftl/memory/ref_counted.h"
|
||||
@@ -26,7 +26,7 @@ namespace flow {
|
||||
// held by the ExportNode.
|
||||
class ExportNodeHolder : public ftl::RefCountedThreadSafe<ExportNodeHolder> {
|
||||
public:
|
||||
ExportNodeHolder(ftl::RefPtr<fidl::dart::Handle> export_token_handle);
|
||||
ExportNodeHolder(ftl::RefPtr<zircon::dart::Handle> export_token_handle);
|
||||
~ExportNodeHolder();
|
||||
|
||||
// Calls Bind() on the wrapped ExportNode.
|
||||
@@ -50,7 +50,7 @@ class ExportNodeHolder : public ftl::RefCountedThreadSafe<ExportNodeHolder> {
|
||||
// must be created and destroyed by the rasterizer thread.
|
||||
class ExportNode {
|
||||
public:
|
||||
ExportNode(ftl::RefPtr<fidl::dart::Handle> export_token_handle);
|
||||
ExportNode(ftl::RefPtr<zircon::dart::Handle> export_token_handle);
|
||||
|
||||
~ExportNode();
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ import("//dart/utils/generate_patch_sdk.gni")
|
||||
|
||||
if (is_fuchsia) {
|
||||
import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni")
|
||||
import("//garnet/public/lib/fidl/dart/sdk_ext/sdk_ext.gni")
|
||||
import("//garnet/public/dart-pkg/fuchsia/sdk_ext.gni")
|
||||
import("//garnet/public/dart-pkg/zircon/sdk_ext.gni")
|
||||
}
|
||||
|
||||
bindings_output_dir = "$root_gen_dir/sky/bindings"
|
||||
@@ -157,11 +158,13 @@ action("generate_snapshot_bin") {
|
||||
}
|
||||
|
||||
if (is_fuchsia) {
|
||||
inputs += fidl_dart_sdk_ext_files + mozart_dart_sdk_ext_files
|
||||
fidl_internal_path = rebase_path(fidl_dart_sdk_ext_lib)
|
||||
inputs += zircon_sdk_ext_files + mozart_dart_sdk_ext_files
|
||||
zircon_path = rebase_path(zircon_sdk_ext_lib)
|
||||
fuchsia_path = rebase_path(fuchsia_sdk_ext_lib)
|
||||
mozart_internal_path = rebase_path(mozart_dart_sdk_ext_lib)
|
||||
args += [
|
||||
"--url_mapping=dart:fidl.internal,$fidl_internal_path",
|
||||
"--url_mapping=dart:zircon,$zircon_path",
|
||||
"--url_mapping=dart:fuchsia,$fuchsia_path",
|
||||
"--url_mapping=dart:mozart.internal,$mozart_internal_path",
|
||||
"--packages",
|
||||
rebase_path("$target_gen_dir/snapshot.packages"),
|
||||
|
||||
@@ -1187,29 +1187,29 @@ dart:math,::,_doublePow
|
||||
dart:math,::,_pow
|
||||
dart:math,::,sin
|
||||
dart:math,::,cos
|
||||
dart:fidl.internal,HandleWaiter,HandleWaiter.
|
||||
dart:fidl.internal,HandleWaiter,_constructor
|
||||
dart:fidl.internal,HandleWaiter,asyncWait
|
||||
dart:fidl.internal,HandleWaiter,cancelWait
|
||||
dart:fidl.internal,HandleWaiter,_asyncWait
|
||||
dart:fidl.internal,HandleWaiter,_cancelWait
|
||||
dart:fidl.internal,HandleWaiter,get:_callback
|
||||
dart:fidl.internal,HandleWaiter,set:_callback
|
||||
dart:fidl.internal,MxStartupInfo,takeEnvironment
|
||||
dart:fidl.internal,MxStartupInfo,takeOutgoingServices
|
||||
dart:fidl.internal,MxHandle,_registerFinalizer
|
||||
dart:fidl.internal,MxHandle,_unregisterFinalizer
|
||||
dart:fidl.internal,MxHandle,close
|
||||
dart:fidl.internal,MxChannel,create
|
||||
dart:fidl.internal,MxChannel,write
|
||||
dart:fidl.internal,MxChannel,queryAndRead
|
||||
dart:fidl.internal,Handle,Handle.
|
||||
dart:fidl.internal,Handle,get:h
|
||||
dart:fidl.internal,Handle,get:_h
|
||||
dart:fidl.internal,Handle,set:_h
|
||||
dart:fidl.internal,Handle,get:isValid
|
||||
dart:fidl.internal,Handle,close
|
||||
dart:fidl.internal,Handle,release
|
||||
dart:zircon,HandleWaiter,HandleWaiter.
|
||||
dart:zircon,HandleWaiter,_constructor
|
||||
dart:zircon,HandleWaiter,asyncWait
|
||||
dart:zircon,HandleWaiter,cancelWait
|
||||
dart:zircon,HandleWaiter,_asyncWait
|
||||
dart:zircon,HandleWaiter,_cancelWait
|
||||
dart:zircon,HandleWaiter,get:_callback
|
||||
dart:zircon,HandleWaiter,set:_callback
|
||||
dart:fuchsia,MxStartupInfo,takeEnvironment
|
||||
dart:fuchsia,MxStartupInfo,takeOutgoingServices
|
||||
dart:zircon,MxHandle,_registerFinalizer
|
||||
dart:zircon,MxHandle,_unregisterFinalizer
|
||||
dart:zircon,MxHandle,close
|
||||
dart:zircon,MxChannel,create
|
||||
dart:zircon,MxChannel,write
|
||||
dart:zircon,MxChannel,queryAndRead
|
||||
dart:zircon,Handle,Handle.
|
||||
dart:zircon,Handle,get:h
|
||||
dart:zircon,Handle,get:_h
|
||||
dart:zircon,Handle,set:_h
|
||||
dart:zircon,Handle,get:isValid
|
||||
dart:zircon,Handle,close
|
||||
dart:zircon,Handle,release
|
||||
dart:io,_Filter,_newZLibInflateFilter
|
||||
dart:io,_HttpOutboundMessage,get:_outgoing
|
||||
dart:io,_HttpOutboundMessage,get:headers
|
||||
|
||||
@@ -9,13 +9,14 @@ import 'dart:collection';
|
||||
import 'dart:convert';
|
||||
import 'dart:core';
|
||||
import 'dart:developer';
|
||||
import 'dart:fidl.internal';
|
||||
import 'dart:fuchsia';
|
||||
import 'dart:io';
|
||||
import 'dart:isolate';
|
||||
import 'dart:math';
|
||||
import 'dart:mozart.internal';
|
||||
import 'dart:typed_data';
|
||||
import 'dart:ui';
|
||||
import 'dart:zircon';
|
||||
|
||||
// These libraries are optional. They are included in the core snapshot and
|
||||
// partially compiled to avoid repeating them in each application and improve
|
||||
|
||||
@@ -99,6 +99,6 @@ source_set("ui") {
|
||||
"//third_party/skia:gpu",
|
||||
]
|
||||
if (is_fuchsia) {
|
||||
deps += [ "//garnet/public/lib/fidl/dart/sdk_ext" ]
|
||||
deps += [ "//garnet/public/dart-pkg/zircon" ]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ class SceneHost extends NativeFieldWrapperClass2 {
|
||||
/// sending the corresponding import token (the other endpoint of the event pair)
|
||||
/// to the child.
|
||||
///
|
||||
/// The export token is a dart:fidl.internal Handle, but that type isn't
|
||||
/// The export token is a dart:zircon Handle, but that type isn't
|
||||
/// available here. This is called by ChildViewConnection in
|
||||
/// //apps/mozart/lib/flutter/.
|
||||
///
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "lib/tonic/dart_wrappable.h"
|
||||
|
||||
#ifdef OS_FUCHSIA
|
||||
#include "lib/fidl/dart/sdk_ext/src/handle.h"
|
||||
#include "dart-pkg/zircon/sdk_ext/handle.h"
|
||||
#endif
|
||||
|
||||
namespace blink {
|
||||
@@ -32,11 +32,11 @@ void SceneHost::RegisterNatives(tonic::DartLibraryNatives* natives) {
|
||||
|
||||
#if defined(OS_FUCHSIA)
|
||||
ftl::RefPtr<SceneHost> SceneHost::create(
|
||||
ftl::RefPtr<fidl::dart::Handle> export_token_handle) {
|
||||
ftl::RefPtr<zircon::dart::Handle> export_token_handle) {
|
||||
return ftl::MakeRefCounted<SceneHost>(export_token_handle);
|
||||
}
|
||||
|
||||
SceneHost::SceneHost(ftl::RefPtr<fidl::dart::Handle> export_token_handle) {
|
||||
SceneHost::SceneHost(ftl::RefPtr<zircon::dart::Handle> export_token_handle) {
|
||||
export_node_holder_ =
|
||||
ftl::MakeRefCounted<flow::ExportNodeHolder>(export_token_handle);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class SceneHost : public ftl::RefCountedThreadSafe<SceneHost>,
|
||||
public:
|
||||
#if defined(OS_FUCHSIA)
|
||||
static ftl::RefPtr<SceneHost> create(
|
||||
ftl::RefPtr<fidl::dart::Handle> export_token_handle);
|
||||
ftl::RefPtr<zircon::dart::Handle> export_token_handle);
|
||||
#else
|
||||
static ftl::RefPtr<SceneHost> create(Dart_Handle export_token_handle);
|
||||
#endif
|
||||
@@ -50,7 +50,7 @@ class SceneHost : public ftl::RefCountedThreadSafe<SceneHost>,
|
||||
#endif
|
||||
|
||||
#if defined(OS_FUCHSIA)
|
||||
explicit SceneHost(ftl::RefPtr<fidl::dart::Handle> export_token_handle);
|
||||
explicit SceneHost(ftl::RefPtr<zircon::dart::Handle> export_token_handle);
|
||||
#else
|
||||
explicit SceneHost(Dart_Handle export_token_handle);
|
||||
#endif
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
dart:fuchsia,::,_environment
|
||||
dart:fuchsia,::,_outgoingServices
|
||||
dart:io,_Namespace,_setupNamespace
|
||||
dart:fidl.internal,::,_environment
|
||||
dart:fidl.internal,::,_outgoingServices
|
||||
dart:fidl.internal,GetSizeResult,GetSizeResult.
|
||||
dart:fidl.internal,Handle,Handle._
|
||||
dart:fidl.internal,HandlePairResult,HandlePairResult.
|
||||
dart:fidl.internal,HandleResult,HandleResult.
|
||||
dart:fidl.internal,HandleWaiter,HandleWaiter._
|
||||
dart:fidl.internal,ReadResult,ReadResult.
|
||||
dart:fidl.internal,WriteResult,WriteResult.
|
||||
dart:mozart.internal,::,_context
|
||||
dart:mozart.internal,::,_viewContainer
|
||||
dart:zircon,GetSizeResult,GetSizeResult.
|
||||
dart:zircon,Handle,Handle._
|
||||
dart:zircon,HandlePairResult,HandlePairResult.
|
||||
dart:zircon,HandleResult,HandleResult.
|
||||
dart:zircon,HandleWaiter,HandleWaiter._
|
||||
dart:zircon,ReadResult,ReadResult.
|
||||
dart:zircon,WriteResult,WriteResult.
|
||||
|
||||
Reference in New Issue
Block a user