##// END OF EJS Templates
Fixed docs building in mingw builds....
Miikka Heikkinen -
r2419:853039e3f1f6
parent child
Show More
@@ -1,77 +1,82
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
21 CHARTS_VERSION = 1.2.1
22 CHARTS_VERSION_TAG = 121
22 CHARTS_VERSION_TAG = 121
23
23
24 win32: {
24 win32: {
25 QDOC_CONF = $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
25 QDOC_CONF = $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
26 VERSION_SETTINGS = \
26 win32-g++: {
27 set QT_CHARTS_VERSION=$$CHARTS_VERSION $$escape_expand(\\n\\t) \
27 VERSION_SETTINGS = \
28 set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG $$escape_expand(\\n\\t)
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 } else {
34 } else {
30 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
35 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
31 VERSION_SETTINGS = \
36 VERSION_SETTINGS = \
32 QT_CHARTS_VERSION=$$CHARTS_VERSION QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG
37 QT_CHARTS_VERSION=$$CHARTS_VERSION QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG
33 }
38 }
34
39
35 contains(QT_MAJOR_VERSION, 5) {
40 contains(QT_MAJOR_VERSION, 5) {
36 QDOC_CMD = qdoc
41 QDOC_CMD = qdoc
37 HELPGENERATOR_CMD = qhelpgenerator -platform minimal
42 HELPGENERATOR_CMD = qhelpgenerator -platform minimal
38 } else {
43 } else {
39 QDOC_CMD = qdoc3
44 QDOC_CMD = qdoc3
40 HELPGENERATOR_CMD = qhelpgenerator
45 HELPGENERATOR_CMD = qhelpgenerator
41 }
46 }
42
47
43 QHP_FILE = doc/html/qtcommercialcharts.qhp
48 QHP_FILE = doc/html/qtcommercialcharts.qhp
44 QCH_FILE = doc/qch/qtcommercialcharts.qch
49 QCH_FILE = doc/qch/qtcommercialcharts.qch
45
50
46 docs.target = docs
51 docs.target = docs
47 docs.depends = qch_docs FORCE
52 docs.depends = qch_docs FORCE
48 qch_docs.target = qch_docs
53 qch_docs.target = qch_docs
49 qch_docs.commands = $$HELPGENERATOR_CMD $$QHP_FILE -o $$QCH_FILE
54 qch_docs.commands = $$HELPGENERATOR_CMD $$QHP_FILE -o $$QCH_FILE
50 qch_docs.depends = html_docs FORCE
55 qch_docs.depends = html_docs FORCE
51 html_docs.target = html_docs
56 html_docs.target = html_docs
52 html_docs.commands = $$VERSION_SETTINGS $$QDOC_CMD $$QDOC_CONF
57 html_docs.commands = $$VERSION_SETTINGS $$QDOC_CMD $$QDOC_CONF
53 html_docs.depends = FORCE
58 html_docs.depends = FORCE
54
59
55 QMAKE_EXTRA_TARGETS += docs qch_docs html_docs
60 QMAKE_EXTRA_TARGETS += docs qch_docs html_docs
56
61
57 # coverage
62 # coverage
58 unix:coverage:{
63 unix:coverage:{
59 QMAKE_DISTCLEAN += -r ./coverage
64 QMAKE_DISTCLEAN += -r ./coverage
60 QMAKE_CLEAN += build/*.gcda build/*.gcno
65 QMAKE_CLEAN += build/*.gcda build/*.gcno
61 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
66 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
62
67
63 buildcoverage.target = build_coverage
68 buildcoverage.target = build_coverage
64 buildcoverage.depends = all
69 buildcoverage.depends = all
65 buildcoverage.commands = mkdir -p ./coverage; \
70 buildcoverage.commands = mkdir -p ./coverage; \
66 make -C src prepare_coverage;
71 make -C src prepare_coverage;
67
72
68 runcoverage.target = run_coverage
73 runcoverage.target = run_coverage
69 runcoverage.depends = buildcoverage
74 runcoverage.depends = buildcoverage
70 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
75 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
71
76
72 gencoverage.target = gen_coverage
77 gencoverage.target = gen_coverage
73 gencoverage.depends = runcoverage
78 gencoverage.depends = runcoverage
74 gencoverage.commands = make -C src gen_coverage; \
79 gencoverage.commands = make -C src gen_coverage; \
75 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
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