##// END OF EJS Templates
Update version numbers to 1.3.0...
Miikka Heikkinen -
r2550:f50896eb9f2b
parent child
Show More
@@ -1,82 +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.3.0
22 CHARTS_VERSION_TAG = 121
22 CHARTS_VERSION_TAG = 130
23
23
24 contains(QMAKE_HOST.os, Windows) {
24 contains(QMAKE_HOST.os, Windows) {
25 QDOC_CONF = $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
25 QDOC_CONF = $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
26 win32-g++|qnx {
26 win32-g++|qnx {
27 VERSION_SETTINGS = \
27 VERSION_SETTINGS = \
28 set QT_CHARTS_VERSION=$$CHARTS_VERSION&& set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG&&
28 set QT_CHARTS_VERSION=$$CHARTS_VERSION&& set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG&&
29 } else {
29 } else {
30 VERSION_SETTINGS = \
30 VERSION_SETTINGS = \
31 set QT_CHARTS_VERSION=$$CHARTS_VERSION $$escape_expand(\\n\\t) \
31 set QT_CHARTS_VERSION=$$CHARTS_VERSION $$escape_expand(\\n\\t) \
32 set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG $$escape_expand(\\n\\t)
32 set QT_CHARTS_VERSION_TAG=$$CHARTS_VERSION_TAG $$escape_expand(\\n\\t)
33 }
33 }
34 } else {
34 } else {
35 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
35 QDOC_CONF = $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
36 VERSION_SETTINGS = \
36 VERSION_SETTINGS = \
37 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
38 }
38 }
39
39
40 contains(QT_MAJOR_VERSION, 5) {
40 contains(QT_MAJOR_VERSION, 5) {
41 QDOC_CMD = qdoc
41 QDOC_CMD = qdoc
42 HELPGENERATOR_CMD = qhelpgenerator -platform minimal
42 HELPGENERATOR_CMD = qhelpgenerator -platform minimal
43 } else {
43 } else {
44 QDOC_CMD = qdoc3
44 QDOC_CMD = qdoc3
45 HELPGENERATOR_CMD = qhelpgenerator
45 HELPGENERATOR_CMD = qhelpgenerator
46 }
46 }
47
47
48 QHP_FILE = doc/html/qtcommercialcharts.qhp
48 QHP_FILE = doc/html/qtcommercialcharts.qhp
49 QCH_FILE = doc/qch/qtcommercialcharts.qch
49 QCH_FILE = doc/qch/qtcommercialcharts.qch
50
50
51 docs.target = docs
51 docs.target = docs
52 docs.depends = qch_docs FORCE
52 docs.depends = qch_docs FORCE
53 qch_docs.target = qch_docs
53 qch_docs.target = qch_docs
54 qch_docs.commands = $$HELPGENERATOR_CMD $$QHP_FILE -o $$QCH_FILE
54 qch_docs.commands = $$HELPGENERATOR_CMD $$QHP_FILE -o $$QCH_FILE
55 qch_docs.depends = html_docs FORCE
55 qch_docs.depends = html_docs FORCE
56 html_docs.target = html_docs
56 html_docs.target = html_docs
57 html_docs.commands = $$VERSION_SETTINGS $$QDOC_CMD $$QDOC_CONF
57 html_docs.commands = $$VERSION_SETTINGS $$QDOC_CMD $$QDOC_CONF
58 html_docs.depends = FORCE
58 html_docs.depends = FORCE
59
59
60 QMAKE_EXTRA_TARGETS += docs qch_docs html_docs
60 QMAKE_EXTRA_TARGETS += docs qch_docs html_docs
61
61
62 # coverage
62 # coverage
63 unix:coverage:{
63 unix:coverage:{
64 QMAKE_DISTCLEAN += -r ./coverage
64 QMAKE_DISTCLEAN += -r ./coverage
65 QMAKE_CLEAN += build/*.gcda build/*.gcno
65 QMAKE_CLEAN += build/*.gcda build/*.gcno
66 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
66 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
67
67
68 buildcoverage.target = build_coverage
68 buildcoverage.target = build_coverage
69 buildcoverage.depends = all
69 buildcoverage.depends = all
70 buildcoverage.commands = mkdir -p ./coverage; \
70 buildcoverage.commands = mkdir -p ./coverage; \
71 make -C src prepare_coverage;
71 make -C src prepare_coverage;
72
72
73 runcoverage.target = run_coverage
73 runcoverage.target = run_coverage
74 runcoverage.depends = buildcoverage
74 runcoverage.depends = buildcoverage
75 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;
76
76
77 gencoverage.target = gen_coverage
77 gencoverage.target = gen_coverage
78 gencoverage.depends = runcoverage
78 gencoverage.depends = runcoverage
79 gencoverage.commands = make -C src gen_coverage; \
79 gencoverage.commands = make -C src gen_coverage; \
80 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
80 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
81 }
81 }
82
82
@@ -1,88 +1,88
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2013 Digia Plc
3 ** Copyright (C) 2013 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Commercial Charts Add-on.
7 ** This file is part of the Qt Commercial Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Commercial licenses may use this file in
10 ** Licensees holding valid Qt Commercial licenses may use this file in
11 ** accordance with the Qt Commercial License Agreement provided with the
11 ** accordance with the Qt Commercial License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #ifndef QCHARTGLOBAL_H
21 #ifndef QCHARTGLOBAL_H
22 #define QCHARTGLOBAL_H
22 #define QCHARTGLOBAL_H
23
23
24 #include <qglobal.h>
24 #include <qglobal.h>
25
25
26 #define QTCOMMERCIALCHART_VERSION_STR "1.2.1"
26 #define QTCOMMERCIALCHART_VERSION_STR "1.3.0"
27 /*
27 /*
28 QTCOMMERCIALCHART_VERSION is (major << 16) + (minor << 8) + patch.
28 QTCOMMERCIALCHART_VERSION is (major << 16) + (minor << 8) + patch.
29 */
29 */
30 #define QTCOMMERCIALCHART_VERSION 0x010201
30 #define QTCOMMERCIALCHART_VERSION 0x010300
31 /*
31 /*
32 can be used like #if (QTCOMMERCIALCHART_VERSION >= QTCOMMERCIALCHART_VERSION_CHECK(1, 1, 0))
32 can be used like #if (QTCOMMERCIALCHART_VERSION >= QTCOMMERCIALCHART_VERSION_CHECK(1, 1, 0))
33 */
33 */
34 #define QTCOMMERCIALCHART_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
34 #define QTCOMMERCIALCHART_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
35
35
36 #if defined(QTCOMMERCIALCHART_LIBRARY)
36 #if defined(QTCOMMERCIALCHART_LIBRARY)
37 # define QTCOMMERCIALCHART_EXPORT Q_DECL_EXPORT
37 # define QTCOMMERCIALCHART_EXPORT Q_DECL_EXPORT
38 #else
38 #else
39 # define QTCOMMERCIALCHART_EXPORT Q_DECL_IMPORT
39 # define QTCOMMERCIALCHART_EXPORT Q_DECL_IMPORT
40 #endif
40 #endif
41
41
42 #if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QTCOMMERCIALCHART_LIBRARY)
42 #if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QTCOMMERCIALCHART_LIBRARY)
43 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_EXPORT
43 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_EXPORT
44 #elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QTCOMMERCIALCHART_LIBRARY)
44 #elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QTCOMMERCIALCHART_LIBRARY)
45 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_IMPORT
45 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_IMPORT
46 #else
46 #else
47 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT
47 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT
48 #endif
48 #endif
49
49
50 #ifdef QTCOMMERCIALCHART_STATICLIB
50 #ifdef QTCOMMERCIALCHART_STATICLIB
51 # undef QTCOMMERCIALCHART_EXPORT
51 # undef QTCOMMERCIALCHART_EXPORT
52 # undef QTCOMMERCIALCHART_AUTOTEST_EXPORT
52 # undef QTCOMMERCIALCHART_AUTOTEST_EXPORT
53 # define QTCOMMERCIALCHART_EXPORT
53 # define QTCOMMERCIALCHART_EXPORT
54 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT
54 # define QTCOMMERCIALCHART_AUTOTEST_EXPORT
55 #endif
55 #endif
56
56
57 #define QTCOMMERCIALCHART_NAMESPACE QtCommercialChart
57 #define QTCOMMERCIALCHART_NAMESPACE QtCommercialChart
58
58
59 #ifdef QTCOMMERCIALCHART_NAMESPACE
59 #ifdef QTCOMMERCIALCHART_NAMESPACE
60 # define QTCOMMERCIALCHART_BEGIN_NAMESPACE namespace QTCOMMERCIALCHART_NAMESPACE {
60 # define QTCOMMERCIALCHART_BEGIN_NAMESPACE namespace QTCOMMERCIALCHART_NAMESPACE {
61 # define QTCOMMERCIALCHART_END_NAMESPACE }
61 # define QTCOMMERCIALCHART_END_NAMESPACE }
62 # define QTCOMMERCIALCHART_USE_NAMESPACE using namespace QTCOMMERCIALCHART_NAMESPACE;
62 # define QTCOMMERCIALCHART_USE_NAMESPACE using namespace QTCOMMERCIALCHART_NAMESPACE;
63 #else
63 #else
64 # define QTCOMMERCIALCHART_BEGIN_NAMESPACE
64 # define QTCOMMERCIALCHART_BEGIN_NAMESPACE
65 # define QTCOMMERCIALCHART_END_NAMESPACE
65 # define QTCOMMERCIALCHART_END_NAMESPACE
66 # define QTCOMMERCIALCHART_USE_NAMESPACE
66 # define QTCOMMERCIALCHART_USE_NAMESPACE
67 #endif
67 #endif
68
68
69 #if defined(DEVELOPMENT_BUILD) && !defined(QT_NO_DEBUG)
69 #if defined(DEVELOPMENT_BUILD) && !defined(QT_NO_DEBUG)
70 #include <stdarg.h>
70 #include <stdarg.h>
71 #include <QDebug>
71 #include <QDebug>
72
72
73 #define CHART_DEBUG chartDebug(3,__LINE__,__FILE__,__FUNCTION__)
73 #define CHART_DEBUG chartDebug(3,__LINE__,__FILE__,__FUNCTION__)
74
74
75 static inline QDebug chartDebug(int numargs,...)
75 static inline QDebug chartDebug(int numargs,...)
76 {
76 {
77 va_list valist;
77 va_list valist;
78 va_start(valist, numargs);
78 va_start(valist, numargs);
79 //for( int i = 0 ; i < numargs; i++ )
79 //for( int i = 0 ; i < numargs; i++ )
80 int line = va_arg(valist, int);
80 int line = va_arg(valist, int);
81 char *file = va_arg(valist, char *);
81 char *file = va_arg(valist, char *);
82 char *function = va_arg(valist, char *);
82 char *function = va_arg(valist, char *);
83 va_end(valist);
83 va_end(valist);
84 return qDebug() << QString().append(function).append("(").append(file).append(":%1)").arg(line);
84 return qDebug() << QString().append(function).append("(").append(file).append(":%1)").arg(line);
85 }
85 }
86 #endif
86 #endif
87
87
88 #endif // QCHARTGLOBAL_H
88 #endif // QCHARTGLOBAL_H
General Comments 0
You need to be logged in to leave comments. Login now