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