blob: aadd693dbf0dc0d385152d1f1e61529e2c8a38b2 [file] [log] [blame] [edit]
# Copyright 2013 The Flutter 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("//flutter/tools/fuchsia/clang.gni")
fuchsia_sdk_base = "//fuchsia/sdk/$host_os/arch/$target_cpu"
fuchsia_sdk_dist = "$fuchsia_sdk_base/dist"
sysroot_lib = "$fuchsia_sdk_base/sysroot/lib"
sysroot_dist_lib = "$fuchsia_sdk_base/sysroot/dist/lib"
common_libs = [
{
name = "libasync-default.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "libtrace-engine.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "libfdio.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "libmemfs.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "libsyslog.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "libvulkan.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "libtrace-provider-so.so"
path = rebase_path("$fuchsia_sdk_dist")
},
{
name = "ld.so.1"
path = rebase_path("$sysroot_dist_lib")
},
# Note, we use the md5 hashes here because of gn limitations of json parsing.
# This is a hack, and we can migrate to a better way soon.
{
name = "libc++.so.2"
path = rebase_path(
"$clang_base/${clang_manifest_json.md5_19df03aecdc9eb27bc8b4038352f2b27}")
},
{
name = "libc++abi.so.1"
path = rebase_path(
"$clang_base/${clang_manifest_json.md5_6aff1b5f218d4a9278d85d63d0695af8}")
},
{
name = "libunwind.so.1"
path = rebase_path(
"$clang_base/${clang_manifest_json.md5_fb2bd871885ef42c2cf3138655f901ed}")
},
]
vulkan_dist = "$fuchsia_sdk_base/dist"
# Note that the other validation libraries in the Fuchsia SDK seem to have a bug right
# now causing crashes, so it is only recommended that we use
# VkLayer_khronos_validation.so until we have a confirmation that they are fixed.
vulkan_validation_libs = [
{
name = "VkLayer_khronos_validation.so"
path = rebase_path("$vulkan_dist")
},
]
vulkan_data_dir =
"//fuchsia/sdk/$host_os/pkg/vulkan_layers/data/vulkan/explicit_layer.d"
vulkan_icds = [
{
path = rebase_path("$vulkan_data_dir/VkLayer_khronos_validation.json")
dest = "vulkan/explicit_layer.d/VkLayer_khronos_validation.json"
},
]