diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-02-18 23:42:46 +0530 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2017-02-18 14:12:24 -0500 |
commit | 766b29d63428644994c9c44bf726164ef439fd29 (patch) | |
tree | 2089c7e85d4d6d07d84a7cbff10eb36b21b0134e | |
parent | 63ad39b02aafff22e78ab0954329c5747f519856 (diff) | |
download | libgd-766b29d63428644994c9c44bf726164ef439fd29.tar.gz |
meson: Default to building statically
This is how libgd is supposed to be used, and it also works around:
https://github.com/mesonbuild/meson/pull/1368
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | meson_readme.md | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 7051e12..98ab8d2 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,6 @@ project('libgd', 'c', - meson_version: '>= 0.38.0' + meson_version: '>= 0.38.0', + default_options: ['static=true'], ) if not meson.is_subproject() diff --git a/meson_readme.md b/meson_readme.md index f7737ae..092cba8 100644 --- a/meson_readme.md +++ b/meson_readme.md @@ -20,8 +20,7 @@ Static Library ```meson libgd = subproject('libgd', default_options: [ - 'with-tagged-entry=true', - 'static=true' + 'with-tagged-entry=true' ] ) # Pass as dependency to another target @@ -49,7 +48,8 @@ libgd = subproject('libgd', 'pkglibdir=' + pkglibdir, 'pkgdatadir=' + pkgdatadir, 'with-tagged-entry=true', - 'with-introspection=true' + 'with-introspection=true', + 'static=false', ] ) ``` @@ -82,4 +82,4 @@ libgd = subproject('libgd', libgd_vapi_dep = libgd.get_variable('libgd_vapi_dep') ``` -<!-- TODO: Make a Vala example -->
\ No newline at end of file +<!-- TODO: Make a Vala example --> |