##// END OF EJS Templates
Fixed docs building in mingw builds....
Miikka Heikkinen -
r2419:853039e3f1f6
parent child
Show More
@@ -1,77 +1,82
1 1 !include(config.pri) {
2 2 error('Missing config.pri')
3 3 }
4 4
5 5 TEMPLATE = subdirs
6 6 SUBDIRS = src plugins demos examples tests
7 7
8 8 development_build: message('Development build')
9 9
10 10 CONFIG += ordered
11 11 QMAKE_CXXFLAGS += -g -Wall
12 12 unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html
13 13 win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html
14 14
15 15 # install feature file
16 16 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
17 17 feature.files = $$PWD/features/qtcommercialchart.prf
18 18 INSTALLS += feature
19 19
20 20 # docs
21 21 CHARTS_VERSION = 1.2.1
22 22 CHARTS_VERSION_TAG = 121
23 23
24 24 win32: {
25 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)
26 win32-g++: {
27 VERSION_SETTINGS = \
28 set QT_CHARTS_VERSION=$$CHARTS_VERSION&& set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG&&
29 } else {
30 VERSION_SETTINGS = \
31 set QT_CHARTS_VERSION=$$CHARTS_VERSION $$escape_expand(\\n\\t) \
32 set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG $$escape_expand(\\n\\t)
33 }
29 34 } else {
30 35 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
31 36 VERSION_SETTINGS = \
32 37 QT_CHARTS_VERSION=$$CHARTS_VERSION QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG
33 38 }
34 39
35 40 contains(QT_MAJOR_VERSION, 5) {
36 41 QDOC_CMD = qdoc
37 42 HELPGENERATOR_CMD = qhelpgenerator -platform minimal
38 43 } else {
39 44 QDOC_CMD = qdoc3
40 45 HELPGENERATOR_CMD = qhelpgenerator
41 46 }
42 47
43 48 QHP_FILE = doc/html/qtcommercialcharts.qhp
44 49 QCH_FILE = doc/qch/qtcommercialcharts.qch
45 50
46 51 docs.target = docs
47 52 docs.depends = qch_docs FORCE
48 53 qch_docs.target = qch_docs
49 54 qch_docs.commands = $$HELPGENERATOR_CMD $$QHP_FILE -o $$QCH_FILE
50 55 qch_docs.depends = html_docs FORCE
51 56 html_docs.target = html_docs
52 57 html_docs.commands = $$VERSION_SETTINGS $$QDOC_CMD $$QDOC_CONF
53 58 html_docs.depends = FORCE
54 59
55 60 QMAKE_EXTRA_TARGETS += docs qch_docs html_docs
56 61
57 62 # coverage
58 63 unix:coverage:{
59 64 QMAKE_DISTCLEAN += -r ./coverage
60 65 QMAKE_CLEAN += build/*.gcda build/*.gcno
61 66 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
62 67
63 68 buildcoverage.target = build_coverage
64 69 buildcoverage.depends = all
65 70 buildcoverage.commands = mkdir -p ./coverage; \
66 71 make -C src prepare_coverage;
67 72
68 73 runcoverage.target = run_coverage
69 74 runcoverage.depends = buildcoverage
70 75 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
71 76
72 77 gencoverage.target = gen_coverage
73 78 gencoverage.depends = runcoverage
74 79 gencoverage.commands = make -C src gen_coverage; \
75 80 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
76 81 }
77 82
General Comments 0
You need to be logged in to leave comments. Login now