Qt: set QT_<MODULE>_LIB defines when using qmake detection

pull/3993/head
Alexey Rochev 6 years ago committed by Jussi Pakkanen
parent 1af704a509
commit 0667e8494c
  1. 9
      mesonbuild/dependencies/ui.py

@ -351,6 +351,15 @@ class QtBaseDependency(ExternalDependency):
for module in mods:
mincdir = os.path.join(incdir, 'Qt' + module)
self.compile_args.append('-I' + mincdir)
if module == 'QuickTest':
define_base = 'QMLTEST'
elif module == 'Test':
define_base = 'TESTLIB'
else:
define_base = module.upper()
self.compile_args.append('-DQT_%s_LIB' % define_base)
if self.private_headers:
priv_inc = self.get_private_includes(mincdir, module)
for dir in priv_inc:

Loading…
Cancel
Save