[libgd] meson: Default to building statically
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] meson: Default to building statically
- Date: Sat, 18 Feb 2017 19:13:08 +0000 (UTC)
commit 766b29d63428644994c9c44bf726164ef439fd29
Author: Nirbheek Chauhan <nirbheek centricular com>
Date: Sat Feb 18 23:42:46 2017 +0530
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
meson.build | 3 ++-
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 -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]