summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-02-18 23:42:46 +0530
committerPatrick Griffis <tingping@tingping.se>2017-02-18 14:12:24 -0500
commit766b29d63428644994c9c44bf726164ef439fd29 (patch)
tree2089c7e85d4d6d07d84a7cbff10eb36b21b0134e
parent63ad39b02aafff22e78ab0954329c5747f519856 (diff)
downloadlibgd-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.build3
-rw-r--r--meson_readme.md8
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 -->