mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
Add an option for building examples
Examples are not like demos; the latter are installed, and provide a Flatpak manifest for CI pipelines and GNOME Builder. We should not be using a single configure time option to gate building both.
This commit is contained in:
parent
934354fb8c
commit
d50708b024
10
meson.build
10
meson.build
@ -621,14 +621,16 @@ subdir('gdk')
|
||||
subdir('gsk')
|
||||
subdir('gtk')
|
||||
subdir('modules')
|
||||
if get_option('demos')
|
||||
subdir('demos')
|
||||
subdir('examples')
|
||||
endif
|
||||
if get_option('build-tests')
|
||||
subdir('tests')
|
||||
subdir('testsuite')
|
||||
endif
|
||||
if get_option('demos')
|
||||
subdir('demos')
|
||||
endif
|
||||
if get_option('build-examples')
|
||||
subdir('examples')
|
||||
endif
|
||||
|
||||
# config.h
|
||||
configure_file(input: 'config.h.meson',
|
||||
|
@ -38,7 +38,9 @@ option('introspection', type: 'boolean', value: 'true',
|
||||
|
||||
# Demos and binaries
|
||||
option('demos', type: 'boolean', value: 'true',
|
||||
description : 'Build demos and example programs')
|
||||
description : 'Build demo programs')
|
||||
option('build-examples', type: 'boolean', value: 'true',
|
||||
description : 'Build examples')
|
||||
option('build-tests', type: 'boolean', value: 'true',
|
||||
description : 'Build tests')
|
||||
option('install-tests', type: 'boolean', value: 'false',
|
||||
|
Loading…
Reference in New Issue
Block a user