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

Commit 326aae7

Browse files
committed
Fix fml_unittests
1 parent 2c0eee4 commit 326aae7

File tree

3 files changed

+17
-24
lines changed

3 files changed

+17
-24
lines changed

fml/BUILD.gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ executable("fml_unittests") {
253253
"$flutter_root/runtime:libdart",
254254
"$flutter_root/testing",
255255
]
256+
257+
if (is_fuchsia && using_fuchsia_sdk) {
258+
libs = [ "${fuchsia_sdk_path}/arch/${target_cpu}/sysroot/lib/libzircon.so" ]
259+
}
256260
}
257261

258262
if (is_fuchsia) {

runtime/BUILD.gn

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ source_set("test_font") {
2828
group("libdart") {
2929
public_deps = []
3030

31-
if (!(is_fuchsia && using_fuchsia_sdk)) {
32-
if (flutter_runtime_mode == "profile" ||
33-
flutter_runtime_mode == "release") {
34-
public_deps +=
35-
[ "//third_party/dart/runtime:libdart_precompiled_runtime" ]
36-
} else {
37-
public_deps += [
38-
"$flutter_root/lib/snapshot",
39-
"//third_party/dart/runtime:libdart_jit",
40-
]
41-
}
31+
if (flutter_runtime_mode == "profile" ||
32+
flutter_runtime_mode == "release") {
33+
public_deps +=
34+
[ "//third_party/dart/runtime:libdart_precompiled_runtime" ]
35+
} else {
36+
public_deps += [
37+
"$flutter_root/lib/snapshot",
38+
"//third_party/dart/runtime:libdart_jit",
39+
]
4240
}
4341
}
4442

shell/platform/fuchsia/dart_runner/BUILD.gn

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ template("runner") {
1717

1818
invoker_output_name = invoker.output_name
1919
extra_defines = invoker.extra_defines
20-
extra_deps = invoker.extra_deps
20+
extra_deps = []
21+
if (defined(invoker.extra_deps)) {
22+
extra_deps += invoker.extra_deps
23+
}
2124

2225
executable(target_name) {
2326
output_name = invoker_output_name
@@ -77,20 +80,12 @@ runner("dart_jit_runner_bin") {
7780
if (flutter_runtime_mode == "profile") {
7881
extra_defines += [ "FLUTTER_PROFILE" ]
7982
}
80-
extra_deps = [
81-
"//third_party/dart/runtime:libdart_jit",
82-
"//third_party/dart/runtime/platform:libdart_platform_jit",
83-
]
8483
}
8584

8685
runner("dart_jit_product_runner_bin") {
8786
output_name = "dart_jit_product_runner"
8887
product = true
8988
extra_defines = [ "DART_PRODUCT" ]
90-
extra_deps = [
91-
"//third_party/dart/runtime:libdart_jit_product",
92-
"//third_party/dart/runtime/platform:libdart_platform_jit_product",
93-
]
9489
}
9590

9691
runner("dart_aot_runner_bin") {
@@ -102,8 +97,6 @@ runner("dart_aot_runner_bin") {
10297
}
10398
extra_deps = [
10499
"embedder:dart_aot_snapshot_cc",
105-
"//third_party/dart/runtime:libdart_precompiled_runtime",
106-
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime",
107100
]
108101
}
109102

@@ -116,8 +109,6 @@ runner("dart_aot_product_runner_bin") {
116109
]
117110
extra_deps = [
118111
"embedder:dart_aot_product_snapshot_cc",
119-
"//third_party/dart/runtime:libdart_precompiled_runtime_product",
120-
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime_product",
121112
]
122113
}
123114

0 commit comments

Comments
 (0)