Qt library: added variant to enable/disable compilation of examples (#1763)

This commit is contained in:
Sergey Kosukhin 2016-09-21 09:25:14 +02:00 committed by Todd Gamblin
parent e6dc448f18
commit 746495896c

View file

@ -47,6 +47,7 @@ class Qt(Package):
variant('krellpatch', default=False, description="Build with openspeedshop based patch.")
variant('mesa', default=False, description="Depend on mesa.")
variant('gtk', default=False, description="Build with gtkplus.")
variant('examples', default=False, description="Build examples.")
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
@ -143,7 +144,7 @@ def patch(self):
@property
def common_config_args(self):
return [
common_arg_list = [
'-prefix', self.prefix,
'-v',
'-opensource',
@ -160,6 +161,11 @@ def common_config_args(self):
'-no-nis'
]
if '~examples' in self.spec:
common_arg_list.extend(['-nomake', 'examples'])
return common_arg_list
# Don't disable all the database drivers, but should
# really get them into spack at some point.