mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
meson: Expose library build type as global variables
Given that it can be computed using an error-prone strings comparisons it is better to provide a variable everywhere, so that we don't have the risk of comparing values that are always false.
This commit is contained in:
@@ -45,12 +45,12 @@ if get_option('gtk_doc')
|
||||
dependency('gtk-doc', version : '>=1.32.1',
|
||||
fallback : ['gtk-doc', 'dummy_dep'],
|
||||
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')
|
||||
# We cannot built the API reference off of a static library,
|
||||
# as symbols might get dropped by the linker
|
||||
if not glib_build_shared
|
||||
error('The API reference can only be built against a shared library')
|
||||
endif
|
||||
endif
|
||||
|
||||
subdir('gio')
|
||||
|
Reference in New Issue
Block a user