Skip to content

cmake: add shared library option - #350

Open
wolfv wants to merge 1 commit into
KhronosGroup:mainfrom
wolfv:support-shared-library
Open

cmake: add shared library option#350
wolfv wants to merge 1 commit into
KhronosGroup:mainfrom
wolfv:support-shared-library

Conversation

@wolfv

@wolfv wolfv commented Aug 3, 2026

Copy link
Copy Markdown

Add an opt-in SPIRV_REFLECT_SHARED_LIB CMake option alongside the existing static-library option.

The shared target installs as libspirv-reflect, installs the public header, and uses CMake automatic symbol exports on Windows. Existing defaults and the static target remain unchanged.

Tested by configuring, building, and installing the shared-only target locally. This is also exercised across Linux, macOS, and Windows by conda-forge: https://github.com/conda-forge/spirv-reflect-feedstock

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@wolfv

wolfv commented Aug 3, 2026

Copy link
Copy Markdown
Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants