@@ -1,99 +1,99 | |||||
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 |
|
6 | DEFINES += QT_CHARTS_LIBRARY | |
7 | # Fix exports in static builds for applications linking charts module |
|
7 | # Fix exports in static builds for applications linking charts module | |
8 | static: MODULE_DEFINES += QT_CHARTS_STATICLIB |
|
8 | static: MODULE_DEFINES += QT_CHARTS_STATICLIB | |
9 |
|
9 | |||
10 | MODULE_INCNAME = QtCharts |
|
10 | MODULE_INCNAME = QtCharts | |
11 |
|
11 | |||
12 | QMAKE_DOCS = $$PWD/doc/qtcharts.qdocconf |
|
12 | QMAKE_DOCS = $$PWD/doc/qtcharts.qdocconf | |
13 |
|
13 | |||
14 | load(qt_module) |
|
|||
15 |
|
||||
16 | QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)" |
|
14 | QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)" | |
17 | QMAKE_TARGET_DESCRIPTION = "Charts component for Qt." |
|
15 | QMAKE_TARGET_DESCRIPTION = "Charts component for Qt." | |
18 |
|
16 | |||
19 | ############################# SOURCES ########################################## |
|
17 | ############################# SOURCES ########################################## | |
20 |
|
18 | |||
21 | SOURCES += \ |
|
19 | SOURCES += \ | |
22 | $$PWD/chartdataset.cpp \ |
|
20 | $$PWD/chartdataset.cpp \ | |
23 | $$PWD/chartpresenter.cpp \ |
|
21 | $$PWD/chartpresenter.cpp \ | |
24 | $$PWD/chartthememanager.cpp \ |
|
22 | $$PWD/chartthememanager.cpp \ | |
25 | $$PWD/qchart.cpp \ |
|
23 | $$PWD/qchart.cpp \ | |
26 | $$PWD/qchartview.cpp \ |
|
24 | $$PWD/qchartview.cpp \ | |
27 | $$PWD/qabstractseries.cpp \ |
|
25 | $$PWD/qabstractseries.cpp \ | |
28 | $$PWD/chartbackground.cpp \ |
|
26 | $$PWD/chartbackground.cpp \ | |
29 | $$PWD/chartelement.cpp \ |
|
27 | $$PWD/chartelement.cpp \ | |
30 | $$PWD/chartitem.cpp \ |
|
28 | $$PWD/chartitem.cpp \ | |
31 | $$PWD/scroller.cpp \ |
|
29 | $$PWD/scroller.cpp \ | |
32 | $$PWD/charttitle.cpp \ |
|
30 | $$PWD/charttitle.cpp \ | |
33 | $$PWD/qpolarchart.cpp |
|
31 | $$PWD/qpolarchart.cpp | |
34 |
|
32 | |||
35 | contains(QT_CONFIG, opengl): SOURCES += $$PWD/glwidget.cpp |
|
33 | contains(QT_CONFIG, opengl): SOURCES += $$PWD/glwidget.cpp | |
36 |
|
34 | |||
37 | PRIVATE_HEADERS += \ |
|
35 | PRIVATE_HEADERS += \ | |
38 | $$PWD/chartdataset_p.h \ |
|
36 | $$PWD/chartdataset_p.h \ | |
39 | $$PWD/chartitem_p.h \ |
|
37 | $$PWD/chartitem_p.h \ | |
40 | $$PWD/chartpresenter_p.h \ |
|
38 | $$PWD/chartpresenter_p.h \ | |
41 | $$PWD/chartthememanager_p.h \ |
|
39 | $$PWD/chartthememanager_p.h \ | |
42 | $$PWD/chartbackground_p.h \ |
|
40 | $$PWD/chartbackground_p.h \ | |
43 | $$PWD/chartelement_p.h \ |
|
41 | $$PWD/chartelement_p.h \ | |
44 | $$PWD/chartconfig_p.h \ |
|
42 | $$PWD/chartconfig_p.h \ | |
45 | $$PWD/qchart_p.h \ |
|
43 | $$PWD/qchart_p.h \ | |
46 | $$PWD/qchartview_p.h \ |
|
44 | $$PWD/qchartview_p.h \ | |
47 | $$PWD/scroller_p.h \ |
|
45 | $$PWD/scroller_p.h \ | |
48 | $$PWD/qabstractseries_p.h \ |
|
46 | $$PWD/qabstractseries_p.h \ | |
49 | $$PWD/charttitle_p.h \ |
|
47 | $$PWD/charttitle_p.h \ | |
50 | $$PWD/charthelpers_p.h |
|
48 | $$PWD/charthelpers_p.h | |
51 |
|
49 | |||
52 | contains(QT_CONFIG, opengl): PRIVATE_HEADERS += $$PWD/glwidget_p.h |
|
50 | contains(QT_CONFIG, opengl): PRIVATE_HEADERS += $$PWD/glwidget_p.h | |
53 |
|
51 | |||
54 | PUBLIC_HEADERS += \ |
|
52 | PUBLIC_HEADERS += \ | |
55 | $$PWD/qchart.h \ |
|
53 | $$PWD/qchart.h \ | |
56 | $$PWD/qchartglobal.h \ |
|
54 | $$PWD/qchartglobal.h \ | |
57 | $$PWD/qabstractseries.h \ |
|
55 | $$PWD/qabstractseries.h \ | |
58 | $$PWD/qchartview.h \ |
|
56 | $$PWD/qchartview.h \ | |
59 | $$PWD/chartsnamespace.h \ |
|
57 | $$PWD/chartsnamespace.h \ | |
60 | $$PWD/qpolarchart.h |
|
58 | $$PWD/qpolarchart.h | |
61 |
|
59 | |||
62 | include($$PWD/animations/animations.pri) |
|
60 | include($$PWD/animations/animations.pri) | |
63 | include($$PWD/areachart/areachart.pri) |
|
61 | include($$PWD/areachart/areachart.pri) | |
64 | include($$PWD/axis/axis.pri) |
|
62 | include($$PWD/axis/axis.pri) | |
65 | include($$PWD/domain/domain.pri) |
|
63 | include($$PWD/domain/domain.pri) | |
66 | include($$PWD/barchart/barchart.pri) |
|
64 | include($$PWD/barchart/barchart.pri) | |
67 | include($$PWD/legend/legend.pri) |
|
65 | include($$PWD/legend/legend.pri) | |
68 | include($$PWD/linechart/linechart.pri) |
|
66 | include($$PWD/linechart/linechart.pri) | |
69 | include($$PWD/piechart/piechart.pri) |
|
67 | include($$PWD/piechart/piechart.pri) | |
70 | include($$PWD/scatterchart/scatter.pri) |
|
68 | include($$PWD/scatterchart/scatter.pri) | |
71 | include($$PWD/splinechart/splinechart.pri) |
|
69 | include($$PWD/splinechart/splinechart.pri) | |
72 | include($$PWD/themes/themes.pri) |
|
70 | include($$PWD/themes/themes.pri) | |
73 | include($$PWD/xychart/xychart.pri) |
|
71 | include($$PWD/xychart/xychart.pri) | |
74 | include($$PWD/layout/layout.pri) |
|
72 | include($$PWD/layout/layout.pri) | |
75 | include($$PWD/boxplotchart/boxplotchart.pri) |
|
73 | include($$PWD/boxplotchart/boxplotchart.pri) | |
76 |
|
74 | |||
77 | HEADERS += $$PUBLIC_HEADERS |
|
75 | HEADERS += $$PUBLIC_HEADERS | |
78 | HEADERS += $$PRIVATE_HEADERS |
|
76 | HEADERS += $$PRIVATE_HEADERS | |
79 | HEADERS += $$THEMES |
|
77 | HEADERS += $$THEMES | |
80 |
|
78 | |||
81 | OTHER_FILES += doc/qtcharts.qdocconf \ |
|
79 | OTHER_FILES += doc/qtcharts.qdocconf \ | |
82 | doc/src/* \ |
|
80 | doc/src/* \ | |
83 | doc/images/* |
|
81 | doc/images/* | |
84 |
|
82 | |||
85 | #Define for unit tests |
|
83 | #Define for unit tests | |
86 | CONFIG(debug, debug|release) { |
|
84 | CONFIG(debug, debug|release) { | |
87 | DEFINES += BUILD_PRIVATE_UNIT_TESTS |
|
85 | DEFINES += BUILD_PRIVATE_UNIT_TESTS | |
88 | } |
|
86 | } | |
89 |
|
87 | |||
90 | msvc { |
|
88 | msvc { | |
91 | # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit |
|
89 | # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit | |
92 | # builds resulting from usage of str::sort |
|
90 | # builds resulting from usage of str::sort | |
93 | QMAKE_CXXFLAGS_WARN_ON += -wd4267 |
|
91 | QMAKE_CXXFLAGS_WARN_ON += -wd4267 | |
94 | } |
|
92 | } | |
95 |
|
93 | |||
96 | win32:!winrt:!wince { |
|
94 | win32:!winrt:!wince { | |
97 | # ChartThemeSystem uses Windows native API |
|
95 | # ChartThemeSystem uses Windows native API | |
98 | LIBS += -luser32 |
|
96 | LIBS += -luser32 | |
99 | } |
|
97 | } | |
|
98 | ||||
|
99 | load(qt_module) |
General Comments 0
You need to be logged in to leave comments.
Login now