From f42b774c1cd2c73a784e728e7501e75ce4538a75 Mon Sep 17 00:00:00 2001 From: Daniel Kristjansson Date: Mon, 25 Feb 2013 21:45:42 -0500 Subject: [PATCH] Port libmyth.pro to work with Qt5 + Qt4. --- mythtv/libs/libmyth/libmyth.pro | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/mythtv/libs/libmyth/libmyth.pro b/mythtv/libs/libmyth/libmyth.pro index 0672f93fe41..66ba7fc28ef 100644 --- a/mythtv/libs/libmyth/libmyth.pro +++ b/mythtv/libs/libmyth/libmyth.pro @@ -1,5 +1,10 @@ include ( ../../settings.pro ) +QT += network xml sql script +contains(QT_VERSION, ^5\\.[0-9]\\..*) { +QT += widgets +} + TEMPLATE = lib TARGET = myth-$$LIBVERSION CONFIG += thread dll @@ -7,13 +12,18 @@ target.path = $${LIBDIR} INSTALLS = target DEFINES += MYTH_API +QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2) -QT += network xml sql script -contains(QT_VERSION, ^5\\.[0-9]\\..*) { -QT += widgets -} +POSTINC = -QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2) +contains(INCLUDEPATH, /usr/include) { + POSTINC += /usr/include + INCLUDEPATH -= /usr/include +} +contains(INCLUDEPATH, /usr/local/include) { + POSTINC += /usr/local/include + INCLUDEPATH -= /usr/local/include +} # Input HEADERS += audio/audiooutput.h audio/audiooutputbase.h audio/audiooutputnull.h