Skip to content

Commit 6f07322

Browse files
committed
Merge pull request #3048 from nyalldawson/qt_doxygen
Allow generation of Qt QHP help files from doxygen
2 parents c0799d4 + 9d59f9c commit 6f07322

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

cmake_templates/Doxyfile.in

+5-5
Original file line numberDiff line numberDiff line change
@@ -970,25 +970,25 @@ TOC_EXPAND = NO
970970
# that can be used as input for Qt's qhelpgenerator to generate a
971971
# Qt Compressed Help (.qch) of the generated HTML documentation.
972972

973-
GENERATE_QHP = NO
973+
GENERATE_QHP = @WITH_QHP@
974974

975975
# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
976976
# be used to specify the file name of the resulting .qch file.
977977
# The path specified is relative to the HTML output folder.
978978

979-
QCH_FILE =
979+
QCH_FILE =../qch/qgis.qch
980980

981981
# The QHP_NAMESPACE tag specifies the namespace to use when generating
982982
# Qt Help Project output. For more information please see
983983
# http://doc.trolltech.com/qthelpproject.html#namespace
984984

985-
QHP_NAMESPACE = org.doxygen.Project
985+
QHP_NAMESPACE = org.qgis.qgis2
986986

987987
# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
988988
# Qt Help Project output. For more information please see
989989
# http://doc.trolltech.com/qthelpproject.html#virtual-folders
990990

991-
QHP_VIRTUAL_FOLDER = doc
991+
QHP_VIRTUAL_FOLDER = qgis
992992

993993
# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
994994
# add. For more information please see
@@ -1016,7 +1016,7 @@ QHP_SECT_FILTER_ATTRS =
10161016
# If non-empty doxygen will try to run qhelpgenerator on the generated
10171017
# .qhp file.
10181018

1019-
QHG_LOCATION =
1019+
QHG_LOCATION = qhelpgenerator
10201020

10211021
# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
10221022
# will be generated, which together with the HTML files, form an Eclipse help

debian/control.in

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Build-Depends:
6262
xfonts-base, xfonts-100dpi, xfonts-75dpi, xfonts-scalable,
6363
#oracle# oracle-instantclient12.1-devel,
6464
spawn-fcgi, lighttpd, poppler-utils, locales, qt4-doc-html,
65+
qt4-dev-tools,
6566
libqt4-sql-sqlite, python-psycopg2
6667
Build-Conflicts: libqgis-dev, qgis-dev
6768
#sid stretch xenial#Standards-Version: 3.9.7

debian/rules

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ CMAKE_OPTS := \
6565
-DSERVER_SKIP_ECW=TRUE \
6666
-DQGIS_CGIBIN_SUBDIR=/usr/lib/cgi-bin \
6767
-DWITH_APIDOC=TRUE \
68+
-DGENERATE_QHP=TRUE \
6869
-DWITH_CUSTOM_WIDGETS=TRUE \
6970
-DWITH_GLOBE=TRUE \
7071
-DWITH_INTERNAL_HTTPLIB2=FALSE \

doc/CMakeLists.txt

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ IF(WITH_APIDOC)
3131
FIND_PACKAGE(Doxygen 1.8.2 REQUIRED)
3232
IF(DOXYGEN_FOUND)
3333

34+
# Whether to generate QHP file
35+
SET (GENERATE_QHP FALSE CACHE BOOL "Determines whether to generate Qt QHP help from the QGIS API Docs")
36+
IF (GENERATE_QHP)
37+
SET(WITH_QHP YES)
38+
ELSE(GENERATE_QHP)
39+
SET(WITH_QHP NO)
40+
ENDIF(GENERATE_QHP)
41+
3442
FIND_FILE(QT_TAG_FILE
3543
NAMES qt4.tags qt4.tag qt.tags qt.tag
3644
PATHS "${QT_DOC_DIR}"

0 commit comments

Comments
 (0)