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

Unbundle zstd #130

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Unbundle zstd #130

wants to merge 3 commits into from

Conversation

Apteryks
Copy link

Hi,

I started looking into packaging Overgrowth for GNU Guix, and in this context using system libraries is preferable (even necessary, per policy). This is a first baby step toward allowing to use more system libraries.

This also makes it possible to use a system provided Zstd library by
specifying the '-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS' CMake
flag.

* Projects/CMakeLists.txt: Use FetchContent to make zstd available.
Use imported target for link directive.
* Libraries/zstd-1.5.0: Delete directory.
* Source/Online/online.cpp: Do not include private source.
(Online::DecompressData): Replace ZSTD_getErrorString with
ZSTD_getErrorName, which is part of the public API.
* Projects/CMakeLists.txt (USE_SYSTEM_LIBS): New option.
When defined, use pkg-config to locate the zstd shared library.
* Projects/CMakeLists.txt [USE_SYSTEM_LIBS]: Find minizip via
pkg-config.  Adjust targets.
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.

None yet

1 participant