Skip to content
Permalink
Browse files
Fix documentation building on Qt5
  • Loading branch information
Vesa Halttunen committed May 13, 2013
1 parent 7b315f5 commit 89e46c7c308027922a20d1f5ab968082d02c3d29
Showing with 13 additions and 3 deletions.
  1. +7 −3 doc/doc.pri
  2. +3 −0 doc/html/.gitignore
  3. +3 −0 rpm/transfer-engine-qt5.spec
@@ -1,10 +1,14 @@
QDOC = qdoc3
equals(QT_MAJOR_VERSION, 4): QDOC = qdoc3
equals(QT_MAJOR_VERSION, 5): QDOC = qdoc
QHELPGENERATOR = qhelpgenerator
QDOCCONF = doc/config/transfer-engine-project.qdocconf
equals(QT_MAJOR_VERSION, 4): QDOCCONF = doc/config/transfer-engine-project.qdocconf
equals(QT_MAJOR_VERSION, 5): QDOCCONF = transfer-engine-project.qdocconf
QHELPFILE = doc/html/transferengine.qhp
QCHFILE = doc/html/transferengine.qch

docs.commands = ($$QDOC $$QDOCCONF) && \
equals(QT_MAJOR_VERSION, 4): docs.commands = ($$QDOC $$QDOCCONF) && \
($$QHELPGENERATOR $$QHELPFILE -o $$QCHFILE)
equals(QT_MAJOR_VERSION, 5): docs.commands = (cd doc/config; $$QDOC $$QDOCCONF; cd ../..) && \
($$QHELPGENERATOR $$QHELPFILE -o $$QCHFILE)

QMAKE_EXTRA_TARGETS += docs
@@ -1,2 +1,5 @@
*html
*index*
*.qch
*.qhp*
*.tags
@@ -15,6 +15,9 @@ BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(quillmetadata-qt5)
BuildRequires: qt5-qttools-linguist
BuildRequires: qt5-qttools-qthelp-devel
BuildRequires: qt5-plugin-platform-minimal
BuildRequires: qt5-plugin-sqldriver-sqlite

%description
%{summary}.

0 comments on commit 89e46c7

Please sign in to comment.