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

Commit fa05362

Browse files
authored
Build dart:zircon and dart:zircon_ffi (#28071)
1 parent 35ad0f6 commit fa05362

File tree

11 files changed

+47
-9
lines changed

11 files changed

+47
-9
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 = [ "zircon:dart_zircon" ]
7+
}

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+
}

tools/.vpython

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
wheel: <
2+
name: "infra/python/wheels/pyyaml/${vpython_platform}"
3+
version: "version:3.12"
4+
>

tools/.vpython3

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_version: "3.8"
2+
wheel: <
3+
name: "infra/python/wheels/pyyaml-py3"
4+
version: "version:5.3.1"
5+
>

tools/fuchsia/dart/dart_package_config.gni

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ template("dart_package_config") {
7777
"visibility",
7878
])
7979

80-
script =
81-
get_label_info("//flutter/tools/fuchsia/dart:gen_dart_package_config",
82-
"target_out_dir") + "/gen_dart_package_config.pyz"
80+
script = "//flutter/tools/fuchsia/dart/gen_dart_package_config.py"
8381

8482
inputs = [ intermediate_file ]
8583
outputs = [ package_config_file ]

tools/fuchsia/dart/gen_dart_package_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3.8
1+
#!/usr/bin/env vpython3
22
# Copyright 2013 The Flutter Authors. All rights reserved.
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.

tools/fuchsia/sdk/find_dart_libraries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env vpython3
22
#
33
# Copyright 2013 The Flutter Authors. All rights reserved.
44
# Use of this source code is governed by a BSD-style license that can be

tools/gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env vpython3
22
# Copyright 2013 The Flutter Authors. All rights reserved.
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.

0 commit comments

Comments
 (0)