MSL: Add missing reference output.
[KhronosGroup/SPIRV-Cross.git] / Package.swift
blob99e601936a42c97f5cae083c2f0032cba44459f4
1 // swift-tools-version:5.5
2 // The swift-tools-version declares the minimum version of Swift required to build this package.
4 // Copyright 2016-2021 The Khronos Group Inc.
5 // SPDX-License-Identifier: Apache-2.0
7 import PackageDescription
9 let package = Package(
10     name: "SPIRV-Cross",
11     products: [
12         // Products define the executables and libraries a package produces, and make them visible to other packages.
13         .library(
14             name: "SPIRV-Cross",
15             targets: ["SPIRV-Cross"]),
16     ],
17     dependencies: [
18         // Dependencies declare other packages that this package depends on.
19         // .package(url: /* package url */, from: "1.0.0"),
20     ],
21     targets: [
22         // Targets are the basic building blocks of a package. A target can define a module or a test suite.
23         // Targets can depend on other targets in this package, and on products in packages this package depends on.
24         .target(
25             name: "SPIRV-Cross",
26             dependencies: [],
27             path: ".",
28             exclude: ["CMakeLists.txt",
29                       "CODE_OF_CONDUCT.adoc",
30                       "LICENSE",
31                       "LICENSES",
32                       "Makefile",
33                       "README.md",
34                       "appveyor.yml",
35                       "build_glslang_spirv_tools.sh",
36                       "checkout_glslang_spirv_tools.sh",
37                       "cmake",
38                       "format_all.sh",
39                       "gn",
40                       "main.cpp",
41                       "pkg-config",
42                       "reference",
43                       "samples",
44                       "shaders",
45                       "shaders-hlsl",
46                       "shaders-hlsl-no-opt",
47                       "shaders-msl",
48                       "shaders-msl-no-opt",
49                       "shaders-no-opt",
50                       "shaders-other",
51                       "shaders-reflection",
52                       "shaders-ue4",
53                       "shaders-ue4-no-opt",
54                       "test_shaders.py",
55                       "test_shaders.sh",
56                       "tests-other",
57                       "update_test_shaders.sh"],
58             sources: ["spirv_cfg.cpp",
59                       "spirv_cpp.cpp",
60                       "spirv_cross.cpp",
61                       "spirv_cross_c.cpp",
62                       "spirv_cross_parsed_ir.cpp",
63                       "spirv_cross_util.cpp",
64                       "spirv_glsl.cpp",
65                       "spirv_hlsl.cpp",
66                       "spirv_msl.cpp",
67                       "spirv_parser.cpp",
68                       "spirv_reflect.cpp"],
69             publicHeadersPath: "."),
70     ],
71     cxxLanguageStandard: .cxx14