提交 bde64ab1 编写于 作者: C Chinmay Garde

Use `dart_host_toolchain` when building host binaries that depend on Dart

上级 6db4443b
......@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//sky/engine/bindings/bindings.gni")
group("sky") {
testonly = true
......@@ -10,9 +12,12 @@ group("sky") {
"//sky/engine/wtf:unittests($host_toolchain)",
"//sky/packages",
"//sky/shell",
"//sky/tools/sky_snapshot($host_toolchain)",
]
if (dart_host_toolchain == host_toolchain) {
deps += [ "//sky/tools/sky_snapshot($dart_host_toolchain)" ]
}
if (is_linux || is_android) {
deps += [ "//sky/shell/platform/mojo" ]
}
......
......@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//sky/engine/bindings/bindings.gni")
template("flx") {
bundle_prefix = target_name
bundle = "$target_gen_dir/${bundle_prefix}.flx"
......@@ -48,13 +50,7 @@ template("flx") {
]
}
deps = []
if (!is_ios) {
# sky_snapshot is used to create a script snapshot. iOS builds use
# a precompiled snapshot. So this dependency is redundant.
deps += [ "//sky/tools/sky_snapshot($host_toolchain)" ]
}
deps = [ "//sky/tools/sky_snapshot($dart_host_toolchain)" ]
if (defined(invoker.deps)) {
deps += invoker.deps
......
......@@ -60,7 +60,7 @@ source_set("bindings") {
action("generate_snapshot_bin") {
deps = [
"//dart/runtime/bin:gen_snapshot($host_toolchain)",
"//dart/runtime/bin:gen_snapshot($dart_host_toolchain)",
":generate_dart_ui",
]
inputs = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册