##// END OF EJS Templates
don't duplicate functionality from various .prf files...
Oswald Buddenhagen -
r2889:114240385752
parent child
Show More
@@ -1,99 +1,97
1 1 ############################# BUILD CONFIG ######################################
2 2
3 3 TARGET = QtCharts
4 4
5 5 QT = core gui widgets
6 6 DEFINES += QT_CHARTS_LIBRARY
7 7 # Fix exports in static builds for applications linking charts module
8 8 static: MODULE_DEFINES += QT_CHARTS_STATICLIB
9 9
10 MODULE_INCNAME = QtCharts
11
12 10 QMAKE_DOCS = $$PWD/doc/qtcharts.qdocconf
13 11
14 12 QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)"
15 13 QMAKE_TARGET_DESCRIPTION = "Charts component for Qt."
16 14
17 15 ############################# SOURCES ##########################################
18 16
19 17 SOURCES += \
20 18 $$PWD/chartdataset.cpp \
21 19 $$PWD/chartpresenter.cpp \
22 20 $$PWD/chartthememanager.cpp \
23 21 $$PWD/qchart.cpp \
24 22 $$PWD/qchartview.cpp \
25 23 $$PWD/qabstractseries.cpp \
26 24 $$PWD/chartbackground.cpp \
27 25 $$PWD/chartelement.cpp \
28 26 $$PWD/chartitem.cpp \
29 27 $$PWD/scroller.cpp \
30 28 $$PWD/charttitle.cpp \
31 29 $$PWD/qpolarchart.cpp
32 30
33 31 contains(QT_CONFIG, opengl): SOURCES += $$PWD/glwidget.cpp
34 32
35 33 PRIVATE_HEADERS += \
36 34 $$PWD/chartdataset_p.h \
37 35 $$PWD/chartitem_p.h \
38 36 $$PWD/chartpresenter_p.h \
39 37 $$PWD/chartthememanager_p.h \
40 38 $$PWD/chartbackground_p.h \
41 39 $$PWD/chartelement_p.h \
42 40 $$PWD/chartconfig_p.h \
43 41 $$PWD/qchart_p.h \
44 42 $$PWD/qchartview_p.h \
45 43 $$PWD/scroller_p.h \
46 44 $$PWD/qabstractseries_p.h \
47 45 $$PWD/charttitle_p.h \
48 46 $$PWD/charthelpers_p.h
49 47
50 48 contains(QT_CONFIG, opengl): PRIVATE_HEADERS += $$PWD/glwidget_p.h
51 49
52 50 PUBLIC_HEADERS += \
53 51 $$PWD/qchart.h \
54 52 $$PWD/qchartglobal.h \
55 53 $$PWD/qabstractseries.h \
56 54 $$PWD/qchartview.h \
57 55 $$PWD/chartsnamespace.h \
58 56 $$PWD/qpolarchart.h
59 57
60 58 include($$PWD/animations/animations.pri)
61 59 include($$PWD/areachart/areachart.pri)
62 60 include($$PWD/axis/axis.pri)
63 61 include($$PWD/domain/domain.pri)
64 62 include($$PWD/barchart/barchart.pri)
65 63 include($$PWD/legend/legend.pri)
66 64 include($$PWD/linechart/linechart.pri)
67 65 include($$PWD/piechart/piechart.pri)
68 66 include($$PWD/scatterchart/scatter.pri)
69 67 include($$PWD/splinechart/splinechart.pri)
70 68 include($$PWD/themes/themes.pri)
71 69 include($$PWD/xychart/xychart.pri)
72 70 include($$PWD/layout/layout.pri)
73 71 include($$PWD/boxplotchart/boxplotchart.pri)
74 72
75 73 HEADERS += $$PUBLIC_HEADERS
76 74 HEADERS += $$PRIVATE_HEADERS
77 75 HEADERS += $$THEMES
78 76
79 77 OTHER_FILES += doc/qtcharts.qdocconf \
80 78 doc/src/* \
81 79 doc/images/*
82 80
83 81 #Define for unit tests
84 82 CONFIG(debug, debug|release) {
85 83 DEFINES += BUILD_PRIVATE_UNIT_TESTS
86 84 }
87 85
88 86 msvc {
89 87 # Suppress "conversion from 'size_t' to 'int', possible loss of data" warnings in 64bit
90 88 # builds resulting from usage of str::sort
91 89 QMAKE_CXXFLAGS_WARN_ON += -wd4267
92 90 }
93 91
94 92 win32:!winrt:!wince {
95 93 # ChartThemeSystem uses Windows native API
96 94 LIBS += -luser32
97 95 }
98 96
99 97 load(qt_module)
@@ -1,62 +1,55
1 1
2 2 TARGET = qtchartsqml2
3 3 CXX_MODULE = charts
4 4
5 5 QT += qml quick
6 6 QT += charts charts-private
7 7
8 8 # Only build qml plugin static if Qt itself is also built static
9 9 !contains(QT_CONFIG, static): CONFIG -= static staticlib
10 10
11 11 include($$PWD/designer/designer.pri)
12 12
13 13 SOURCES += \
14 14 chartsqml2_plugin.cpp \
15 15 declarativechart.cpp \
16 16 declarativexypoint.cpp \
17 17 declarativexyseries.cpp \
18 18 declarativelineseries.cpp \
19 19 declarativesplineseries.cpp \
20 20 declarativeareaseries.cpp \
21 21 declarativescatterseries.cpp \
22 22 declarativepieseries.cpp \
23 23 declarativebarseries.cpp \
24 24 declarativecategoryaxis.cpp \
25 25 declarativemargins.cpp \
26 26 declarativeaxes.cpp \
27 27 declarativepolarchart.cpp \
28 28 declarativeboxplotseries.cpp \
29 29 declarativechartnode.cpp \
30 30 declarativerendernode.cpp
31 31
32 32 HEADERS += \
33 33 declarativechart.h \
34 34 declarativexypoint.h \
35 35 declarativexyseries.h \
36 36 declarativelineseries.h \
37 37 declarativesplineseries.h \
38 38 declarativeareaseries.h \
39 39 declarativescatterseries.h \
40 40 declarativepieseries.h \
41 41 declarativebarseries.h \
42 42 declarativecategoryaxis.h \
43 43 declarativemargins.h \
44 44 declarativeaxes.h \
45 45 declarativepolarchart.h \
46 46 declarativeboxplotseries.h \
47 47 declarativechartnode.h \
48 48 declarativerendernode.h
49 49
50 OTHER_FILES = qmldir
51
52 50 load(qml_plugin)
53 51
54 52 win32 {
55 CONFIG += skip_target_version_ext
56 VERSION = $$MODULE_VERSION
57 53 QMAKE_TARGET_PRODUCT = "Qt Charts (Qt $$QT_VERSION)"
58 54 QMAKE_TARGET_DESCRIPTION = "Charts QML plugin for Qt."
59 55 }
60
61 QML_FILES += \
62 $$PWD/plugins.qmltypes
General Comments 0
You need to be logged in to leave comments. Login now