Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4d016ff

Browse files
committed
Build dart:zircon and dart:zircon_ffi
1 parent b288e8a commit 4d016ff

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

shell/platform/fuchsia/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ group("fuchsia") {
7777
deps = [
7878
":dart_binaries",
7979
":flutter_binaries",
80+
"dart-pkg",
8081
"dart_runner:dart_aot_${product_suffix}runner",
8182
"dart_runner:dart_jit_${product_suffix}runner",
8283
"flutter:flutter_aot_${product_suffix}runner",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
group("dart-pkg") {
6+
deps = [
7+
"zircon:dart_zircon"
8+
]
9+
}

shell/platform/fuchsia/dart-pkg/zircon/BUILD.gn

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# found in the LICENSE file.
44

55
import("//build/fuchsia/sdk.gni")
6+
import("//flutter/tools/fuchsia/dart/dart_library.gni")
67

78
config("zircon_config") {
89
include_dirs = [ "." ]
@@ -35,3 +36,18 @@ source_set("zircon") {
3536
"//flutter/third_party/tonic",
3637
]
3738
}
39+
40+
dart_library("dart_zircon") {
41+
package_name = "zircon"
42+
43+
sources = [
44+
"src/handle.dart",
45+
"src/handle_disposition.dart",
46+
"src/handle_waiter.dart",
47+
"src/init.dart",
48+
"src/system.dart",
49+
"zircon.dart",
50+
]
51+
52+
deps = [ "../zircon_ffi:dart_zircon_ffi" ]
53+
}

shell/platform/fuchsia/dart-pkg/zircon_ffi/BUILD.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# found in the LICENSE file.
44

55
import("//build/fuchsia/sdk.gni")
6+
import("//flutter/tools/fuchsia/dart/dart_library.gni")
67

78
config("zircon_ffi_config") {
89
include_dirs = [ "." ]
@@ -21,3 +22,9 @@ shared_library("zircon_ffi") {
2122
"//third_party/dart/runtime:dart_api",
2223
]
2324
}
25+
26+
dart_library("dart_zircon_ffi") {
27+
package_name = "zircon_ffi"
28+
29+
sources = [ "zircon_ffi.dart" ]
30+
}

0 commit comments

Comments
 (0)