Skip to content

Add Option To Make SHARED or STATIC library#51

Open
davisadam10 wants to merge 1 commit intodevfrom
hotfix/configurable-library-type
Open

Add Option To Make SHARED or STATIC library#51
davisadam10 wants to merge 1 commit intodevfrom
hotfix/configurable-library-type

Conversation

@davisadam10
Copy link
Copy Markdown
Collaborator

Adds an FDL_CORE_LIBRARY_TYPE cache variable (default SHARED) so consumers can opt into a static fdl_core. This enables self-contained plugin binaries on platforms without rpath/loader-relative dependency resolution, notably Windows DLLs that link against fdl_core.

Adds an FDL_CORE_LIBRARY_TYPE cache variable (default SHARED) so
consumers can opt into a static fdl_core. This enables self-contained
plugin binaries on platforms without rpath/loader-relative dependency
resolution, notably Windows DLLs that link against fdl_core.

Default behavior is unchanged. CMake's generate_export_header
automatically defines FDL_CORE_STATIC_DEFINE on the static path so
the FDL_API macros resolve correctly with no source-code changes.
@davisadam10 davisadam10 requested a review from davidbkhall as a code owner May 1, 2026 22:21
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.

1 participant