1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32

build / linux / unbundle / swiftshader-SPIRV-Tools.gn [blame]

import("//build/config/linux/pkg_config.gni")
import("//build/shim_headers.gni")

pkg_config("system_SPIRV-Tools") {
  packages = [ "SPIRV-Tools" ]
}

shim_headers("SPIRV-Tools_shim") {
  root_path = "../../../../third_party/SPIRV-Tools/include"
  headers = [
    "spirv-tools/instrument.hpp",
    "spirv-tools/libspirv.h",
    "spirv-tools/libspirv.hpp",
    "spirv-tools/linker.hpp",
    "spirv-tools/optimizer.hpp",
  ]
}

source_set("spvtools_headers") {
  deps = [ ":SPIRV-Tools_shim" ]
  public_configs = [ ":system_SPIRV-Tools" ]
}

source_set("spvtools_opt") {
  deps = [ ":SPIRV-Tools_shim" ]
  public_configs = [ ":system_SPIRV-Tools" ]
}

source_set("spvtools_val") {
  deps = [ ":SPIRV-Tools_shim" ]
  public_configs = [ ":system_SPIRV-Tools" ]
}