diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2022-10-11 19:31:31 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2022-10-11 19:31:31 +0000 |
commit | 41d1cd02a07a01492a0bb02e78489e8f0e034f9b (patch) | |
tree | a6e97a3f6929266d76dbd773a9c6dcb5f523bcc0 | |
parent | db1aadaa5e895731a3cbd4b8684a16e35515418a (diff) | |
parent | 32edf9c01a68473f58b540da5371737bbc2ed2a3 (diff) | |
download | glib-41d1cd02a07a01492a0bb02e78489e8f0e034f9b.tar.gz |
Merge branch 'ebassi/static-docs' into 'main'
Build API docs only with shared libraries
See merge request GNOME/glib!2896
-rw-r--r-- | docs/reference/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/reference/meson.build b/docs/reference/meson.build index ad1b9e353..dcaa5c276 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -49,6 +49,12 @@ if get_option('gtk_doc') default_options : ['tests=false']) endif +# We cannot built the API reference off of a static library, +# as symbols might get dropped by the linker +if get_option('gtk_doc') and get_option('default_library') == 'static' + error('The API reference can only be built against a shared library') +endif + subdir('gio') subdir('glib') subdir('gobject') |