Work with MinGW too.

pull/107/head
Jussi Pakkanen 10 years ago
parent 698b1c6471
commit 412f9f5083
  1. 6
      dependencies.py

@ -598,11 +598,15 @@ class Qt5Dependency(Dependency):
incdir = qvars['QT_INSTALL_HEADERS']
self.cargs.append('-I' + incdir)
libdir = qvars['QT_INSTALL_LIBS']
bindir = qvars['QT_INSTALL_BINS']
#self.largs.append('-L' + libdir)
for module in mods:
mincdir = os.path.join(incdir, 'Qt' + module)
libfile = os.path.join(libdir, 'Qt5' + module + '.lib')
self.cargs.append('-I' + mincdir)
libfile = os.path.join(libdir, 'Qt5' + module + '.lib')
if not os.path.isfile(libfile):
# MinGW links directly to .dll, not to .lib.
libfile = os.path.join(bindir, 'Qt5' + module + '.dll')
self.largs.append(libfile)
self.is_found = True

Loading…
Cancel
Save