Build SPIRV-Tools as shared library
authorJózef Kucia <joseph.kucia@gmail.com>
Fri, 2 Feb 2018 22:37:14 +0000 (23:37 +0100)
committerDavid Neto <dneto@google.com>
Wed, 7 Feb 2018 15:43:32 +0000 (10:43 -0500)
commit30138975561d568010e39960401cccd815f55edd
tree8a86e131e6a91082445082c82221fed061b1d5bd
parentb1c9c4e8c0f41c4f76e2e1c6f938982b03bd35ee
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
CMakeLists.txt
cmake/SPIRV-Tools-shared.pc.in [new file with mode: 0644]
include/spirv-tools/libspirv.h
source/CMakeLists.txt
test/CMakeLists.txt
test/c_interface_test.cpp