diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-18 12:59:40 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-18 13:39:53 +0300 |
commit | 116e4d4850a61a740d2a8642866452740e359750 (patch) | |
tree | 2de27f2a299f9cd9482ad982dabe0ba408f446af /docs/markdown/snippets/intl-dependency.md | |
parent | 7b8fecf5734503f818ac978c279629d3564ac970 (diff) | |
download | meson-116e4d4850a61a740d2a8642866452740e359750.zip meson-116e4d4850a61a740d2a8642866452740e359750.tar.gz meson-116e4d4850a61a740d2a8642866452740e359750.tar.bz2 |
Set up the 0.59.0 release.0.59.0
Diffstat (limited to 'docs/markdown/snippets/intl-dependency.md')
-rw-r--r-- | docs/markdown/snippets/intl-dependency.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/docs/markdown/snippets/intl-dependency.md b/docs/markdown/snippets/intl-dependency.md deleted file mode 100644 index 8e0cd40..0000000 --- a/docs/markdown/snippets/intl-dependency.md +++ /dev/null @@ -1,35 +0,0 @@ -## New custom dependency for libintl - -Meson can now find the library needed for translating messages via gettext. -This works both on systems where libc provides gettext, such as GNU or musl, -and on systems where the gettext project's standalone intl support library is -required, such as macOS. - -Rather than doing something such as: - -``` -intl_dep = dependency('', required: false) - -if cc.has_function('ngettext') - intl_found = true -else - intl_dep = cc.find_library('intl', required: false) - intl_found = intl_dep.found() -endif - -if intl_found - # build options that need gettext - conf.set('ENABLE_NLS', 1) -endif -``` - -one may simply use: - -``` -intl_dep = dependency('intl') - -if intl_dep.found() - # build options that need gettext - conf.set('ENABLE_NLS', 1) -endif -``` |