##// END OF EJS Templates
Add assistant (qch) documentation generation...
Miikka Heikkinen -
r2418:d84ad300b3d2
parent child
Show More
@@ -0,0 +1,27
1 qhp.projects = QtCommercialCharts
2 qhp.QtCommercialCharts.file = qtcommercialcharts.qhp
3 qhp.QtCommercialCharts.namespace = com.digia.qtcommercialcharts.$QT_CHARTS_VERSION_TAG
4 qhp.QtCommercialCharts.virtualFolder = doc
5 qhp.QtCommercialCharts.indexTitle = QtCommercial Charts Reference $QT_CHARTS_VERSION
6 qhp.QtCommercialCharts.filterAttributes = qtcommercialcharts $QT_CHARTS_VERSION
7 qhp.QtCommercialCharts.customFilters.QtCommercialCharts.name = QtCommercial Charts $QT_CHARTS_VERSION
8 qhp.QtCommercialCharts.customFilters.QtCommercialCharts.filterAttributes = qtcommercialcharts $QT_CHARTS_VERSION
9 qhp.QtCommercialCharts.indexRoot =
10
11 # Files not referenced in any qdoc file.
12 # See also extraimages.HTML
13 qhp.QtCommercialCharts.extraFiles = index.html \
14 examples.html \
15 demos.html \
16 images/arrow_down.png \
17 images/bg.png \
18 images/breadcrumb.png \
19 images/bullet_gt.png \
20 images/bullet_dn.png \
21 images/bullet_sq.png \
22 images/bullet_up.png \
23 images/digia_logo.png \
24 images/horBar.png \
25 images/qcharts.png \
26 images/qt_commercial_logo.png \
27 style/offline.css
@@ -1,58 +1,77
1 !include(config.pri) {
1 !include(config.pri) {
2 error('Missing config.pri')
2 error('Missing config.pri')
3 }
3 }
4
4
5 TEMPLATE = subdirs
5 TEMPLATE = subdirs
6 SUBDIRS = src plugins demos examples tests
6 SUBDIRS = src plugins demos examples tests
7
7
8 development_build: message('Development build')
8 development_build: message('Development build')
9
9
10 CONFIG += ordered
10 CONFIG += ordered
11 QMAKE_CXXFLAGS += -g -Wall
11 QMAKE_CXXFLAGS += -g -Wall
12 unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html
12 unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html
13 win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html
13 win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html
14
14
15 # install feature file
15 # install feature file
16 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
16 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
17 feature.files = $$PWD/features/qtcommercialchart.prf
17 feature.files = $$PWD/features/qtcommercialchart.prf
18 INSTALLS += feature
18 INSTALLS += feature
19
19
20 # docs
20 # docs
21 CHARTS_VERSION = 1.2.1
22 CHARTS_VERSION_TAG = 121
23
21 win32: {
24 win32: {
22 QDOC_CONF = $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
25 QDOC_CONF = $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
26 VERSION_SETTINGS = \
27 set QT_CHARTS_VERSION=$$CHARTS_VERSION $$escape_expand(\\n\\t) \
28 set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG $$escape_expand(\\n\\t)
23 } else {
29 } else {
24 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
30 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
31 VERSION_SETTINGS = \
32 QT_CHARTS_VERSION=$$CHARTS_VERSION QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG
25 }
33 }
26
34
27 contains(QT_MAJOR_VERSION, 5) {
35 contains(QT_MAJOR_VERSION, 5) {
28 QDOC_CMD = qdoc
36 QDOC_CMD = qdoc
37 HELPGENERATOR_CMD = qhelpgenerator -platform minimal
29 } else {
38 } else {
30 QDOC_CMD = qdoc3
39 QDOC_CMD = qdoc3
40 HELPGENERATOR_CMD = qhelpgenerator
31 }
41 }
32
42
43 QHP_FILE = doc/html/qtcommercialcharts.qhp
44 QCH_FILE = doc/qch/qtcommercialcharts.qch
45
33 docs.target = docs
46 docs.target = docs
34 docs.commands = $$QDOC_CMD $$QDOC_CONF
47 docs.depends = qch_docs FORCE
35 docs.depends = FORCE
48 qch_docs.target = qch_docs
36 QMAKE_EXTRA_TARGETS += docs
49 qch_docs.commands = $$HELPGENERATOR_CMD $$QHP_FILE -o $$QCH_FILE
50 qch_docs.depends = html_docs FORCE
51 html_docs.target = html_docs
52 html_docs.commands = $$VERSION_SETTINGS $$QDOC_CMD $$QDOC_CONF
53 html_docs.depends = FORCE
54
55 QMAKE_EXTRA_TARGETS += docs qch_docs html_docs
37
56
38 # coverage
57 # coverage
39 unix:coverage:{
58 unix:coverage:{
40 QMAKE_DISTCLEAN += -r ./coverage
59 QMAKE_DISTCLEAN += -r ./coverage
41 QMAKE_CLEAN += build/*.gcda build/*.gcno
60 QMAKE_CLEAN += build/*.gcda build/*.gcno
42 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
61 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
43
62
44 buildcoverage.target = build_coverage
63 buildcoverage.target = build_coverage
45 buildcoverage.depends = all
64 buildcoverage.depends = all
46 buildcoverage.commands = mkdir -p ./coverage; \
65 buildcoverage.commands = mkdir -p ./coverage; \
47 make -C src prepare_coverage;
66 make -C src prepare_coverage;
48
67
49 runcoverage.target = run_coverage
68 runcoverage.target = run_coverage
50 runcoverage.depends = buildcoverage
69 runcoverage.depends = buildcoverage
51 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
70 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
52
71
53 gencoverage.target = gen_coverage
72 gencoverage.target = gen_coverage
54 gencoverage.depends = runcoverage
73 gencoverage.depends = runcoverage
55 gencoverage.commands = make -C src gen_coverage; \
74 gencoverage.commands = make -C src gen_coverage; \
56 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
75 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
57 }
76 }
58
77
@@ -1,59 +1,46
1 include(qchart-html.qdocconf)
1 include(qchart-html.qdocconf)
2
2
3 HTML.postheader = \
3 HTML.postheader = \
4 "<div class=\"header\" id=\"qtdocheader\">\n" \
4 "<div class=\"header\" id=\"qtdocheader\">\n" \
5 " <div class=\"content\"> \n" \
5 " <div class=\"content\"> \n" \
6 " <img src=\"images/qcharts.png\" alt=\"qcharts\"/>\n" \
6 " <img src=\"images/qcharts.png\" alt=\"qcharts\"/>\n" \
7 " <p class=\"qtref\"> \n" \
7 " <p class=\"qtref\"> \n" \
8 " <span>Reference Documentation</span>\n" \
8 " <span>Reference Documentation</span>\n" \
9 " </p>\n" \
9 " </p>\n" \
10 " </div>\n" \
10 " </div>\n" \
11 " <div class=\"breadcrumb toolblock\">\n" \
11 " <div class=\"breadcrumb toolblock\">\n" \
12 " <ul>\n" \
12 " <ul>\n" \
13 " <li class=\"first\"><a href=\"index.html\">About</a></li>\n" \
13 " <li class=\"first\"><a href=\"index.html\">About</a></li>\n" \
14 " <li><a href=\"gettingstarted.html\">Getting started</a></li>\n" \
14 " <li><a href=\"gettingstarted.html\">Getting started</a></li>\n" \
15 " <li><a href=\"classes.html\">API Classes</a></li>\n" \
15 " <li><a href=\"classes.html\">API Classes</a></li>\n" \
16 " <li><a href=\"qml.html\">QML API</a></li>\n" \
16 " <li><a href=\"qml.html\">QML API</a></li>\n" \
17 " <li><a href=\"examples.html\">Examples</a></li>\n" \
17 " <li><a href=\"examples.html\">Examples</a></li>\n" \
18 " <li><a href=\"demos.html\">Demos</a></li>\n" \
18 " <li><a href=\"demos.html\">Demos</a></li>\n" \
19 " <!-- Breadcrumbs go here -->\n"
19 " <!-- Breadcrumbs go here -->\n"
20
20
21 HTML.postpostheader = \
21 HTML.postpostheader = \
22 " </ul>\n" \
22 " </ul>\n" \
23 " </div>\n" \
23 " </div>\n" \
24 "</div>\n" \
24 "</div>\n" \
25 "<div class=\"content mainContent\">\n"
25 "<div class=\"content mainContent\">\n"
26
26
27 HTML.footer = \
27 HTML.footer = \
28 " <div class=\"ft\">\n" \
28 " <div class=\"ft\">\n" \
29 " <span></span>\n" \
29 " <span></span>\n" \
30 " </div>\n" \
30 " </div>\n" \
31 "</div> \n" \
31 "</div> \n" \
32 "<div class=\"footer\">\n" \
32 "<div class=\"footer\">\n" \
33 " <p>\n" \
33 " <p>\n" \
34 " <acronym title=\"Copyright\">&copy;</acronym> 2012 Digia ." \
34 " <acronym title=\"Copyright\">&copy;</acronym> 2012 Digia ." \
35 " Qt and Qt logos are trademarks of of Digia Corporation \n" \
35 " Qt and Qt logos are trademarks of of Digia Corporation \n" \
36 " in Finland and/or other countries worldwide.</p>\n" \
36 " in Finland and/or other countries worldwide.</p>\n" \
37 " <p>\n" \
37 " <p>\n" \
38 " All other trademarks are property of their respective owners.</p>\n" \
38 " All other trademarks are property of their respective owners.</p>\n" \
39 " <br />\n" \
39 " <br />\n" \
40 " <p>\n" \
40 " <p>\n" \
41 " Licensees holding valid Qt Commercial licenses may use this document in accordance with the" \
41 " Licensees holding valid Qt Commercial licenses may use this document in accordance with the" \
42 " Qt Commercial License Agreement provided with the Software or, alternatively, in accordance" \
42 " Qt Commercial License Agreement provided with the Software or, alternatively, in accordance" \
43 " with the terms contained in a written agreement between you and Digia.</p>\n" \
43 " with the terms contained in a written agreement between you and Digia.</p>\n" \
44 " <p>\n" \
44 " <p>\n" \
45 " <img src=\"images/digia_logo.png\" alt=\"digia\" /></p>\n" \
45 " <img src=\"images/digia_logo.png\" alt=\"digia\" /></p>\n" \
46 "</div>\n" \
46 "</div>\n" \
47
48 # Files not referenced in any qdoc file.
49 # See also extraimages.HTML
50 qhp.QDoc.extraFiles = index.html \
51 images/arrow_down.png \
52 images/breadcrumb.png \
53 images/bullet_gt.png \
54 images/bullet_dn.png \
55 images/bullet_sq.png \
56 images/bullet_up.png \
57 images/horBar.png \
58 images/qcharts.png \
59 style/offline.css
@@ -1,48 +1,49
1 include(compat.qdocconf)
1 include(compat.qdocconf)
2 include(macros.qdocconf)
2 include(macros.qdocconf)
3 include(qchart-html-template.qdocconf)
3 include(qchart-html-template.qdocconf)
4 include(qchart-qch.qdocconf)
4
5
5 project = QtCommercialCharts
6 project = QtCommercialCharts
6 description = Library for creating charts
7 description = Library for creating charts
7
8
8 sourcedirs = ../src \
9 sourcedirs = ../src \
9 ../examples \
10 ../examples \
10 ./src \
11 ./src \
11 ../plugins/declarative
12 ../plugins/declarative
12 headerdirs = ../src \
13 headerdirs = ../src \
13 ../examples \
14 ../examples \
14 ../plugins/declarative
15 ../plugins/declarative
15 exampledirs = ../ \
16 exampledirs = ../ \
16 ../src \
17 ../src \
17 ../examples
18 ../examples
18
19
19 excludefiles += ../examples/linechart/linechart.pro
20 excludefiles += ../examples/linechart/linechart.pro
20
21
21 sources.fileextensions = *.cpp *.qdoc *.mm *.qml
22 sources.fileextensions = *.cpp *.qdoc *.mm *.qml
22 headers.fileextensions = *.h *.ch *.h++ *.hh *.hpp *.hxx
23 headers.fileextensions = *.h *.ch *.h++ *.hh *.hpp *.hxx
23 examples.fileextensions = *.cpp *.h *.js *.xq *.svg *.xml *.ui *.qhp *.qhcp *.qml
24 examples.fileextensions = *.cpp *.h *.js *.xq *.svg *.xml *.ui *.qhp *.qhcp *.qml
24 examples.imageextensions = *.png *.jpeg *.jpg *.gif *.mng
25 examples.imageextensions = *.png *.jpeg *.jpg *.gif *.mng
25
26
26 imagedirs = ./images
27 imagedirs = ./images
27 outputdir = ./html
28 outputdir = ./html
28
29
29
30
30 Cpp.ignoretokens = QTCOMMERCIALCHART_EXPORT \
31 Cpp.ignoretokens = QTCOMMERCIALCHART_EXPORT \
31 QTCOMMERCIALCHART_END_NAMESPACE \
32 QTCOMMERCIALCHART_END_NAMESPACE \
32 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33 Cpp.ignoredirectives = Q_DECLARE_HANDLE \
34 Cpp.ignoredirectives = Q_DECLARE_HANDLE \
34 Q_DECLARE_INTERFACE \
35 Q_DECLARE_INTERFACE \
35 Q_DECLARE_METATYPE \
36 Q_DECLARE_METATYPE \
36 Q_DECLARE_OPERATORS_FOR_FLAGS \
37 Q_DECLARE_OPERATORS_FOR_FLAGS \
37 Q_DECLARE_PRIVATE \
38 Q_DECLARE_PRIVATE \
38 Q_DECLARE_PUBLIC \
39 Q_DECLARE_PUBLIC \
39 Q_DECLARE_SHARED \
40 Q_DECLARE_SHARED \
40 Q_DECLARE_TR_FUNCTIONS \
41 Q_DECLARE_TR_FUNCTIONS \
41 Q_DECLARE_TYPEINFO \
42 Q_DECLARE_TYPEINFO \
42 Q_DISABLE_COPY \
43 Q_DISABLE_COPY \
43 QT_FORWARD_DECLARE_CLASS \
44 QT_FORWARD_DECLARE_CLASS \
44 Q_DUMMY_COMPARISON_OPERATOR \
45 Q_DUMMY_COMPARISON_OPERATOR \
45 Q_ENUMS \
46 Q_ENUMS \
46 Q_FLAGS \
47 Q_FLAGS \
47 Q_INTERFACES \
48 Q_INTERFACES \
48 __attribute__
49 __attribute__
General Comments 0
You need to be logged in to leave comments. Login now