Require GTK+3 for granite, but only if enabled
This commit is contained in:
parent
8d0d2554ca
commit
a006013cb4
1 changed files with 8 additions and 3 deletions
7
wscript
7
wscript
|
@ -211,7 +211,12 @@ def configure (conf):
|
||||||
|
|
||||||
if option_enabled ('granite'):
|
if option_enabled ('granite'):
|
||||||
if not option_enabled ('gtk3'):
|
if not option_enabled ('gtk3'):
|
||||||
option_checkfatal ('granite', 'granite requires --enable-gtk3')
|
if getattr (Options.options, 'enable_granite'):
|
||||||
|
Utils.pprint ('RED', 'Granite requires --enable-gtk3')
|
||||||
|
sys.exit (1)
|
||||||
|
else:
|
||||||
|
granite = 'no (requires --enable-gtk3)'
|
||||||
|
else:
|
||||||
check_pkg ('granite', '0.1', False)
|
check_pkg ('granite', '0.1', False)
|
||||||
granite = ['N/A', 'yes'][conf.env['HAVE_GRANITE'] == 1]
|
granite = ['N/A', 'yes'][conf.env['HAVE_GRANITE'] == 1]
|
||||||
if granite != 'yes':
|
if granite != 'yes':
|
||||||
|
|
Loading…
Reference in a new issue