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