Skip to content
Snippets Groups Projects
Commit 112122bc authored by Ben Boeckel's avatar Ben Boeckel
Browse files

qt: progress on qt5.5 on osx

Qt5.5 searches for the SDK itself and just ignores environment variables
like CC and CXX, skipping the spack wrappers.
parent fca26c0b
No related branches found
No related tags found
No related merge requests found
...@@ -173,7 +173,16 @@ def common_config_args(self): ...@@ -173,7 +173,16 @@ def common_config_args(self):
else: else:
config_args.append('-no-dbus') config_args.append('-no-dbus')
if sys.platform == 'darwin': if '@5:' in self.spec and sys.platform == 'darwin':
config_args.extend([
'-no-xinput2',
'-no-xcb-xlib',
'-no-pulseaudio',
'-no-alsa',
'-no-gtkstyle',
])
if '@4' in self.spec and sys.platform == 'darwin':
sdkpath = which('xcrun')('--show-sdk-path', sdkpath = which('xcrun')('--show-sdk-path',
# XXX(macos): the 10.11 SDK fails to configure. # XXX(macos): the 10.11 SDK fails to configure.
'--sdk', 'macosx10.9', '--sdk', 'macosx10.9',
...@@ -222,7 +231,6 @@ def configure(self): ...@@ -222,7 +231,6 @@ def configure(self):
def configure(self): def configure(self):
configure('-no-eglfs', configure('-no-eglfs',
'-no-directfb', '-no-directfb',
'-qt-xcb',
'{0}-gtkstyle'.format('' if '+gtk' in self.spec else '-no'), '{0}-gtkstyle'.format('' if '+gtk' in self.spec else '-no'),
'-skip', 'qtwebkit', '-skip', 'qtwebkit',
*self.common_config_args) *self.common_config_args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment