Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow explicit disabling of optional dependencies in meson builds.
On some platforms, e.g. FreeBSD, there is a requirement to allow the user to disable support for features even when the required library is present. Introduce tri-state options for the optional features: auto mimics the current behavior and is the default, enable requires libraries for the feature to be present, and disable disables the feature without checking the libraries.
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
option('configdir', type: 'string', value: '/etc/pgbackrest', description: 'Configuration directory') | ||
option('fatal-errors', type: 'boolean', value: false, description: 'Stop compilation on first error') | ||
option('liblz4', type: 'feature', value: 'auto', description: 'Enable LZ4 compression support') | ||
option('libssh2', type: 'feature', value: 'auto', description: 'Enable SFTP storage support') | ||
option('libzstd', type: 'feature', value: 'auto', description: 'Enable Zstandard compression support') |