Skip to content

Commit

Permalink
debian: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Mar 14, 2016
1 parent c2dbce1 commit 79ebf68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export QT_SELECT=qt5
dh $@ --parallel

override_dh_auto_configure:
test `qmake -query QT_VERSION |cut -d '.' -f 2` -lt 3 && sed -i '/\/\/IF_QT53/,/\/\/ENDIF_QT53/d' examples/QMLPlayer/qml/QMLPlayer/main.qml #ubuntu14.04 use qt5.2, remove incompatible code in qmlplayer. only minor version is checked
qmake "CONFIG+=no_rpath recheck config_libass_link config_openal_link no-tests"

6 changes: 4 additions & 2 deletions examples/QMLPlayer/QMLPlayer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ SOURCES += main.cpp
lupdate_only{
SOURCES = qml/QMLPlayer/*.qml qml/QMLPlayer/*.js
}

# Installation path
target.path = $$[QT_INSTALL_BINS]


desktopfile.files = $$PWD/../../qtc_packaging/debian_generic/QMLPlayer.desktop
desktopfile.path = /usr/share/applications

Expand Down Expand Up @@ -60,3 +59,6 @@ DISTFILES += \
android/gradlew.bat

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

#ubuntu14.04 use qt5.2, remove incompatible code in qmlplayer
!qtAtLeast(5, 3):unix: system("sed -i '/\/\/IF_QT53/,/\/\/ENDIF_QT53/d' qml/QMLPlayer/main.qml")

0 comments on commit 79ebf68

Please sign in to comment.