diff options
author | Józef Kucia <joseph.kucia@gmail.com> | 2018-02-02 23:37:14 +0100 |
---|---|---|
committer | David Neto <dneto@google.com> | 2018-02-07 10:43:32 -0500 |
commit | 30138975561d568010e39960401cccd815f55edd (patch) | |
tree | 8a86e131e6a91082445082c82221fed061b1d5bd /cmake | |
parent | b1c9c4e8c0f41c4f76e2e1c6f938982b03bd35ee (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.in | 12 |
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 00000000..3c1c8aa7 --- /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} |