Skip to content

Unbundle zstd#130

Open
apteryks wants to merge 3 commits intoWolfireGames:mainfrom
apteryks:unbundle-zstd
Open

Unbundle zstd#130
apteryks wants to merge 3 commits intoWolfireGames:mainfrom
apteryks:unbundle-zstd

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.

1 participant