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

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJózef Kucia <joseph.kucia@gmail.com>2018-02-03 01:37:14 +0300
committerDavid Neto <dneto@google.com>2018-02-07 18:43:32 +0300
commit30138975561d568010e39960401cccd815f55edd (patch)
tree8a86e131e6a91082445082c82221fed061b1d5bd /cmake
parentb1c9c4e8c0f41c4f76e2e1c6f938982b03bd35ee (diff)
Build SPIRV-Tools as shared library
Add pkg-config file for shared libraries Properly build SPIRV-Tools DLL Test C interface with shared library Set PATH to shared library file for c_interface_shared test Otherwise, the test won't find SPIRV-Tools-shared.dll. Do not use private functions when testing with shared library Make all symbols hidden by default for shared library target
Diffstat (limited to 'cmake')
-rw-r--r--cmake/SPIRV-Tools-shared.pc.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/SPIRV-Tools-shared.pc.in b/cmake/SPIRV-Tools-shared.pc.in
new file mode 100644
index 000000000..3c1c8aa79
--- /dev/null
+++ b/cmake/SPIRV-Tools-shared.pc.in
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${prefix}/lib64
+includedir=${prefix}/include
+
+Name: SPIRV-Tools
+Description: Tools for SPIR-V
+Version: @CURRENT_VERSION@
+URL: https://github.com/KhronosGroup/SPIRV-Tools
+
+Libs: -L${libdir} @SPIRV_SHARED_LIBRARIES@
+Cflags: -I${includedir}