mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Build API docs only with shared libraries
Building the references requires libraries with all their symbols available. Passing `-Dgtk_doc=true` and `-Ddefault_library=static` should be considered a configuration error.
This commit is contained in:
@@ -49,6 +49,12 @@ if get_option('gtk_doc')
|
|||||||
default_options : ['tests=false'])
|
default_options : ['tests=false'])
|
||||||
endif
|
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('gio')
|
||||||
subdir('glib')
|
subdir('glib')
|
||||||
subdir('gobject')
|
subdir('gobject')
|
||||||
|
Reference in New Issue
Block a user