Skip to content
Snippets Groups Projects
Unverified Commit 08b52646 authored by Seth R. Johnson's avatar Seth R. Johnson Committed by GitHub
Browse files

Disable qt3d when opengl is disabled (#15149)

* Disable qt3d when opengl is disabled

* Remove `-skip qtquick3d` unless QT 5.14

Found while checking build of qt 5.14.
parent fabd8693
No related branches found
No related tags found
No related merge requests found
......@@ -359,9 +359,6 @@ def common_config_args(self):
'-{0}opengl'.format('' if '+opengl' in self.spec else 'no-'),
'-release',
'-confirm-license',
'-openssl-linked',
openssl.libs.search_flags,
openssl.headers.include_flags,
'-optimized-qmake',
'-no-pch',
]
......@@ -380,7 +377,11 @@ def common_config_args(self):
config_args.append('-no-freetype')
if '+ssl' in self.spec:
config_args.append('-openssl-linked')
config_args.extend([
'-openssl-linked',
openssl.libs.search_flags,
openssl.headers.include_flags,
])
else:
config_args.append('-no-openssl')
......@@ -568,6 +569,12 @@ def configure(self, spec, prefix):
if version >= Version('5.10') and '~opengl' in spec:
config_args.extend([
'-skip', 'webglplugin',
'-skip', 'qt3d',
])
if version >= Version('5.14') and '~opengl' in spec:
config_args.extend([
'-skip', 'qtquick3d',
])
configure(*config_args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment