Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add static submodule libs to bundled libsession-util #82

Closed
wants to merge 1 commit into from

Conversation

jagerman
Copy link
Member

This automatically adds anything that we include via system_or_submodule into the libsession-util bundled library, most notably included libquic (in other upcoming PRs).

It also updates the libsession_static_bundle function so that only static library targets are actually bundled so that passing things like oxenc::oxenc (which is header-only and so not a static lib) just get silently ignored.

@jagerman jagerman requested a review from mpretty-cyro March 15, 2024 02:53
@jagerman jagerman force-pushed the bundle-static-deps branch from 132fe75 to 7441307 Compare March 15, 2024 03:25
This automatically adds anything that we include via submodules (and
dependent libraries) into the libsession-util bundled library, most
notably included libquic (in other upcoming PRs) and its various
dependencies.

This rewrites the libsession_static_bundle function so that:
- targets recurse into dependencies of the target
- only static libraries are actually added to the bundled lib list so
  that interface libraries and whatnot just get recursed, but not
  actually added as libraries, so that things like oxenc::oxenc (which
  is header-only) can safely go through the function.
@jagerman jagerman force-pushed the bundle-static-deps branch from 7441307 to 44c2033 Compare March 15, 2024 04:02
@jagerman
Copy link
Member Author

I think this PR isn't needed anymore (after #83), because that bundling code in #83 just recursively follows target_link_libraries to pull everything in.

@mpretty-cyro
Copy link
Collaborator

I think this PR isn't needed anymore (after #83), because that bundling code in #83 just recursively follows target_link_libraries to pull everything in.

Yep everything that was in here should be in #83

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