fuchsia_libs.gni 3.5 KB
Newer Older
1 2 3 4
# 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.

5
import("//flutter/tools/fuchsia/clang.gni")
6

7
fuchsia_sdk_base = "//fuchsia/sdk/$host_os/arch/$target_cpu"
8
fuchsia_sdk_dist = "$fuchsia_sdk_base/dist"
9 10 11 12 13 14
sysroot_lib = "$fuchsia_sdk_base/sysroot/lib"
sysroot_dist_lib = "$fuchsia_sdk_base/sysroot/dist/lib"

common_libs = [
  {
    name = "libasync-default.so"
15
    path = rebase_path("$fuchsia_sdk_dist")
16 17 18
  },
  {
    name = "libtrace-engine.so"
19
    path = rebase_path("$fuchsia_sdk_dist")
20 21 22
  },
  {
    name = "libfdio.so"
23
    path = rebase_path("$fuchsia_sdk_dist")
24 25 26
  },
  {
    name = "libmemfs.so"
27
    path = rebase_path("$fuchsia_sdk_dist")
28 29 30
  },
  {
    name = "libsyslog.so"
31
    path = rebase_path("$fuchsia_sdk_dist")
32 33 34
  },
  {
    name = "libvulkan.so"
35
    path = rebase_path("$fuchsia_sdk_dist")
36
  },
37 38
  {
    name = "libtrace-provider-so.so"
39
    path = rebase_path("$fuchsia_sdk_dist")
40
  },
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
  {
    name = "libzircon.so"
    path = rebase_path("$sysroot_lib")
  },
  {
    name = "libc.so"
    path = rebase_path("$sysroot_lib")
  },
  {
    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_33bfe15b05ada4ed326fbc33adb39b95}")
  },
  {
    name = "libc++abi.so.1"
    path = rebase_path(
            "$clang_base/${clang_manifest_json.md5_916c01a85e3353f124776599819ecb1c}")
  },
  {
    name = "libunwind.so.1"
    path = rebase_path(
            "$clang_base/${clang_manifest_json.md5_beb70f40d525448b39ea87d9f5811e56}")
  },
]
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134

vulkan_dist = "$fuchsia_sdk_base/dist"

vulkan_validation_libs = [
  {
    name = "VkLayer_core_validation.so"
    path = rebase_path("$vulkan_dist")
  },
  {
    name = "VkLayer_khronos_validation.so"
    path = rebase_path("$vulkan_dist")
  },
  {
    name = "VkLayer_object_lifetimes.so"
    path = rebase_path("$vulkan_dist")
  },
  {
    name = "VkLayer_stateless_validation.so"
    path = rebase_path("$vulkan_dist")
  },
  {
    name = "VkLayer_thread_safety.so"
    path = rebase_path("$vulkan_dist")
  },
  {
    name = "VkLayer_unique_objects.so"
    path = rebase_path("$vulkan_dist")
  },
]

vulkan_data_dir =
    "//fuchsia/sdk/linux/pkg/vulkan_layers/data/vulkan/explicit_layer.d"

vulkan_icds = [
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_core_validation.json")
    dest = "vulkan/explicit_layer.d/VkLayer_core_validation.json"
  },
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_object_lifetimes.json")
    dest = "vulkan/explicit_layer.d/VkLayer_object_lifetimes.json"
  },
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_thread_safety.json")
    dest = "vulkan/explicit_layer.d/VkLayer_thread_safety.json"
  },
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_stateless_validation.json")
    dest = "vulkan/explicit_layer.d/VkLayer_stateless_validation.json"
  },
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_unique_objects.json")
    dest = "vulkan/explicit_layer.d/VkLayer_unique_objects.json"
  },
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_khronos_validation.json")
    dest = "vulkan/explicit_layer.d/VkLayer_khronos_validation.json"
  },
  {
    path = rebase_path("$vulkan_data_dir/VkLayer_standard_validation.json")
    dest = "vulkan/explicit_layer.d/VkLayer_standard_validation.json"
  },
]