Skip to content

Commit eed171f

Browse files
authored
[dart_aot_runner] Add rules to generate dart_aot binaries (flutter#13074)
1 parent 808c910 commit eed171f

File tree

1 file changed

+28
-0
lines changed
  • shell/platform/fuchsia/dart_runner

1 file changed

+28
-0
lines changed

shell/platform/fuchsia/dart_runner/BUILD.gn

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,34 @@ runner("dart_jit_product_runner_bin") {
9393
]
9494
}
9595

96+
runner("dart_aot_runner_bin") {
97+
output_name = "dart_aot_runner"
98+
product = false
99+
extra_defines = [ "AOT_RUNTIME" ]
100+
if (flutter_runtime_mode == "profile") {
101+
extra_defines += [ "FLUTTER_PROFILE" ]
102+
}
103+
extra_deps = [
104+
"embedder:dart_aot_snapshot_cc",
105+
"//third_party/dart/runtime:libdart_precompiled_runtime",
106+
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime",
107+
]
108+
}
109+
110+
runner("dart_aot_product_runner_bin") {
111+
output_name = "dart_aot_product_runner"
112+
product = true
113+
extra_defines = [
114+
"AOT_RUNTIME",
115+
"DART_PRODUCT",
116+
]
117+
extra_deps = [
118+
"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",
121+
]
122+
}
123+
96124
template("jit_runner_package") {
97125
assert(defined(invoker.product), "The parameter 'product' must be defined")
98126
product_suffix = ""

0 commit comments

Comments
 (0)