Qt library: added variant to enable/disable compilation of examples (#1763)
This commit is contained in:
parent
e6dc448f18
commit
746495896c
1 changed files with 7 additions and 1 deletions
|
@ -47,6 +47,7 @@ class Qt(Package):
|
||||||
variant('krellpatch', default=False, description="Build with openspeedshop based patch.")
|
variant('krellpatch', default=False, description="Build with openspeedshop based patch.")
|
||||||
variant('mesa', default=False, description="Depend on mesa.")
|
variant('mesa', default=False, description="Depend on mesa.")
|
||||||
variant('gtk', default=False, description="Build with gtkplus.")
|
variant('gtk', default=False, description="Build with gtkplus.")
|
||||||
|
variant('examples', default=False, description="Build examples.")
|
||||||
|
|
||||||
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
|
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
|
||||||
|
|
||||||
|
@ -143,7 +144,7 @@ def patch(self):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def common_config_args(self):
|
def common_config_args(self):
|
||||||
return [
|
common_arg_list = [
|
||||||
'-prefix', self.prefix,
|
'-prefix', self.prefix,
|
||||||
'-v',
|
'-v',
|
||||||
'-opensource',
|
'-opensource',
|
||||||
|
@ -160,6 +161,11 @@ def common_config_args(self):
|
||||||
'-no-nis'
|
'-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
|
# Don't disable all the database drivers, but should
|
||||||
# really get them into spack at some point.
|
# really get them into spack at some point.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue