-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BREAKING] dub.sdl: Move Zlib dependency to subpackage
When building with Dub, ae will now build without Zlib support by default. Rationale: - Though Zlib is used by Phobos, the D standard library, some D compilers (at least, specifically, LDC on Debian) may not pull in a libz.so dependency automatically. However, because ae uses Zlib, it used to declare a library dependency (`libs "z" platform="posix"`) in its dub.sdl. This was problematic because it caused *all* programs which used ae to need to link to Zlib, even when they never used any Zlib features or even imported any modules which directly or indirectly used Zlib or Phobos modules which use Zlib. Changes required: - If your program uses Zlib features of ae, add a dependency to ae:zlib to your dub.sdl/.json file. - Note that you may want to do so also if you use ae.net.http or ae.sys.net.ae, as otherwise ae's HTTP implementation will be built without Zlib support and will not attempt to negotiate or be able to decompress deflate or gzip content-encoding.
- Loading branch information
1 parent
edc1ddc
commit 543fc15
Showing
5 changed files
with
96 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters