mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
40a53e2a2a
Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try,vm-kernel-win-release-x64-try Change-Id: I94d65dbc239ce154db840638410d444d9f9bf50e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204584 Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
31 lines
839 B
Text
31 lines
839 B
Text
# Copyright 2019 The Fuchsia Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/fuchsia/config/clang/clang.gni")
|
|
|
|
# This adds the runtime deps for C++ for usage when cross compiling.
|
|
group("c++-runtime-deps") {
|
|
data_deps = [
|
|
":clang-runtime-libs",
|
|
]
|
|
}
|
|
|
|
copy("clang-runtime-libs") {
|
|
if (target_cpu == "arm64") {
|
|
arch = "aarch64"
|
|
} else if (target_cpu == "x64") {
|
|
arch = "x86_64"
|
|
}
|
|
vendor = "unknown"
|
|
|
|
sys = target_os
|
|
sources = [
|
|
"${clang_base_path}/lib/${arch}-${vendor}-${sys}/libc++.so.2.0",
|
|
"${clang_base_path}/lib/${arch}-${vendor}-${sys}/libc++abi.so.1.0",
|
|
"${clang_base_path}/lib/${arch}-${vendor}-${sys}/libunwind.so.1.0",
|
|
]
|
|
outputs = [
|
|
"${root_out_dir}/lib/{{source_name_part}}",
|
|
]
|
|
}
|