gstaichi 2.1.1rc3__cp312-cp312-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gstaichi/CHANGELOG.md +4 -0
- gstaichi/__init__.py +40 -0
- gstaichi/_funcs.py +706 -0
- gstaichi/_kernels.py +420 -0
- gstaichi/_lib/__init__.py +3 -0
- gstaichi/_lib/core/__init__.py +0 -0
- gstaichi/_lib/core/gstaichi_python.cpython-312-darwin.so +0 -0
- gstaichi/_lib/core/gstaichi_python.pyi +2909 -0
- gstaichi/_lib/core/py.typed +0 -0
- gstaichi/_lib/runtime/libMoltenVK.dylib +0 -0
- gstaichi/_lib/runtime/runtime_arm64.bc +0 -0
- gstaichi/_lib/utils.py +243 -0
- gstaichi/_logging.py +131 -0
- gstaichi/_snode/__init__.py +5 -0
- gstaichi/_snode/fields_builder.py +187 -0
- gstaichi/_snode/snode_tree.py +34 -0
- gstaichi/_test_tools/__init__.py +18 -0
- gstaichi/_test_tools/dataclass_test_tools.py +36 -0
- gstaichi/_test_tools/load_kernel_string.py +30 -0
- gstaichi/_test_tools/textwrap2.py +6 -0
- gstaichi/_version.py +1 -0
- gstaichi/_version_check.py +100 -0
- gstaichi/ad/__init__.py +3 -0
- gstaichi/ad/_ad.py +530 -0
- gstaichi/algorithms/__init__.py +3 -0
- gstaichi/algorithms/_algorithms.py +117 -0
- gstaichi/assets/.git +1 -0
- gstaichi/assets/Go-Regular.ttf +0 -0
- gstaichi/assets/static/imgs/ti_gallery.png +0 -0
- gstaichi/examples/lcg_python.py +26 -0
- gstaichi/examples/lcg_taichi.py +34 -0
- gstaichi/examples/minimal.py +28 -0
- gstaichi/experimental.py +16 -0
- gstaichi/lang/__init__.py +50 -0
- gstaichi/lang/_dataclass_util.py +31 -0
- gstaichi/lang/_fast_caching/__init__.py +3 -0
- gstaichi/lang/_fast_caching/args_hasher.py +110 -0
- gstaichi/lang/_fast_caching/config_hasher.py +30 -0
- gstaichi/lang/_fast_caching/fast_caching_types.py +21 -0
- gstaichi/lang/_fast_caching/function_hasher.py +57 -0
- gstaichi/lang/_fast_caching/hash_utils.py +11 -0
- gstaichi/lang/_fast_caching/python_side_cache.py +52 -0
- gstaichi/lang/_fast_caching/src_hasher.py +75 -0
- gstaichi/lang/_kernel_impl_dataclass.py +212 -0
- gstaichi/lang/_ndarray.py +352 -0
- gstaichi/lang/_ndrange.py +152 -0
- gstaichi/lang/_template_mapper.py +195 -0
- gstaichi/lang/_texture.py +172 -0
- gstaichi/lang/_wrap_inspect.py +215 -0
- gstaichi/lang/any_array.py +99 -0
- gstaichi/lang/ast/__init__.py +5 -0
- gstaichi/lang/ast/ast_transformer.py +1323 -0
- gstaichi/lang/ast/ast_transformer_utils.py +346 -0
- gstaichi/lang/ast/ast_transformers/__init__.py +0 -0
- gstaichi/lang/ast/ast_transformers/call_transformer.py +324 -0
- gstaichi/lang/ast/ast_transformers/function_def_transformer.py +304 -0
- gstaichi/lang/ast/checkers.py +106 -0
- gstaichi/lang/ast/symbol_resolver.py +57 -0
- gstaichi/lang/ast/transform.py +9 -0
- gstaichi/lang/common_ops.py +310 -0
- gstaichi/lang/exception.py +80 -0
- gstaichi/lang/expr.py +180 -0
- gstaichi/lang/field.py +428 -0
- gstaichi/lang/impl.py +1243 -0
- gstaichi/lang/kernel_arguments.py +155 -0
- gstaichi/lang/kernel_impl.py +1341 -0
- gstaichi/lang/matrix.py +1835 -0
- gstaichi/lang/matrix_ops.py +341 -0
- gstaichi/lang/matrix_ops_utils.py +190 -0
- gstaichi/lang/mesh.py +687 -0
- gstaichi/lang/misc.py +782 -0
- gstaichi/lang/ops.py +1494 -0
- gstaichi/lang/runtime_ops.py +13 -0
- gstaichi/lang/shell.py +35 -0
- gstaichi/lang/simt/__init__.py +5 -0
- gstaichi/lang/simt/block.py +94 -0
- gstaichi/lang/simt/grid.py +7 -0
- gstaichi/lang/simt/subgroup.py +191 -0
- gstaichi/lang/simt/warp.py +96 -0
- gstaichi/lang/snode.py +489 -0
- gstaichi/lang/source_builder.py +150 -0
- gstaichi/lang/struct.py +810 -0
- gstaichi/lang/util.py +312 -0
- gstaichi/linalg/__init__.py +8 -0
- gstaichi/linalg/matrixfree_cg.py +310 -0
- gstaichi/linalg/sparse_cg.py +59 -0
- gstaichi/linalg/sparse_matrix.py +303 -0
- gstaichi/linalg/sparse_solver.py +123 -0
- gstaichi/math/__init__.py +11 -0
- gstaichi/math/_complex.py +205 -0
- gstaichi/math/mathimpl.py +886 -0
- gstaichi/profiler/__init__.py +6 -0
- gstaichi/profiler/kernel_metrics.py +260 -0
- gstaichi/profiler/kernel_profiler.py +586 -0
- gstaichi/profiler/memory_profiler.py +15 -0
- gstaichi/profiler/scoped_profiler.py +36 -0
- gstaichi/sparse/__init__.py +3 -0
- gstaichi/sparse/_sparse_grid.py +77 -0
- gstaichi/tools/__init__.py +12 -0
- gstaichi/tools/diagnose.py +117 -0
- gstaichi/tools/np2ply.py +364 -0
- gstaichi/tools/vtk.py +38 -0
- gstaichi/types/__init__.py +19 -0
- gstaichi/types/annotations.py +52 -0
- gstaichi/types/compound_types.py +71 -0
- gstaichi/types/enums.py +49 -0
- gstaichi/types/ndarray_type.py +169 -0
- gstaichi/types/primitive_types.py +206 -0
- gstaichi/types/quant.py +88 -0
- gstaichi/types/texture_type.py +85 -0
- gstaichi/types/utils.py +11 -0
- gstaichi-2.1.1rc3.data/data/include/GLFW/glfw3.h +6389 -0
- gstaichi-2.1.1rc3.data/data/include/GLFW/glfw3native.h +594 -0
- gstaichi-2.1.1rc3.data/data/include/spirv-tools/instrument.hpp +268 -0
- gstaichi-2.1.1rc3.data/data/include/spirv-tools/libspirv.h +907 -0
- gstaichi-2.1.1rc3.data/data/include/spirv-tools/libspirv.hpp +375 -0
- gstaichi-2.1.1rc3.data/data/include/spirv-tools/linker.hpp +97 -0
- gstaichi-2.1.1rc3.data/data/include/spirv-tools/optimizer.hpp +970 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/GLSL.std.450.h +114 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv.h +2568 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv.hpp +2579 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cfg.hpp +168 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_common.hpp +1920 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cpp.hpp +93 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cross.hpp +1171 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cross_c.h +1074 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cross_containers.hpp +754 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cross_error_handling.hpp +94 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cross_parsed_ir.hpp +256 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_cross_util.hpp +37 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_glsl.hpp +1001 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_hlsl.hpp +406 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_msl.hpp +1273 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_parser.hpp +103 -0
- gstaichi-2.1.1rc3.data/data/include/spirv_cross/spirv_reflect.hpp +91 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools/SPIRV-ToolsConfig.cmake +5 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools/SPIRV-ToolsTarget-release.cmake +29 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake +114 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-diff/SPIRV-Tools-diffConfig.cmake +5 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-diff/SPIRV-Tools-diffTargets-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-diff/SPIRV-Tools-diffTargets.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-link/SPIRV-Tools-linkConfig.cmake +5 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-link/SPIRV-Tools-linkTargets-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-link/SPIRV-Tools-linkTargets.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-lint/SPIRV-Tools-lintConfig.cmake +5 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-lint/SPIRV-Tools-lintTargets-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-lint/SPIRV-Tools-lintTargets.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optConfig.cmake +5 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optTargets-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-opt/SPIRV-Tools-optTargets.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-reduce/SPIRV-Tools-reduceConfig.cmake +5 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-reduce/SPIRV-Tools-reduceTarget-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/SPIRV-Tools-reduce/SPIRV-Tools-reduceTarget.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/glfw3/glfw3Config.cmake +3 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/glfw3/glfw3ConfigVersion.cmake +65 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/glfw3/glfw3Targets-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/lib/cmake/glfw3/glfw3Targets.cmake +107 -0
- gstaichi-2.1.1rc3.data/data/lib/libSPIRV-Tools-shared.dylib +0 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_c/cmake/spirv_cross_cConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_c/cmake/spirv_cross_cConfig.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_core/cmake/spirv_cross_coreConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_core/cmake/spirv_cross_coreConfig.cmake +106 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_cpp/cmake/spirv_cross_cppConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_cpp/cmake/spirv_cross_cppConfig.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_glsl/cmake/spirv_cross_glslConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_glsl/cmake/spirv_cross_glslConfig.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_hlsl/cmake/spirv_cross_hlslConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_hlsl/cmake/spirv_cross_hlslConfig.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_msl/cmake/spirv_cross_mslConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_msl/cmake/spirv_cross_mslConfig.cmake +123 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_reflect/cmake/spirv_cross_reflectConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_reflect/cmake/spirv_cross_reflectConfig.cmake +106 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_util/cmake/spirv_cross_utilConfig-release.cmake +19 -0
- gstaichi-2.1.1rc3.data/data/share/spirv_cross_util/cmake/spirv_cross_utilConfig.cmake +123 -0
- gstaichi-2.1.1rc3.dist-info/METADATA +106 -0
- gstaichi-2.1.1rc3.dist-info/RECORD +179 -0
- gstaichi-2.1.1rc3.dist-info/WHEEL +5 -0
- gstaichi-2.1.1rc3.dist-info/licenses/LICENSE +201 -0
- gstaichi-2.1.1rc3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2018-2021 Arm Limited
|
3
|
+
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/*
|
19
|
+
* At your option, you may choose to accept this material under either:
|
20
|
+
* 1. The Apache License, Version 2.0, found at <http://www.apache.org/licenses/LICENSE-2.0>, or
|
21
|
+
* 2. The MIT License, found at <http://opensource.org/licenses/MIT>.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef SPIRV_CROSS_PARSER_HPP
|
25
|
+
#define SPIRV_CROSS_PARSER_HPP
|
26
|
+
|
27
|
+
#include "spirv_cross_parsed_ir.hpp"
|
28
|
+
#include <stdint.h>
|
29
|
+
|
30
|
+
namespace SPIRV_CROSS_NAMESPACE
|
31
|
+
{
|
32
|
+
class Parser
|
33
|
+
{
|
34
|
+
public:
|
35
|
+
Parser(const uint32_t *spirv_data, size_t word_count);
|
36
|
+
Parser(std::vector<uint32_t> spirv);
|
37
|
+
|
38
|
+
void parse();
|
39
|
+
|
40
|
+
ParsedIR &get_parsed_ir()
|
41
|
+
{
|
42
|
+
return ir;
|
43
|
+
}
|
44
|
+
|
45
|
+
private:
|
46
|
+
ParsedIR ir;
|
47
|
+
SPIRFunction *current_function = nullptr;
|
48
|
+
SPIRBlock *current_block = nullptr;
|
49
|
+
// For workarounds.
|
50
|
+
bool ignore_trailing_block_opcodes = false;
|
51
|
+
|
52
|
+
void parse(const Instruction &instr);
|
53
|
+
const uint32_t *stream(const Instruction &instr) const;
|
54
|
+
|
55
|
+
template <typename T, typename... P>
|
56
|
+
T &set(uint32_t id, P &&... args)
|
57
|
+
{
|
58
|
+
ir.add_typed_id(static_cast<Types>(T::type), id);
|
59
|
+
auto &var = variant_set<T>(ir.ids[id], std::forward<P>(args)...);
|
60
|
+
var.self = id;
|
61
|
+
return var;
|
62
|
+
}
|
63
|
+
|
64
|
+
template <typename T>
|
65
|
+
T &get(uint32_t id)
|
66
|
+
{
|
67
|
+
return variant_get<T>(ir.ids[id]);
|
68
|
+
}
|
69
|
+
|
70
|
+
template <typename T>
|
71
|
+
T *maybe_get(uint32_t id)
|
72
|
+
{
|
73
|
+
if (ir.ids[id].get_type() == static_cast<Types>(T::type))
|
74
|
+
return &get<T>(id);
|
75
|
+
else
|
76
|
+
return nullptr;
|
77
|
+
}
|
78
|
+
|
79
|
+
template <typename T>
|
80
|
+
const T &get(uint32_t id) const
|
81
|
+
{
|
82
|
+
return variant_get<T>(ir.ids[id]);
|
83
|
+
}
|
84
|
+
|
85
|
+
template <typename T>
|
86
|
+
const T *maybe_get(uint32_t id) const
|
87
|
+
{
|
88
|
+
if (ir.ids[id].get_type() == T::type)
|
89
|
+
return &get<T>(id);
|
90
|
+
else
|
91
|
+
return nullptr;
|
92
|
+
}
|
93
|
+
|
94
|
+
// This must be an ordered data structure so we always pick the same type aliases.
|
95
|
+
SmallVector<uint32_t> global_struct_cache;
|
96
|
+
SmallVector<std::pair<uint32_t, uint32_t>> forward_pointer_fixups;
|
97
|
+
|
98
|
+
bool types_are_logically_equivalent(const SPIRType &a, const SPIRType &b) const;
|
99
|
+
bool variable_storage_is_aliased(const SPIRVariable &v) const;
|
100
|
+
};
|
101
|
+
} // namespace SPIRV_CROSS_NAMESPACE
|
102
|
+
|
103
|
+
#endif
|
@@ -0,0 +1,91 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2018-2021 Bradley Austin Davis
|
3
|
+
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/*
|
19
|
+
* At your option, you may choose to accept this material under either:
|
20
|
+
* 1. The Apache License, Version 2.0, found at <http://www.apache.org/licenses/LICENSE-2.0>, or
|
21
|
+
* 2. The MIT License, found at <http://opensource.org/licenses/MIT>.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef SPIRV_CROSS_REFLECT_HPP
|
25
|
+
#define SPIRV_CROSS_REFLECT_HPP
|
26
|
+
|
27
|
+
#include "spirv_glsl.hpp"
|
28
|
+
#include <utility>
|
29
|
+
|
30
|
+
namespace simple_json
|
31
|
+
{
|
32
|
+
class Stream;
|
33
|
+
}
|
34
|
+
|
35
|
+
namespace SPIRV_CROSS_NAMESPACE
|
36
|
+
{
|
37
|
+
class CompilerReflection : public CompilerGLSL
|
38
|
+
{
|
39
|
+
using Parent = CompilerGLSL;
|
40
|
+
|
41
|
+
public:
|
42
|
+
explicit CompilerReflection(std::vector<uint32_t> spirv_)
|
43
|
+
: Parent(std::move(spirv_))
|
44
|
+
{
|
45
|
+
options.vulkan_semantics = true;
|
46
|
+
}
|
47
|
+
|
48
|
+
CompilerReflection(const uint32_t *ir_, size_t word_count)
|
49
|
+
: Parent(ir_, word_count)
|
50
|
+
{
|
51
|
+
options.vulkan_semantics = true;
|
52
|
+
}
|
53
|
+
|
54
|
+
explicit CompilerReflection(const ParsedIR &ir_)
|
55
|
+
: CompilerGLSL(ir_)
|
56
|
+
{
|
57
|
+
options.vulkan_semantics = true;
|
58
|
+
}
|
59
|
+
|
60
|
+
explicit CompilerReflection(ParsedIR &&ir_)
|
61
|
+
: CompilerGLSL(std::move(ir_))
|
62
|
+
{
|
63
|
+
options.vulkan_semantics = true;
|
64
|
+
}
|
65
|
+
|
66
|
+
void set_format(const std::string &format);
|
67
|
+
std::string compile() override;
|
68
|
+
|
69
|
+
private:
|
70
|
+
static std::string execution_model_to_str(spv::ExecutionModel model);
|
71
|
+
|
72
|
+
void emit_entry_points();
|
73
|
+
void emit_types();
|
74
|
+
void emit_resources();
|
75
|
+
void emit_specialization_constants();
|
76
|
+
|
77
|
+
void emit_type(uint32_t type_id, bool &emitted_open_tag);
|
78
|
+
void emit_type_member(const SPIRType &type, uint32_t index);
|
79
|
+
void emit_type_member_qualifiers(const SPIRType &type, uint32_t index);
|
80
|
+
void emit_type_array(const SPIRType &type);
|
81
|
+
void emit_resources(const char *tag, const SmallVector<Resource> &resources);
|
82
|
+
bool type_is_reference(const SPIRType &type) const;
|
83
|
+
|
84
|
+
std::string to_member_name(const SPIRType &type, uint32_t index) const;
|
85
|
+
|
86
|
+
std::shared_ptr<simple_json::Stream> json_stream;
|
87
|
+
};
|
88
|
+
|
89
|
+
} // namespace SPIRV_CROSS_NAMESPACE
|
90
|
+
|
91
|
+
#endif
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "SPIRV-Tools-static" for configuration "Release"
|
9
|
+
set_property(TARGET SPIRV-Tools-static APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(SPIRV-Tools-static PROPERTIES
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSPIRV-Tools.a"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _cmake_import_check_targets SPIRV-Tools-static )
|
16
|
+
list(APPEND _cmake_import_check_files_for_SPIRV-Tools-static "${_IMPORT_PREFIX}/lib/libSPIRV-Tools.a" )
|
17
|
+
|
18
|
+
# Import target "SPIRV-Tools-shared" for configuration "Release"
|
19
|
+
set_property(TARGET SPIRV-Tools-shared APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
20
|
+
set_target_properties(SPIRV-Tools-shared PROPERTIES
|
21
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-shared.dylib"
|
22
|
+
IMPORTED_SONAME_RELEASE "libSPIRV-Tools-shared.dylib"
|
23
|
+
)
|
24
|
+
|
25
|
+
list(APPEND _cmake_import_check_targets SPIRV-Tools-shared )
|
26
|
+
list(APPEND _cmake_import_check_files_for_SPIRV-Tools-shared "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-shared.dylib" )
|
27
|
+
|
28
|
+
# Commands beyond this point should not need to know the version.
|
29
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# Generated by CMake
|
2
|
+
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
5
|
+
endif()
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
8
|
+
endif()
|
9
|
+
cmake_policy(PUSH)
|
10
|
+
cmake_policy(VERSION 2.8.3...3.29)
|
11
|
+
#----------------------------------------------------------------
|
12
|
+
# Generated CMake target import file.
|
13
|
+
#----------------------------------------------------------------
|
14
|
+
|
15
|
+
# Commands may need to know the format version.
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
17
|
+
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
19
|
+
set(_cmake_targets_defined "")
|
20
|
+
set(_cmake_targets_not_defined "")
|
21
|
+
set(_cmake_expected_targets "")
|
22
|
+
foreach(_cmake_expected_target IN ITEMS SPIRV-Tools-static SPIRV-Tools-shared)
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
26
|
+
else()
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
28
|
+
endif()
|
29
|
+
endforeach()
|
30
|
+
unset(_cmake_expected_target)
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
32
|
+
unset(_cmake_targets_defined)
|
33
|
+
unset(_cmake_targets_not_defined)
|
34
|
+
unset(_cmake_expected_targets)
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
36
|
+
cmake_policy(POP)
|
37
|
+
return()
|
38
|
+
endif()
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
43
|
+
endif()
|
44
|
+
unset(_cmake_targets_defined)
|
45
|
+
unset(_cmake_targets_not_defined)
|
46
|
+
unset(_cmake_expected_targets)
|
47
|
+
|
48
|
+
|
49
|
+
# Compute the installation prefix relative to this file.
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
55
|
+
set(_IMPORT_PREFIX "")
|
56
|
+
endif()
|
57
|
+
|
58
|
+
# Create imported target SPIRV-Tools-static
|
59
|
+
add_library(SPIRV-Tools-static STATIC IMPORTED)
|
60
|
+
|
61
|
+
set_target_properties(SPIRV-Tools-static PROPERTIES
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
63
|
+
)
|
64
|
+
|
65
|
+
# Create imported target SPIRV-Tools-shared
|
66
|
+
add_library(SPIRV-Tools-shared SHARED IMPORTED)
|
67
|
+
|
68
|
+
set_target_properties(SPIRV-Tools-shared PROPERTIES
|
69
|
+
INTERFACE_COMPILE_DEFINITIONS "SPIRV_TOOLS_SHAREDLIB"
|
70
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
71
|
+
)
|
72
|
+
|
73
|
+
# Load information for each installed configuration.
|
74
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/SPIRV-ToolsTarget-*.cmake")
|
75
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
76
|
+
include("${_cmake_config_file}")
|
77
|
+
endforeach()
|
78
|
+
unset(_cmake_config_file)
|
79
|
+
unset(_cmake_config_files)
|
80
|
+
|
81
|
+
# Cleanup temporary variables.
|
82
|
+
set(_IMPORT_PREFIX)
|
83
|
+
|
84
|
+
# Loop over all imported files and verify that they actually exist
|
85
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
86
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
87
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
88
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
89
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
90
|
+
if(NOT EXISTS "${_cmake_file}")
|
91
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
92
|
+
\"${_cmake_file}\"
|
93
|
+
but this file does not exist. Possible reasons include:
|
94
|
+
* The file was deleted, renamed, or moved to another location.
|
95
|
+
* An install or uninstall procedure did not complete successfully.
|
96
|
+
* The installation package was faulty and contained
|
97
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
98
|
+
but not all the files it references.
|
99
|
+
")
|
100
|
+
endif()
|
101
|
+
endforeach()
|
102
|
+
endif()
|
103
|
+
unset(_cmake_file)
|
104
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
105
|
+
endforeach()
|
106
|
+
unset(_cmake_target)
|
107
|
+
unset(_cmake_import_check_targets)
|
108
|
+
|
109
|
+
# This file does not depend on other imported targets which have
|
110
|
+
# been exported from the same project but in a separate export set.
|
111
|
+
|
112
|
+
# Commands beyond this point should not need to know the version.
|
113
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
114
|
+
cmake_policy(POP)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
include(CMakeFindDependencyMacro)
|
2
|
+
find_dependency(SPIRV-Tools)
|
3
|
+
include(${CMAKE_CURRENT_LIST_DIR}/SPIRV-Tools-diffTargets.cmake)
|
4
|
+
set(SPIRV-Tools-diff_LIBRARIES SPIRV-Tools-diff)
|
5
|
+
get_target_property(SPIRV-Tools-diff_INCLUDE_DIRS SPIRV-Tools-diff INTERFACE_INCLUDE_DIRECTORIES)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "SPIRV-Tools-diff" for configuration "Release"
|
9
|
+
set_property(TARGET SPIRV-Tools-diff APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(SPIRV-Tools-diff PROPERTIES
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-diff.a"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _cmake_import_check_targets SPIRV-Tools-diff )
|
16
|
+
list(APPEND _cmake_import_check_files_for_SPIRV-Tools-diff "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-diff.a" )
|
17
|
+
|
18
|
+
# Commands beyond this point should not need to know the version.
|
19
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# Generated by CMake
|
2
|
+
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
5
|
+
endif()
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.12")
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
8
|
+
endif()
|
9
|
+
cmake_policy(PUSH)
|
10
|
+
cmake_policy(VERSION 2.8.12...3.29)
|
11
|
+
#----------------------------------------------------------------
|
12
|
+
# Generated CMake target import file.
|
13
|
+
#----------------------------------------------------------------
|
14
|
+
|
15
|
+
# Commands may need to know the format version.
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
17
|
+
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
19
|
+
set(_cmake_targets_defined "")
|
20
|
+
set(_cmake_targets_not_defined "")
|
21
|
+
set(_cmake_expected_targets "")
|
22
|
+
foreach(_cmake_expected_target IN ITEMS SPIRV-Tools-diff)
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
26
|
+
else()
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
28
|
+
endif()
|
29
|
+
endforeach()
|
30
|
+
unset(_cmake_expected_target)
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
32
|
+
unset(_cmake_targets_defined)
|
33
|
+
unset(_cmake_targets_not_defined)
|
34
|
+
unset(_cmake_expected_targets)
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
36
|
+
cmake_policy(POP)
|
37
|
+
return()
|
38
|
+
endif()
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
43
|
+
endif()
|
44
|
+
unset(_cmake_targets_defined)
|
45
|
+
unset(_cmake_targets_not_defined)
|
46
|
+
unset(_cmake_expected_targets)
|
47
|
+
|
48
|
+
|
49
|
+
# Compute the installation prefix relative to this file.
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
55
|
+
set(_IMPORT_PREFIX "")
|
56
|
+
endif()
|
57
|
+
|
58
|
+
# Create imported target SPIRV-Tools-diff
|
59
|
+
add_library(SPIRV-Tools-diff STATIC IMPORTED)
|
60
|
+
|
61
|
+
set_target_properties(SPIRV-Tools-diff PROPERTIES
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
63
|
+
INTERFACE_LINK_LIBRARIES "SPIRV-Tools-static;SPIRV-Tools-opt"
|
64
|
+
)
|
65
|
+
|
66
|
+
# Load information for each installed configuration.
|
67
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/SPIRV-Tools-diffTargets-*.cmake")
|
68
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
69
|
+
include("${_cmake_config_file}")
|
70
|
+
endforeach()
|
71
|
+
unset(_cmake_config_file)
|
72
|
+
unset(_cmake_config_files)
|
73
|
+
|
74
|
+
# Cleanup temporary variables.
|
75
|
+
set(_IMPORT_PREFIX)
|
76
|
+
|
77
|
+
# Loop over all imported files and verify that they actually exist
|
78
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
79
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
80
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
81
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
82
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
83
|
+
if(NOT EXISTS "${_cmake_file}")
|
84
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
85
|
+
\"${_cmake_file}\"
|
86
|
+
but this file does not exist. Possible reasons include:
|
87
|
+
* The file was deleted, renamed, or moved to another location.
|
88
|
+
* An install or uninstall procedure did not complete successfully.
|
89
|
+
* The installation package was faulty and contained
|
90
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
91
|
+
but not all the files it references.
|
92
|
+
")
|
93
|
+
endif()
|
94
|
+
endforeach()
|
95
|
+
endif()
|
96
|
+
unset(_cmake_file)
|
97
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
98
|
+
endforeach()
|
99
|
+
unset(_cmake_target)
|
100
|
+
unset(_cmake_import_check_targets)
|
101
|
+
|
102
|
+
# Make sure the targets which have been exported in some other
|
103
|
+
# export set exist.
|
104
|
+
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
105
|
+
foreach(_target "SPIRV-Tools-static" "SPIRV-Tools-opt" )
|
106
|
+
if(NOT TARGET "${_target}" )
|
107
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
|
108
|
+
endif()
|
109
|
+
endforeach()
|
110
|
+
|
111
|
+
if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
112
|
+
if(CMAKE_FIND_PACKAGE_NAME)
|
113
|
+
set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
114
|
+
set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
|
115
|
+
else()
|
116
|
+
message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
|
117
|
+
endif()
|
118
|
+
endif()
|
119
|
+
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
120
|
+
|
121
|
+
# Commands beyond this point should not need to know the version.
|
122
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
123
|
+
cmake_policy(POP)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
include(CMakeFindDependencyMacro)
|
2
|
+
find_dependency(SPIRV-Tools)
|
3
|
+
include(${CMAKE_CURRENT_LIST_DIR}/SPIRV-Tools-linkTargets.cmake)
|
4
|
+
set(SPIRV-Tools-link_LIBRARIES SPIRV-Tools-link)
|
5
|
+
get_target_property(SPIRV-Tools-link_INCLUDE_DIRS SPIRV-Tools-link INTERFACE_INCLUDE_DIRECTORIES)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "SPIRV-Tools-link" for configuration "Release"
|
9
|
+
set_property(TARGET SPIRV-Tools-link APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(SPIRV-Tools-link PROPERTIES
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-link.a"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _cmake_import_check_targets SPIRV-Tools-link )
|
16
|
+
list(APPEND _cmake_import_check_files_for_SPIRV-Tools-link "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-link.a" )
|
17
|
+
|
18
|
+
# Commands beyond this point should not need to know the version.
|
19
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# Generated by CMake
|
2
|
+
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
5
|
+
endif()
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.12")
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
8
|
+
endif()
|
9
|
+
cmake_policy(PUSH)
|
10
|
+
cmake_policy(VERSION 2.8.12...3.29)
|
11
|
+
#----------------------------------------------------------------
|
12
|
+
# Generated CMake target import file.
|
13
|
+
#----------------------------------------------------------------
|
14
|
+
|
15
|
+
# Commands may need to know the format version.
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
17
|
+
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
19
|
+
set(_cmake_targets_defined "")
|
20
|
+
set(_cmake_targets_not_defined "")
|
21
|
+
set(_cmake_expected_targets "")
|
22
|
+
foreach(_cmake_expected_target IN ITEMS SPIRV-Tools-link)
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
26
|
+
else()
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
28
|
+
endif()
|
29
|
+
endforeach()
|
30
|
+
unset(_cmake_expected_target)
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
32
|
+
unset(_cmake_targets_defined)
|
33
|
+
unset(_cmake_targets_not_defined)
|
34
|
+
unset(_cmake_expected_targets)
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
36
|
+
cmake_policy(POP)
|
37
|
+
return()
|
38
|
+
endif()
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
43
|
+
endif()
|
44
|
+
unset(_cmake_targets_defined)
|
45
|
+
unset(_cmake_targets_not_defined)
|
46
|
+
unset(_cmake_expected_targets)
|
47
|
+
|
48
|
+
|
49
|
+
# Compute the installation prefix relative to this file.
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
55
|
+
set(_IMPORT_PREFIX "")
|
56
|
+
endif()
|
57
|
+
|
58
|
+
# Create imported target SPIRV-Tools-link
|
59
|
+
add_library(SPIRV-Tools-link STATIC IMPORTED)
|
60
|
+
|
61
|
+
set_target_properties(SPIRV-Tools-link PROPERTIES
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
63
|
+
INTERFACE_LINK_LIBRARIES "SPIRV-Tools-opt"
|
64
|
+
)
|
65
|
+
|
66
|
+
# Load information for each installed configuration.
|
67
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/SPIRV-Tools-linkTargets-*.cmake")
|
68
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
69
|
+
include("${_cmake_config_file}")
|
70
|
+
endforeach()
|
71
|
+
unset(_cmake_config_file)
|
72
|
+
unset(_cmake_config_files)
|
73
|
+
|
74
|
+
# Cleanup temporary variables.
|
75
|
+
set(_IMPORT_PREFIX)
|
76
|
+
|
77
|
+
# Loop over all imported files and verify that they actually exist
|
78
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
79
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
80
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
81
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
82
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
83
|
+
if(NOT EXISTS "${_cmake_file}")
|
84
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
85
|
+
\"${_cmake_file}\"
|
86
|
+
but this file does not exist. Possible reasons include:
|
87
|
+
* The file was deleted, renamed, or moved to another location.
|
88
|
+
* An install or uninstall procedure did not complete successfully.
|
89
|
+
* The installation package was faulty and contained
|
90
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
91
|
+
but not all the files it references.
|
92
|
+
")
|
93
|
+
endif()
|
94
|
+
endforeach()
|
95
|
+
endif()
|
96
|
+
unset(_cmake_file)
|
97
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
98
|
+
endforeach()
|
99
|
+
unset(_cmake_target)
|
100
|
+
unset(_cmake_import_check_targets)
|
101
|
+
|
102
|
+
# Make sure the targets which have been exported in some other
|
103
|
+
# export set exist.
|
104
|
+
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
105
|
+
foreach(_target "SPIRV-Tools-opt" )
|
106
|
+
if(NOT TARGET "${_target}" )
|
107
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
|
108
|
+
endif()
|
109
|
+
endforeach()
|
110
|
+
|
111
|
+
if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
112
|
+
if(CMAKE_FIND_PACKAGE_NAME)
|
113
|
+
set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
114
|
+
set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
|
115
|
+
else()
|
116
|
+
message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
|
117
|
+
endif()
|
118
|
+
endif()
|
119
|
+
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
|
120
|
+
|
121
|
+
# Commands beyond this point should not need to know the version.
|
122
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
123
|
+
cmake_policy(POP)
|
@@ -0,0 +1,5 @@
|
|
1
|
+
include(CMakeFindDependencyMacro)
|
2
|
+
find_dependency(SPIRV-Tools)
|
3
|
+
include(${CMAKE_CURRENT_LIST_DIR}/SPIRV-Tools-lintTargets.cmake)
|
4
|
+
set(SPIRV-Tools-lint_LIBRARIES SPIRV-Tools-lint)
|
5
|
+
get_target_property(SPIRV-Tools-lint_INCLUDE_DIRS SPIRV-Tools-lint INTERFACE_INCLUDE_DIRECTORIES)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#----------------------------------------------------------------
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
|
5
|
+
# Commands may need to know the format version.
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
7
|
+
|
8
|
+
# Import target "SPIRV-Tools-lint" for configuration "Release"
|
9
|
+
set_property(TARGET SPIRV-Tools-lint APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
10
|
+
set_target_properties(SPIRV-Tools-lint PROPERTIES
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-lint.a"
|
13
|
+
)
|
14
|
+
|
15
|
+
list(APPEND _cmake_import_check_targets SPIRV-Tools-lint )
|
16
|
+
list(APPEND _cmake_import_check_files_for_SPIRV-Tools-lint "${_IMPORT_PREFIX}/lib/libSPIRV-Tools-lint.a" )
|
17
|
+
|
18
|
+
# Commands beyond this point should not need to know the version.
|
19
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|