Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-02-12 13:11:29 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-03-01 13:53:51 +0300
commit9bbdccddb730f8e4d66dc0948a69ae078c26d5a8 (patch)
tree66e7f8367a9a1943ec7f3b9eb3e93ca1946016fb /pkg-config
parentb206d47cb730255437be6d77a195cf3dbc2ca489 (diff)
Add a stable C API for SPIRV-Cross.
This adds a new C API for SPIRV-Cross which is intended to be stable, both API and ABI wise. The C++ API has been refactored a bit to make the C wrapper easier and cleaner to write. Especially the vertex attribute / resource interfaces for MSL has been rewritten to avoid taking mutable pointers into the interface. This would be very annoying to wrap and it didn't fit well with the rest of the C++ API to begin with. While doing this, I went ahead and removed all the old deprecated interfaces. The CMake build system has also seen an overhaul. It is now possible to build static/shared/CLI separately with -D options. The shared library only exposes the C API, as it is the only ABI-stable API. pkg-configs as well as CMake modules are exported and installed for the shared library configuration.
Diffstat (limited to 'pkg-config')
-rw-r--r--pkg-config/spirv-cross-c-shared.pc.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg-config/spirv-cross-c-shared.pc.in b/pkg-config/spirv-cross-c-shared.pc.in
new file mode 100644
index 00000000..823e4ce4
--- /dev/null
+++ b/pkg-config/spirv-cross-c-shared.pc.in
@@ -0,0 +1,13 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@
+libdir=@SPIRV_CROSS_INSTALL_LIB_DIR@
+sharedlibdir=@SPIRV_CROSS_INSTALL_LIB_DIR@
+includedir=@SPIRV_CROSS_INSTALL_INC_DIR@
+
+Name: spirv-cross-c-shared
+Description: C API for SPIRV-Cross
+Version: @SPIRV_CROSS_VERSION@
+
+Requires:
+Libs: -L${libdir} -L${sharedlibdir} -lspirv-cross-c-shared
+Cflags: -I${includedir}