@@ -1,97 +1,94 | |||||
1 | ############################# BUILD CONFIG ###################################### |
|
1 | ############################# BUILD CONFIG ###################################### | |
2 |
|
2 | |||
3 | TARGET = QtCharts |
|
3 | TARGET = QtCharts | |
4 |
|
4 | |||
5 | QT = core gui widgets |
|
5 | QT = core gui widgets | |
6 | DEFINES += QT_CHARTS_LIBRARY |
|
|||
7 | # Fix exports in static builds for applications linking charts module |
|
|||
8 | static: MODULE_DEFINES += QT_CHARTS_STATICLIB |
|
|||
9 |
|
6 | |||
10 | QMAKE_DOCS = $$PWD/doc/qtcharts.qdocconf |
|
7 | QMAKE_DOCS = $$PWD/doc/qtcharts.qdocconf | |
11 |
|
8 | |||
12 | QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)" |
|
9 | QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)" | |
13 | QMAKE_TARGET_DESCRIPTION = "Charts component for Qt." |
|
10 | QMAKE_TARGET_DESCRIPTION = "Charts component for Qt." | |
14 |
|
11 | |||
15 | ############################# SOURCES ########################################## |
|
12 | ############################# SOURCES ########################################## | |
16 |
|
13 | |||
17 | SOURCES += \ |
|
14 | SOURCES += \ | |
18 | $$PWD/chartdataset.cpp \ |
|
15 | $$PWD/chartdataset.cpp \ | |
19 | $$PWD/chartpresenter.cpp \ |
|
16 | $$PWD/chartpresenter.cpp \ | |
20 | $$PWD/chartthememanager.cpp \ |
|
17 | $$PWD/chartthememanager.cpp \ | |
21 | $$PWD/qchart.cpp \ |
|
18 | $$PWD/qchart.cpp \ | |
22 | $$PWD/qchartview.cpp \ |
|
19 | $$PWD/qchartview.cpp \ | |
23 | $$PWD/qabstractseries.cpp \ |
|
20 | $$PWD/qabstractseries.cpp \ | |
24 | $$PWD/chartbackground.cpp \ |
|
21 | $$PWD/chartbackground.cpp \ | |
25 | $$PWD/chartelement.cpp \ |
|
22 | $$PWD/chartelement.cpp \ | |
26 | $$PWD/chartitem.cpp \ |
|
23 | $$PWD/chartitem.cpp \ | |
27 | $$PWD/scroller.cpp \ |
|
24 | $$PWD/scroller.cpp \ | |
28 | $$PWD/charttitle.cpp \ |
|
25 | $$PWD/charttitle.cpp \ | |
29 | $$PWD/qpolarchart.cpp |
|
26 | $$PWD/qpolarchart.cpp | |
30 |
|
27 | |||
31 | contains(QT_CONFIG, opengl): SOURCES += $$PWD/glwidget.cpp |
|
28 | contains(QT_CONFIG, opengl): SOURCES += $$PWD/glwidget.cpp | |
32 |
|
29 | |||
33 | PRIVATE_HEADERS += \ |
|
30 | PRIVATE_HEADERS += \ | |
34 | $$PWD/chartdataset_p.h \ |
|
31 | $$PWD/chartdataset_p.h \ | |
35 | $$PWD/chartitem_p.h \ |
|
32 | $$PWD/chartitem_p.h \ | |
36 | $$PWD/chartpresenter_p.h \ |
|
33 | $$PWD/chartpresenter_p.h \ | |
37 | $$PWD/chartthememanager_p.h \ |
|
34 | $$PWD/chartthememanager_p.h \ | |
38 | $$PWD/chartbackground_p.h \ |
|
35 | $$PWD/chartbackground_p.h \ | |
39 | $$PWD/chartelement_p.h \ |
|
36 | $$PWD/chartelement_p.h \ | |
40 | $$PWD/chartconfig_p.h \ |
|
37 | $$PWD/chartconfig_p.h \ | |
41 | $$PWD/qchart_p.h \ |
|
38 | $$PWD/qchart_p.h \ | |
42 | $$PWD/qchartview_p.h \ |
|
39 | $$PWD/qchartview_p.h \ | |
43 | $$PWD/scroller_p.h \ |
|
40 | $$PWD/scroller_p.h \ | |
44 | $$PWD/qabstractseries_p.h \ |
|
41 | $$PWD/qabstractseries_p.h \ | |
45 | $$PWD/charttitle_p.h \ |
|
42 | $$PWD/charttitle_p.h \ | |
46 | $$PWD/charthelpers_p.h |
|
43 | $$PWD/charthelpers_p.h | |
47 |
|
44 | |||
48 | contains(QT_CONFIG, opengl): PRIVATE_HEADERS += $$PWD/glwidget_p.h |
|
45 | contains(QT_CONFIG, opengl): PRIVATE_HEADERS += $$PWD/glwidget_p.h | |
49 |
|
46 | |||
50 | PUBLIC_HEADERS += \ |
|
47 | PUBLIC_HEADERS += \ | |
51 | $$PWD/qchart.h \ |
|
48 | $$PWD/qchart.h \ | |
52 | $$PWD/qchartglobal.h \ |
|
49 | $$PWD/qchartglobal.h \ | |
53 | $$PWD/qabstractseries.h \ |
|
50 | $$PWD/qabstractseries.h \ | |
54 | $$PWD/qchartview.h \ |
|
51 | $$PWD/qchartview.h \ | |
55 | $$PWD/chartsnamespace.h \ |
|
52 | $$PWD/chartsnamespace.h \ | |
56 | $$PWD/qpolarchart.h |
|
53 | $$PWD/qpolarchart.h | |
57 |
|
54 | |||
58 | include($$PWD/animations/animations.pri) |
|
55 | include($$PWD/animations/animations.pri) | |
59 | include($$PWD/areachart/areachart.pri) |
|
56 | include($$PWD/areachart/areachart.pri) | |
60 | include($$PWD/axis/axis.pri) |
|
57 | include($$PWD/axis/axis.pri) | |
61 | include($$PWD/domain/domain.pri) |
|
58 | include($$PWD/domain/domain.pri) | |
62 | include($$PWD/barchart/barchart.pri) |
|
59 | include($$PWD/barchart/barchart.pri) | |
63 | include($$PWD/legend/legend.pri) |
|
60 | include($$PWD/legend/legend.pri) | |
64 | include($$PWD/linechart/linechart.pri) |
|
61 | include($$PWD/linechart/linechart.pri) | |
65 | include($$PWD/piechart/piechart.pri) |
|
62 | include($$PWD/piechart/piechart.pri) | |
66 | include($$PWD/scatterchart/scatter.pri) |
|
63 | include($$PWD/scatterchart/scatter.pri) | |
67 | include($$PWD/splinechart/splinechart.pri) |
|
64 | include($$PWD/splinechart/splinechart.pri) | |
68 | include($$PWD/themes/themes.pri) |
|
65 | include($$PWD/themes/themes.pri) | |
69 | include($$PWD/xychart/xychart.pri) |
|
66 | include($$PWD/xychart/xychart.pri) | |
70 | include($$PWD/layout/layout.pri) |
|
67 | include($$PWD/layout/layout.pri) | |
71 | include($$PWD/boxplotchart/boxplotchart.pri) |
|
68 | include($$PWD/boxplotchart/boxplotchart.pri) | |
72 |
|
69 | |||
73 | HEADERS += $$PUBLIC_HEADERS |
|
70 | HEADERS += $$PUBLIC_HEADERS | |
74 | HEADERS += $$PRIVATE_HEADERS |
|
71 | HEADERS += $$PRIVATE_HEADERS | |
75 | HEADERS += $$THEMES |
|
72 | HEADERS += $$THEMES | |
76 |
|
73 | |||
77 | OTHER_FILES += doc/qtcharts.qdocconf \ |
|
74 | OTHER_FILES += doc/qtcharts.qdocconf \ | |
78 | doc/src/* \ |
|
75 | doc/src/* \ | |
79 | doc/images/* |
|
76 | doc/images/* | |
80 |
|
77 | |||
81 | #Define for unit tests |
|
78 | #Define for unit tests | |
82 | CONFIG(debug, debug|release) { |
|
79 | CONFIG(debug, debug|release) { | |
83 | DEFINES += BUILD_PRIVATE_UNIT_TESTS |
|
80 | DEFINES += BUILD_PRIVATE_UNIT_TESTS | |
84 | } |
|
81 | } | |
85 |
|
82 | |||
86 | msvc { |
|
83 | msvc { | |
87 | # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit |
|
84 | # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit | |
88 | # builds resulting from usage of str::sort |
|
85 | # builds resulting from usage of str::sort | |
89 | QMAKE_CXXFLAGS_WARN_ON += -wd4267 |
|
86 | QMAKE_CXXFLAGS_WARN_ON += -wd4267 | |
90 | } |
|
87 | } | |
91 |
|
88 | |||
92 | win32:!winrt:!wince { |
|
89 | win32:!winrt:!wince { | |
93 | # ChartThemeSystem uses Windows native API |
|
90 | # ChartThemeSystem uses Windows native API | |
94 | LIBS += -luser32 |
|
91 | LIBS += -luser32 | |
95 | } |
|
92 | } | |
96 |
|
93 | |||
97 | load(qt_module) |
|
94 | load(qt_module) |
@@ -1,79 +1,77 | |||||
1 | /****************************************************************************** |
|
1 | /****************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2015 The Qt Company Ltd. |
|
3 | ** Copyright (C) 2015 The Qt Company Ltd. | |
4 | ** Contact: http://www.qt.io/licensing/ |
|
4 | ** Contact: http://www.qt.io/licensing/ | |
5 | ** |
|
5 | ** | |
6 | ** This file is part of the Qt Charts module. |
|
6 | ** This file is part of the Qt Charts module. | |
7 | ** |
|
7 | ** | |
8 | ** $QT_BEGIN_LICENSE:COMM$ |
|
8 | ** $QT_BEGIN_LICENSE:COMM$ | |
9 | ** |
|
9 | ** | |
10 | ** Commercial License Usage |
|
10 | ** Commercial License Usage | |
11 | ** Licensees holding valid commercial Qt licenses may use this file in |
|
11 | ** Licensees holding valid commercial Qt licenses may use this file in | |
12 | ** accordance with the commercial license agreement provided with the |
|
12 | ** accordance with the commercial license agreement provided with the | |
13 | ** Software or, alternatively, in accordance with the terms contained in |
|
13 | ** Software or, alternatively, in accordance with the terms contained in | |
14 | ** a written agreement between you and The Qt Company. For licensing terms |
|
14 | ** a written agreement between you and The Qt Company. For licensing terms | |
15 | ** and conditions see http://www.qt.io/terms-conditions. For further |
|
15 | ** and conditions see http://www.qt.io/terms-conditions. For further | |
16 | ** information use the contact form at http://www.qt.io/contact-us. |
|
16 | ** information use the contact form at http://www.qt.io/contact-us. | |
17 | ** |
|
17 | ** | |
18 | ** $QT_END_LICENSE$ |
|
18 | ** $QT_END_LICENSE$ | |
19 | ** |
|
19 | ** | |
20 | ******************************************************************************/ |
|
20 | ******************************************************************************/ | |
21 |
|
21 | |||
22 | #ifndef QCHARTGLOBAL_H |
|
22 | #ifndef QCHARTGLOBAL_H | |
23 | #define QCHARTGLOBAL_H |
|
23 | #define QCHARTGLOBAL_H | |
24 |
|
24 | |||
25 | #include <QtCore/QtGlobal> |
|
25 | #include <QtCore/QtGlobal> | |
26 |
|
26 | |||
27 | #define QT_CHARTS_VERSION_STR "2.1.1" |
|
27 | #define QT_CHARTS_VERSION_STR "2.1.1" | |
28 | /* |
|
28 | /* | |
29 | QT_CHARTS_VERSION is (major << 16) + (minor << 8) + patch. |
|
29 | QT_CHARTS_VERSION is (major << 16) + (minor << 8) + patch. | |
30 | */ |
|
30 | */ | |
31 | #define QT_CHARTS_VERSION 0x020101 |
|
31 | #define QT_CHARTS_VERSION 0x020101 | |
32 | /* |
|
32 | /* | |
33 | can be used like #if (QT_CHARTS_VERSION >= QT_CHARTS_VERSION_CHECK(1, 1, 0)) |
|
33 | can be used like #if (QT_CHARTS_VERSION >= QT_CHARTS_VERSION_CHECK(1, 1, 0)) | |
34 | */ |
|
34 | */ | |
35 | #define QT_CHARTS_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) |
|
35 | #define QT_CHARTS_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) | |
36 |
|
36 | |||
37 | #if defined(QT_CHARTS_LIBRARY) |
|
37 | #ifndef QT_STATIC | |
38 | # define QT_CHARTS_EXPORT Q_DECL_EXPORT |
|
38 | # if defined(QT_BUILD_CHARTS_LIB) | |
|
39 | # define QT_CHARTS_EXPORT Q_DECL_EXPORT | |||
|
40 | # else | |||
|
41 | # define QT_CHARTS_EXPORT Q_DECL_IMPORT | |||
|
42 | # endif | |||
39 | #else |
|
43 | #else | |
40 |
# define QT_CHARTS_EXPORT |
|
44 | # define QT_CHARTS_EXPORT | |
41 | #endif |
|
45 | #endif | |
42 |
|
46 | |||
43 |
#if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QT_CHARTS_LIB |
|
47 | #if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QT_BUILD_CHARTS_LIB) | |
44 | # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_EXPORT |
|
48 | # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_EXPORT | |
45 |
#elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QT_CHARTS_LIB |
|
49 | #elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QT_BUILD_CHARTS_LIB) | |
46 | # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_IMPORT |
|
50 | # define QT_CHARTS_AUTOTEST_EXPORT Q_DECL_IMPORT | |
47 | #else |
|
51 | #else | |
48 | # define QT_CHARTS_AUTOTEST_EXPORT |
|
52 | # define QT_CHARTS_AUTOTEST_EXPORT | |
49 | #endif |
|
53 | #endif | |
50 |
|
54 | |||
51 | #ifdef QT_CHARTS_STATICLIB |
|
|||
52 | # undef QT_CHARTS_EXPORT |
|
|||
53 | # undef QT_CHARTS_AUTOTEST_EXPORT |
|
|||
54 | # define QT_CHARTS_EXPORT |
|
|||
55 | # define QT_CHARTS_AUTOTEST_EXPORT |
|
|||
56 | #endif |
|
|||
57 |
|
55 | |||
58 | #define QT_CHARTS_NAMESPACE QtCharts |
|
56 | #define QT_CHARTS_NAMESPACE QtCharts | |
59 |
|
57 | |||
60 | #ifdef QT_CHARTS_NAMESPACE |
|
58 | #ifdef QT_CHARTS_NAMESPACE | |
61 | # define QT_CHARTS_BEGIN_NAMESPACE namespace QT_CHARTS_NAMESPACE { |
|
59 | # define QT_CHARTS_BEGIN_NAMESPACE namespace QT_CHARTS_NAMESPACE { | |
62 | # define QT_CHARTS_END_NAMESPACE } |
|
60 | # define QT_CHARTS_END_NAMESPACE } | |
63 | # define QT_CHARTS_USE_NAMESPACE using namespace QT_CHARTS_NAMESPACE; |
|
61 | # define QT_CHARTS_USE_NAMESPACE using namespace QT_CHARTS_NAMESPACE; | |
64 | #else |
|
62 | #else | |
65 | # define QT_CHARTS_BEGIN_NAMESPACE |
|
63 | # define QT_CHARTS_BEGIN_NAMESPACE | |
66 | # define QT_CHARTS_END_NAMESPACE |
|
64 | # define QT_CHARTS_END_NAMESPACE | |
67 | # define QT_CHARTS_USE_NAMESPACE |
|
65 | # define QT_CHARTS_USE_NAMESPACE | |
68 | #endif |
|
66 | #endif | |
69 |
|
67 | |||
70 | /* |
|
68 | /* | |
71 | On Windows min and max conflict with standard macros |
|
69 | On Windows min and max conflict with standard macros | |
72 | */ |
|
70 | */ | |
73 | #ifdef Q_OS_WIN |
|
71 | #ifdef Q_OS_WIN | |
74 | #ifndef NOMINMAX |
|
72 | #ifndef NOMINMAX | |
75 | #define NOMINMAX |
|
73 | #define NOMINMAX | |
76 | #endif |
|
74 | #endif | |
77 | #endif |
|
75 | #endif | |
78 |
|
76 | |||
79 | #endif // QCHARTGLOBAL_H |
|
77 | #endif // QCHARTGLOBAL_H |
General Comments 0
You need to be logged in to leave comments.
Login now