Skip to content

Commit

Permalink
widgets: add libqtavwidgets deb
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Jan 10, 2015
1 parent 81f8a2f commit 8d3bbb9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
18 changes: 15 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Source: qtav
Section: libs
Priority: extra
Expand Down Expand Up @@ -55,13 +56,24 @@ Description: QtAV library
.
This package contains the QtAV library.

Package: libqtavwidgets
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}, libqtav, libqt5opengl5
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: QtAV Widgets module
QtAV is a multimedia playback library based on Qt and FFmpeg.
It can help you to write a player with less effort than ever before.
.
This package contains a set of widgets to play media.

Package: qtav-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends: ${misc:Depends}, libqtav, libqt5opengl5-dev
Depends: ${misc:Depends}, libqtav, libqtavwidgets, libqt5opengl5-dev
Description: QtAV development files
QtAV is a multimedia playback library based on Qt and FFmpeg.
QtAV is a multimedia playback framework based on Qt and FFmpeg.
It can help you to write a player with less effort than ever before.
.
This package contains the header development files for building some
Expand Down Expand Up @@ -96,7 +108,7 @@ Package: qtav-players
Section: video
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, ${shlibs:Depends}, libqtav, qml-module-qtav, libqt5svg5
Depends: ${misc:Depends}, ${shlibs:Depends}, libqtav, libqtavwidgets, qml-module-qtav, libqt5svg5
Multi-Arch: same
Description: QtAV/QML players
QtAV is a multimedia playback framework based on Qt and FFmpeg.
Expand Down
19 changes: 6 additions & 13 deletions widgets/libQtAVWidgets.pro
Original file line number Diff line number Diff line change
Expand Up @@ -143,23 +143,16 @@ QMAKE_EXTRA_TARGETS += libqtavwidgets
target.depends *= $${libqtavwidgets.target}

DEB_INSTALL_LIST = $$join(SDK_HEADERS, \\n.$$[QT_INSTALL_HEADERS]/, .$$[QT_INSTALL_HEADERS]/)
DEB_INSTALL_LIST += .$$[QT_INSTALL_LIBS]/libQt*AV.prl .$$[QT_INSTALL_LIBS]/libQt*AV.so
DEB_INSTALL_LIST += .$$[QT_INSTALL_BINS]/../mkspecs/features/av.prf .$$[QT_INSTALL_BINS]/../mkspecs/modules/qt_lib_av.pri
qtavwidgets_dev.target = qtavwidgets-dev.install
qtavwidgets_dev.commands = echo \"$$join(DEB_INSTALL_LIST, \\n)\" >$$PROJECTROOT/debian/$${qtavwidgets_dev.target}
DEB_INSTALL_LIST += .$$[QT_INSTALL_LIBS]/libQt*AVWidgets.prl .$$[QT_INSTALL_LIBS]/libQt*AVWidgets.so
DEB_INSTALL_LIST += .$$[QT_INSTALL_BINS]/../mkspecs/features/avwidgets.prf .$$[QT_INSTALL_BINS]/../mkspecs/modules/qt_lib_avwidgets.pri
qtavwidgets_dev.target = qtav-dev.install #like qtmultimedia5-dev, contains widgets headers
qtavwidgets_dev.commands = echo \"$$join(DEB_INSTALL_LIST, \\n)\" >>$$PROJECTROOT/debian/$${qtavwidgets_dev.target}
QMAKE_EXTRA_TARGETS += qtavwidgets_dev
target.depends *= $${qtavwidgets_dev.target}

DEB_INSTALL_LIST = $$join(SDK_PRIVATE_HEADERS, \\n.$$[QT_INSTALL_HEADERS]/QtAV/*/, .$$[QT_INSTALL_HEADERS]/QtAV/*/)
DEB_INSTALL_LIST += .$$[QT_INSTALL_BINS]/../mkspecs/modules/qt_lib_av_private.pri
qtavwidgets_private_dev.target = qtavwidgets-private-dev.install
qtavwidgets_private_dev.commands = echo \"$$join(DEB_INSTALL_LIST, \\n)\" >$$PROJECTROOT/debian/$${qtavwidgets_private_dev.target}
QMAKE_EXTRA_TARGETS += qtavwidgets_private_dev
target.depends *= $${qtavwidgets_private_dev.target}

greaterThan(QT_MAJOR_VERSION, 4):lessThan(QT_MINOR_VERSION, 4) {
qtavwidgets_dev_links.target = qtavwidgets-dev.links
qtavwidgets_dev_links.commands = echo \"$$[QT_INSTALL_LIBS]/libQtAVWidgets.so $$[QT_INSTALL_LIBS]/libQt$${QT_MAJOR_VERSION}AVWidgets.so\" >$$PROJECTROOT/debian/$${qtavwidgets_dev_links.target}
qtavwidgets_dev_links.target = qtav-dev.links #like qtmultimedia5-dev, contains widgets .so
qtavwidgets_dev_links.commands = echo \"$$[QT_INSTALL_LIBS]/libQtAVWidgets.so $$[QT_INSTALL_LIBS]/libQt$${QT_MAJOR_VERSION}AVWidgets.so\" >>$$PROJECTROOT/debian/$${qtavwidgets_dev_links.target}
QMAKE_EXTRA_TARGETS *= qtavwidgets_dev_links
target.depends *= $${qtavwidgets_dev_links.target}
} #Qt<5.4
Expand Down

0 comments on commit 8d3bbb9

Please sign in to comment.