Skip to content

cmake: Build vendored libraries statically if SHARED not enabled#246

Closed
smcv wants to merge 6 commits intolibsdl-org:mainfrom
smcv:cmake-vendor-statically
Closed

cmake: Build vendored libraries statically if SHARED not enabled#246
smcv wants to merge 6 commits intolibsdl-org:mainfrom
smcv:cmake-vendor-statically

Conversation

@smcv
Copy link
Copy Markdown
Contributor

@smcv smcv commented May 20, 2022

Depends on #245

  • cmake: Build vendored libraries statically if SHARED not enabled

    If we're building vendored libraries, we'll often want them to be an
    implementation detail of SDL_image that will not conflict with system
    libraries (or even with libraries vendored by a different dependency),
    which might be a different version.

  • cmake: Add a default for whether to use shared linking

    As with vendored libraries, if we want to use one setting or the other
    for one of the dependencies, it's likely that we'll want to do the same
    for all of the dependencies.

  • workflows: Enable the automated test for CMake builds

    If we link the vendored libraries statically, then we should have
    everything we need to make this test work.

smcv added 6 commits May 20, 2022 17:09
Signed-off-by: Simon McVittie <smcv@collabora.com>
There are enough subtleties with the vendored libraries that it seems
worthwhile to test this.

Signed-off-by: Simon McVittie <smcv@collabora.com>
We can't run this yet, because the vendored libraries won't be in the
dlopen() search path.

Signed-off-by: Simon McVittie <smcv@collabora.com>
If we're building vendored libraries, we'll often want them to be an
implementation detail of SDL_image that will not conflict with system
libraries (or even with libraries vendored by a different dependency),
which might be a different version.

Signed-off-by: Simon McVittie <smcv@collabora.com>
As with vendored libraries, if we want to use one setting or the other
for one of the dependencies, it's likely that we'll want to do the same
for all of the dependencies.

Signed-off-by: Simon McVittie <smcv@collabora.com>
If we link the vendored libraries statically, then we should have
everything we need to make this test work.

Signed-off-by: Simon McVittie <smcv@collabora.com>
@smcv smcv changed the title Cmake vendor statically cmake: Build vendored libraries statically if SHARED not enabled May 20, 2022
@smcv smcv marked this pull request as ready for review May 20, 2022 16:29
@smcv
Copy link
Copy Markdown
Contributor Author

smcv commented May 20, 2022

Superseded by #238 and #249.

@smcv smcv closed this May 20, 2022
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