|
|
@ -23,15 +23,15 @@ class Qt4Module(): |
|
|
|
mlog.log('Detecting Qt tools.') |
|
|
|
mlog.log('Detecting Qt tools.') |
|
|
|
# The binaries have different names on different |
|
|
|
# The binaries have different names on different |
|
|
|
# distros. Joy. |
|
|
|
# distros. Joy. |
|
|
|
self.moc = dependencies.ExternalProgram('moc', silent=True) |
|
|
|
|
|
|
|
if not self.moc.found(): |
|
|
|
|
|
|
|
self.moc = dependencies.ExternalProgram('moc-qt4', silent=True) |
|
|
|
self.moc = dependencies.ExternalProgram('moc-qt4', silent=True) |
|
|
|
self.uic = dependencies.ExternalProgram('uic', silent=True) |
|
|
|
if not self.moc.found(): |
|
|
|
if not self.uic.found(): |
|
|
|
self.moc = dependencies.ExternalProgram('moc', silent=True) |
|
|
|
self.uic = dependencies.ExternalProgram('uic-qt4', silent=True) |
|
|
|
self.uic = dependencies.ExternalProgram('uic-qt4', silent=True) |
|
|
|
self.rcc = dependencies.ExternalProgram('rcc', silent=True) |
|
|
|
if not self.uic.found(): |
|
|
|
if not self.rcc.found(): |
|
|
|
self.uic = dependencies.ExternalProgram('uic', silent=True) |
|
|
|
self.rcc = dependencies.ExternalProgram('rcc-qt4', silent=True) |
|
|
|
self.rcc = dependencies.ExternalProgram('rcc-qt4', silent=True) |
|
|
|
|
|
|
|
if not self.rcc.found(): |
|
|
|
|
|
|
|
self.rcc = dependencies.ExternalProgram('rcc', silent=True) |
|
|
|
# Moc, uic and rcc write their version strings to stderr. |
|
|
|
# Moc, uic and rcc write their version strings to stderr. |
|
|
|
# Moc and rcc return a non-zero result when doing so. |
|
|
|
# Moc and rcc return a non-zero result when doing so. |
|
|
|
# What kind of an idiot thought that was a good idea? |
|
|
|
# What kind of an idiot thought that was a good idea? |
|
|
|