Select release or debug libraries for Qt, based on buildtype.

See: https://github.com/mesonbuild/meson/issues/1979
0.41
Philippe Payant 8 years ago committed by Nirbheek Chauhan
parent 4b84d136b9
commit d48f42ba99
  1. 6
      mesonbuild/dependencies/ui.py

@ -291,10 +291,12 @@ class QtBaseDependency(ExternalDependency):
mincdir = os.path.join(incdir, 'Qt' + module)
self.compile_args.append('-I' + mincdir)
if for_windows(self.env.is_cross_build(), self.env):
is_debug = self.env.cmd_line_options.buildtype.startswith('debug')
dbg = 'd' if is_debug else ''
if self.qtver == '4':
base_name = 'Qt' + module + '4'
base_name = 'Qt' + module + dbg + '4'
else:
base_name = 'Qt5' + module
base_name = 'Qt5' + module + dbg
libfile = os.path.join(libdir, base_name + '.lib')
if not os.path.isfile(libfile):
# MinGW can link directly to .dll

Loading…
Cancel
Save