|
@@
-1,253
+1,254
|
|
1
|
!include( ../config.pri ):error( "Couldn't find the config.pri file!" )
|
|
1
|
!include( ../config.pri ):error( "Couldn't find the config.pri file!" )
|
|
2
|
|
|
2
|
|
|
3
|
############################# BUILD CONFIG ######################################
|
|
3
|
############################# BUILD CONFIG ######################################
|
|
4
|
|
|
4
|
|
|
5
|
TARGET = $$LIBRARY_NAME
|
|
5
|
TARGET = $$LIBRARY_NAME
|
|
6
|
DESTDIR = $$CHART_BUILD_LIB_DIR
|
|
6
|
DESTDIR = $$CHART_BUILD_LIB_DIR
|
|
7
|
TEMPLATE = lib
|
|
7
|
TEMPLATE = lib
|
|
8
|
QT = core gui
|
|
8
|
QT = core gui
|
|
|
|
|
9
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
9
|
DEFINES += QTCOMMERCIALCHART_LIBRARY
|
|
10
|
DEFINES += QTCOMMERCIALCHART_LIBRARY
|
|
10
|
win32:CONFIG += create_prl
|
|
11
|
win32:CONFIG += create_prl
|
|
11
|
# treat warnings as errors
|
|
12
|
# treat warnings as errors
|
|
12
|
win32-msvc*: {
|
|
13
|
win32-msvc*: {
|
|
13
|
QMAKE_CXXFLAGS += /WX
|
|
14
|
QMAKE_CXXFLAGS += /WX
|
|
14
|
} else {
|
|
15
|
} else {
|
|
15
|
QMAKE_CXXFLAGS += -Werror
|
|
16
|
QMAKE_CXXFLAGS += -Werror
|
|
16
|
}
|
|
17
|
}
|
|
17
|
|
|
18
|
|
|
18
|
unix:{
|
|
19
|
unix:{
|
|
19
|
QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
|
20
|
QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
|
20
|
}
|
|
21
|
}
|
|
21
|
|
|
22
|
|
|
22
|
############################# DEPEDENCES ########################################
|
|
23
|
############################# DEPEDENCES ########################################
|
|
23
|
|
|
24
|
|
|
24
|
win32-msvc*: LIBS += User32.lib
|
|
25
|
win32-msvc*: LIBS += User32.lib
|
|
25
|
LIBS -= -l$$LIBRARY_NAME
|
|
26
|
LIBS -= -l$$LIBRARY_NAME
|
|
26
|
INCLUDEPATH += ../include .
|
|
27
|
INCLUDEPATH += ../include .
|
|
27
|
|
|
28
|
|
|
28
|
############################# SOURCES ##########################################
|
|
29
|
############################# SOURCES ##########################################
|
|
29
|
|
|
30
|
|
|
30
|
SOURCES += \
|
|
31
|
SOURCES += \
|
|
31
|
$$PWD/chartdataset.cpp \
|
|
32
|
$$PWD/chartdataset.cpp \
|
|
32
|
$$PWD/chartpresenter.cpp \
|
|
33
|
$$PWD/chartpresenter.cpp \
|
|
33
|
$$PWD/charttheme.cpp \
|
|
34
|
$$PWD/charttheme.cpp \
|
|
34
|
$$PWD/domain.cpp \
|
|
35
|
$$PWD/domain.cpp \
|
|
35
|
$$PWD/qchart.cpp \
|
|
36
|
$$PWD/qchart.cpp \
|
|
36
|
$$PWD/qchartview.cpp \
|
|
37
|
$$PWD/qchartview.cpp \
|
|
37
|
$$PWD/qabstractseries.cpp \
|
|
38
|
$$PWD/qabstractseries.cpp \
|
|
38
|
$$PWD/chartbackground.cpp \
|
|
39
|
$$PWD/chartbackground.cpp \
|
|
39
|
$$PWD/chartelement.cpp \
|
|
40
|
$$PWD/chartelement.cpp \
|
|
40
|
$$PWD/scroller.cpp \
|
|
41
|
$$PWD/scroller.cpp \
|
|
41
|
$$PWD/chartlayout.cpp \
|
|
42
|
$$PWD/chartlayout.cpp \
|
|
42
|
$$PWD/charttitle.cpp
|
|
43
|
$$PWD/charttitle.cpp
|
|
43
|
PRIVATE_HEADERS += \
|
|
44
|
PRIVATE_HEADERS += \
|
|
44
|
$$PWD/chartdataset_p.h \
|
|
45
|
$$PWD/chartdataset_p.h \
|
|
45
|
$$PWD/chartitem_p.h \
|
|
46
|
$$PWD/chartitem_p.h \
|
|
46
|
$$PWD/chartpresenter_p.h \
|
|
47
|
$$PWD/chartpresenter_p.h \
|
|
47
|
$$PWD/charttheme_p.h \
|
|
48
|
$$PWD/charttheme_p.h \
|
|
48
|
$$PWD/domain_p.h \
|
|
49
|
$$PWD/domain_p.h \
|
|
49
|
$$PWD/chartbackground_p.h \
|
|
50
|
$$PWD/chartbackground_p.h \
|
|
50
|
$$PWD/chartelement_p.h \
|
|
51
|
$$PWD/chartelement_p.h \
|
|
51
|
$$PWD/chartconfig_p.h \
|
|
52
|
$$PWD/chartconfig_p.h \
|
|
52
|
$$PWD/qchart_p.h \
|
|
53
|
$$PWD/qchart_p.h \
|
|
53
|
$$PWD/qchartview_p.h \
|
|
54
|
$$PWD/qchartview_p.h \
|
|
54
|
$$PWD/scroller_p.h \
|
|
55
|
$$PWD/scroller_p.h \
|
|
55
|
$$PWD/qabstractseries_p.h \
|
|
56
|
$$PWD/qabstractseries_p.h \
|
|
56
|
$$PWD/chartlayout_p.h \
|
|
57
|
$$PWD/chartlayout_p.h \
|
|
57
|
$$PWD/charttitle_p.h
|
|
58
|
$$PWD/charttitle_p.h
|
|
58
|
PUBLIC_HEADERS += \
|
|
59
|
PUBLIC_HEADERS += \
|
|
59
|
$$PWD/qchart.h \
|
|
60
|
$$PWD/qchart.h \
|
|
60
|
$$PWD/qchartglobal.h \
|
|
61
|
$$PWD/qchartglobal.h \
|
|
61
|
$$PWD/qabstractseries.h \
|
|
62
|
$$PWD/qabstractseries.h \
|
|
62
|
$$PWD/qchartview.h \
|
|
63
|
$$PWD/qchartview.h \
|
|
63
|
$$PWD/chartsnamespace.h
|
|
64
|
$$PWD/chartsnamespace.h
|
|
64
|
|
|
65
|
|
|
65
|
include(animations/animations.pri)
|
|
66
|
include(animations/animations.pri)
|
|
66
|
include(areachart/areachart.pri)
|
|
67
|
include(areachart/areachart.pri)
|
|
67
|
include(axis/axis.pri)
|
|
68
|
include(axis/axis.pri)
|
|
68
|
include(barchart/barchart.pri)
|
|
69
|
include(barchart/barchart.pri)
|
|
69
|
include(legend/legend.pri)
|
|
70
|
include(legend/legend.pri)
|
|
70
|
include(linechart/linechart.pri)
|
|
71
|
include(linechart/linechart.pri)
|
|
71
|
include(piechart/piechart.pri)
|
|
72
|
include(piechart/piechart.pri)
|
|
72
|
include(scatterchart/scatter.pri)
|
|
73
|
include(scatterchart/scatter.pri)
|
|
73
|
include(splinechart/splinechart.pri)
|
|
74
|
include(splinechart/splinechart.pri)
|
|
74
|
include(themes/themes.pri)
|
|
75
|
include(themes/themes.pri)
|
|
75
|
include(xychart/xychart.pri)
|
|
76
|
include(xychart/xychart.pri)
|
|
76
|
|
|
77
|
|
|
77
|
HEADERS += $$PUBLIC_HEADERS
|
|
78
|
HEADERS += $$PUBLIC_HEADERS
|
|
78
|
HEADERS += $$PRIVATE_HEADERS
|
|
79
|
HEADERS += $$PRIVATE_HEADERS
|
|
79
|
HEADERS += $$THEMES
|
|
80
|
HEADERS += $$THEMES
|
|
80
|
|
|
81
|
|
|
81
|
############################# BUILD PATH ##########################################
|
|
82
|
############################# BUILD PATH ##########################################
|
|
82
|
|
|
83
|
|
|
83
|
OBJECTS_DIR = $$CHART_BUILD_DIR/lib
|
|
84
|
OBJECTS_DIR = $$CHART_BUILD_DIR/lib
|
|
84
|
MOC_DIR = $$CHART_BUILD_DIR/lib
|
|
85
|
MOC_DIR = $$CHART_BUILD_DIR/lib
|
|
85
|
UI_DIR = $$CHART_BUILD_DIR/lib
|
|
86
|
UI_DIR = $$CHART_BUILD_DIR/lib
|
|
86
|
RCC_DIR = $$CHART_BUILD_DIR/lib
|
|
87
|
RCC_DIR = $$CHART_BUILD_DIR/lib
|
|
87
|
|
|
88
|
|
|
88
|
############################# PUBLIC HEADERS GENERATOR ##########################################
|
|
89
|
############################# PUBLIC HEADERS GENERATOR ##########################################
|
|
89
|
|
|
90
|
|
|
90
|
!exists($$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal)
|
|
91
|
!exists($$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal)
|
|
91
|
{
|
|
92
|
{
|
|
92
|
system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR)
|
|
93
|
system($$QMAKE_MKDIR $$CHART_BUILD_PUBLIC_HEADER_DIR)
|
|
93
|
win32:{
|
|
94
|
win32:{
|
|
94
|
command = "echo $${LITERAL_HASH}include \"qchartglobal.h\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal"
|
|
95
|
command = "echo $${LITERAL_HASH}include \"qchartglobal.h\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal"
|
|
95
|
}else{
|
|
96
|
}else{
|
|
96
|
command = "echo \"$${LITERAL_HASH}include \\\"qchartglobal.h\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal"
|
|
97
|
command = "echo \"$${LITERAL_HASH}include \\\"qchartglobal.h\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal"
|
|
97
|
}
|
|
98
|
}
|
|
98
|
PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal
|
|
99
|
PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/QChartGlobal
|
|
99
|
system($$command)
|
|
100
|
system($$command)
|
|
100
|
}
|
|
101
|
}
|
|
101
|
|
|
102
|
|
|
102
|
for(file, PUBLIC_HEADERS) {
|
|
103
|
for(file, PUBLIC_HEADERS) {
|
|
103
|
name = $$split(file,'/')
|
|
104
|
name = $$split(file,'/')
|
|
104
|
name = $$last(name)
|
|
105
|
name = $$last(name)
|
|
105
|
class = "$$cat($$file)"
|
|
106
|
class = "$$cat($$file)"
|
|
106
|
class = $$find(class,class)
|
|
107
|
class = $$find(class,class)
|
|
107
|
!isEmpty(class){
|
|
108
|
!isEmpty(class){
|
|
108
|
class = $$split(class,QTCOMMERCIALCHART_EXPORT)
|
|
109
|
class = $$split(class,QTCOMMERCIALCHART_EXPORT)
|
|
109
|
class = $$member(class,1)
|
|
110
|
class = $$member(class,1)
|
|
110
|
class = $$split(class,' ')
|
|
111
|
class = $$split(class,' ')
|
|
111
|
class = $$replace(class,' ','')
|
|
112
|
class = $$replace(class,' ','')
|
|
112
|
class = $$member(class,0)
|
|
113
|
class = $$member(class,0)
|
|
113
|
win32:{
|
|
114
|
win32:{
|
|
114
|
command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
|
|
115
|
command = "echo $${LITERAL_HASH}include \"$$name\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
|
|
115
|
}else{
|
|
116
|
}else{
|
|
116
|
command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
|
|
117
|
command = "echo \"$${LITERAL_HASH}include \\\"$$name\\\"\" > $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class"
|
|
117
|
}
|
|
118
|
}
|
|
118
|
PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class
|
|
119
|
PUBLIC_QT_HEADERS += $$CHART_BUILD_PUBLIC_HEADER_DIR/$$class
|
|
119
|
system($$command)
|
|
120
|
system($$command)
|
|
120
|
}
|
|
121
|
}
|
|
121
|
}
|
|
122
|
}
|
|
122
|
|
|
123
|
|
|
123
|
############################# INSTALLERS ##########################################
|
|
124
|
############################# INSTALLERS ##########################################
|
|
124
|
|
|
125
|
|
|
125
|
public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart
|
|
126
|
public_headers.path = $$[QT_INSTALL_HEADERS]/QtCommercialChart
|
|
126
|
public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS
|
|
127
|
public_headers.files = $$PUBLIC_HEADERS $$PUBLIC_QT_HEADERS
|
|
127
|
INSTALLS += public_headers
|
|
128
|
INSTALLS += public_headers
|
|
128
|
|
|
129
|
|
|
129
|
install_build_public_headers.name = build_public_headers
|
|
130
|
install_build_public_headers.name = build_public_headers
|
|
130
|
install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h
|
|
131
|
install_build_public_headers.output = $$CHART_BUILD_PUBLIC_HEADER_DIR/${QMAKE_FILE_BASE}.h
|
|
131
|
install_build_public_headers.input = PUBLIC_HEADERS
|
|
132
|
install_build_public_headers.input = PUBLIC_HEADERS
|
|
132
|
install_build_public_headers.commands = $$QMAKE_COPY \
|
|
133
|
install_build_public_headers.commands = $$QMAKE_COPY \
|
|
133
|
${QMAKE_FILE_NAME} \
|
|
134
|
${QMAKE_FILE_NAME} \
|
|
134
|
$$CHART_BUILD_PUBLIC_HEADER_DIR
|
|
135
|
$$CHART_BUILD_PUBLIC_HEADER_DIR
|
|
135
|
install_build_public_headers.CONFIG += target_predeps \
|
|
136
|
install_build_public_headers.CONFIG += target_predeps \
|
|
136
|
no_link
|
|
137
|
no_link
|
|
137
|
|
|
138
|
|
|
138
|
install_build_private_headers.name = build_private_headers
|
|
139
|
install_build_private_headers.name = build_private_headers
|
|
139
|
install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h
|
|
140
|
install_build_private_headers.output = $$CHART_BUILD_PRIVATE_HEADER_DIR/${QMAKE_FILE_BASE}.h
|
|
140
|
install_build_private_headers.input = PRIVATE_HEADERS
|
|
141
|
install_build_private_headers.input = PRIVATE_HEADERS
|
|
141
|
install_build_private_headers.commands = $$QMAKE_COPY \
|
|
142
|
install_build_private_headers.commands = $$QMAKE_COPY \
|
|
142
|
${QMAKE_FILE_NAME} \
|
|
143
|
${QMAKE_FILE_NAME} \
|
|
143
|
$$CHART_BUILD_PRIVATE_HEADER_DIR
|
|
144
|
$$CHART_BUILD_PRIVATE_HEADER_DIR
|
|
144
|
install_build_private_headers.CONFIG += target_predeps \
|
|
145
|
install_build_private_headers.CONFIG += target_predeps \
|
|
145
|
no_link
|
|
146
|
no_link
|
|
146
|
|
|
147
|
|
|
147
|
QMAKE_EXTRA_COMPILERS += install_build_public_headers \
|
|
148
|
QMAKE_EXTRA_COMPILERS += install_build_public_headers \
|
|
148
|
install_build_private_headers \
|
|
149
|
install_build_private_headers \
|
|
149
|
|
|
150
|
|
|
150
|
win32:{
|
|
151
|
win32:{
|
|
151
|
bintarget.CONFIG += no_check_exist
|
|
152
|
bintarget.CONFIG += no_check_exist
|
|
152
|
!staticlib: {
|
|
153
|
!staticlib: {
|
|
153
|
bintarget.files += $$CHART_BUILD_LIB_DIR\\$${TARGET}.dll
|
|
154
|
bintarget.files += $$CHART_BUILD_LIB_DIR\\$${TARGET}.dll
|
|
154
|
}
|
|
155
|
}
|
|
155
|
win32-msvc*:CONFIG(debug, debug|release): {
|
|
156
|
win32-msvc*:CONFIG(debug, debug|release): {
|
|
156
|
bintarget.files += $$CHART_BUILD_LIB_DIR\\$${TARGET}.pdb
|
|
157
|
bintarget.files += $$CHART_BUILD_LIB_DIR\\$${TARGET}.pdb
|
|
157
|
}
|
|
158
|
}
|
|
158
|
bintarget.path = $$[QT_INSTALL_BINS]
|
|
159
|
bintarget.path = $$[QT_INSTALL_BINS]
|
|
159
|
|
|
160
|
|
|
160
|
libtarget.CONFIG += no_check_exist
|
|
161
|
libtarget.CONFIG += no_check_exist
|
|
161
|
libtarget.files = $$CHART_BUILD_LIB_DIR\\$${TARGET}.prl
|
|
162
|
libtarget.files = $$CHART_BUILD_LIB_DIR\\$${TARGET}.prl
|
|
162
|
win32-msvc*: {
|
|
163
|
win32-msvc*: {
|
|
163
|
libtarget.files += $$CHART_BUILD_LIB_DIR\\$${TARGET}.lib
|
|
164
|
libtarget.files += $$CHART_BUILD_LIB_DIR\\$${TARGET}.lib
|
|
164
|
} else {
|
|
165
|
} else {
|
|
165
|
libtarget.files += $$CHART_BUILD_LIB_DIR\\lib$${TARGET}.a
|
|
166
|
libtarget.files += $$CHART_BUILD_LIB_DIR\\lib$${TARGET}.a
|
|
166
|
}
|
|
167
|
}
|
|
167
|
libtarget.path = $$[QT_INSTALL_LIBS]
|
|
168
|
libtarget.path = $$[QT_INSTALL_LIBS]
|
|
168
|
|
|
169
|
|
|
169
|
DLLDESTDIR = $$CHART_BUILD_BIN_DIR
|
|
170
|
DLLDESTDIR = $$CHART_BUILD_BIN_DIR
|
|
170
|
INSTALLS += bintarget libtarget
|
|
171
|
INSTALLS += bintarget libtarget
|
|
171
|
}else{
|
|
172
|
}else{
|
|
172
|
target.path=$$[QT_INSTALL_LIBS]
|
|
173
|
target.path=$$[QT_INSTALL_LIBS]
|
|
173
|
INSTALLS += target
|
|
174
|
INSTALLS += target
|
|
174
|
}
|
|
175
|
}
|
|
175
|
|
|
176
|
|
|
176
|
mac: !staticlib: {
|
|
177
|
mac: !staticlib: {
|
|
177
|
# Update the name (id) of the library on OSX to point to the lib path
|
|
178
|
# Update the name (id) of the library on OSX to point to the lib path
|
|
178
|
MAC_CHARTS_LIB_NAME = "lib"$$LIBRARY_NAME".1.dylib"
|
|
179
|
MAC_CHARTS_LIB_NAME = "lib"$$LIBRARY_NAME".1.dylib"
|
|
179
|
QMAKE_POST_LINK += "install_name_tool -id $$CHART_BUILD_LIB_DIR"/"$$MAC_CHARTS_LIB_NAME $$CHART_BUILD_LIB_DIR"/"$$MAC_CHARTS_LIB_NAME"
|
|
180
|
QMAKE_POST_LINK += "install_name_tool -id $$CHART_BUILD_LIB_DIR"/"$$MAC_CHARTS_LIB_NAME $$CHART_BUILD_LIB_DIR"/"$$MAC_CHARTS_LIB_NAME"
|
|
180
|
|
|
181
|
|
|
181
|
# Update the name (id) of the installed library on OSX to point to the installation path
|
|
182
|
# Update the name (id) of the installed library on OSX to point to the installation path
|
|
182
|
postinstall.path = $$[QT_INSTALL_LIBS]
|
|
183
|
postinstall.path = $$[QT_INSTALL_LIBS]
|
|
183
|
postinstall.extra = "install_name_tool -id $$[QT_INSTALL_LIBS]"/"$$MAC_CHARTS_LIB_NAME $$[QT_INSTALL_LIBS]"/"$$MAC_CHARTS_LIB_NAME"
|
|
184
|
postinstall.extra = "install_name_tool -id $$[QT_INSTALL_LIBS]"/"$$MAC_CHARTS_LIB_NAME $$[QT_INSTALL_LIBS]"/"$$MAC_CHARTS_LIB_NAME"
|
|
184
|
INSTALLS += postinstall
|
|
185
|
INSTALLS += postinstall
|
|
185
|
}
|
|
186
|
}
|
|
186
|
|
|
187
|
|
|
187
|
################################ DEVELOPMENT BUILD ##########################################
|
|
188
|
################################ DEVELOPMENT BUILD ##########################################
|
|
188
|
# There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly.
|
|
189
|
# There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly.
|
|
189
|
# This is the case at least with shadow builds.
|
|
190
|
# This is the case at least with shadow builds.
|
|
190
|
# http://qt-project.org/wiki/jom
|
|
191
|
# http://qt-project.org/wiki/jom
|
|
191
|
|
|
192
|
|
|
192
|
development_build:!win32-msvc*:{
|
|
193
|
development_build:!win32-msvc*:{
|
|
193
|
chartversion.target = $$PWD/qchartversion_p.h
|
|
194
|
chartversion.target = $$PWD/qchartversion_p.h
|
|
194
|
|
|
195
|
|
|
195
|
unix:{
|
|
196
|
unix:{
|
|
196
|
chartversion.commands = @echo \
|
|
197
|
chartversion.commands = @echo \
|
|
197
|
\" $${LITERAL_HASH}ifndef QCHARTVERSION_P_H\\n\
|
|
198
|
\" $${LITERAL_HASH}ifndef QCHARTVERSION_P_H\\n\
|
|
198
|
$${LITERAL_HASH}define QCHARTVERSION_P_H\\n\
|
|
199
|
$${LITERAL_HASH}define QCHARTVERSION_P_H\\n\
|
|
199
|
const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" ; \\n\
|
|
200
|
const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" ; \\n\
|
|
200
|
const char *gitHead = \\\"`git rev-parse HEAD`\\\" ; \\n \
|
|
201
|
const char *gitHead = \\\"`git rev-parse HEAD`\\\" ; \\n \
|
|
201
|
$${LITERAL_HASH}endif \" \
|
|
202
|
$${LITERAL_HASH}endif \" \
|
|
202
|
> \
|
|
203
|
> \
|
|
203
|
$$chartversion.target;
|
|
204
|
$$chartversion.target;
|
|
204
|
}else{
|
|
205
|
}else{
|
|
205
|
chartversion.commands = @echo \
|
|
206
|
chartversion.commands = @echo \
|
|
206
|
"const char *buildTime = \"%date%_%time%\" ; \
|
|
207
|
"const char *buildTime = \"%date%_%time%\" ; \
|
|
207
|
const char *gitHead = \"unknown\" ; " \
|
|
208
|
const char *gitHead = \"unknown\" ; " \
|
|
208
|
> \
|
|
209
|
> \
|
|
209
|
$$chartversion.target
|
|
210
|
$$chartversion.target
|
|
210
|
}
|
|
211
|
}
|
|
211
|
|
|
212
|
|
|
212
|
chartversion.depends = $$HEADERS \
|
|
213
|
chartversion.depends = $$HEADERS \
|
|
213
|
$$SOURCES
|
|
214
|
$$SOURCES
|
|
214
|
|
|
215
|
|
|
215
|
PRE_TARGETDEPS += $$chartversion.target
|
|
216
|
PRE_TARGETDEPS += $$chartversion.target
|
|
216
|
QMAKE_CLEAN += $$PWD/qchartversion_p.h
|
|
217
|
QMAKE_CLEAN += $$PWD/qchartversion_p.h
|
|
217
|
QMAKE_EXTRA_TARGETS += chartversion
|
|
218
|
QMAKE_EXTRA_TARGETS += chartversion
|
|
218
|
}
|
|
219
|
}
|
|
219
|
|
|
220
|
|
|
220
|
############################### CLEAN ###########################################
|
|
221
|
############################### CLEAN ###########################################
|
|
221
|
|
|
222
|
|
|
222
|
unix:QMAKE_DISTCLEAN += -r \
|
|
223
|
unix:QMAKE_DISTCLEAN += -r \
|
|
223
|
$$CHART_BUILD_HEADER_DIR \
|
|
224
|
$$CHART_BUILD_HEADER_DIR \
|
|
224
|
$$CHART_BUILD_LIB_DIR
|
|
225
|
$$CHART_BUILD_LIB_DIR
|
|
225
|
win32:QMAKE_DISTCLEAN += /Q \
|
|
226
|
win32:QMAKE_DISTCLEAN += /Q \
|
|
226
|
$$CHART_BUILD_HEADER_DIR \
|
|
227
|
$$CHART_BUILD_HEADER_DIR \
|
|
227
|
$$CHART_BUILD_LIB_DIR
|
|
228
|
$$CHART_BUILD_LIB_DIR
|
|
228
|
|
|
229
|
|
|
229
|
############################## COVERAGE #########################################
|
|
230
|
############################## COVERAGE #########################################
|
|
230
|
|
|
231
|
|
|
231
|
unix:coverage:{
|
|
232
|
unix:coverage:{
|
|
232
|
|
|
233
|
|
|
233
|
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
|
|
234
|
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
|
|
234
|
QMAKE_LDFLAGS += -fprofile-arcs -ftest-coverage
|
|
235
|
QMAKE_LDFLAGS += -fprofile-arcs -ftest-coverage
|
|
235
|
|
|
236
|
|
|
236
|
LIBS += -lgcov
|
|
237
|
LIBS += -lgcov
|
|
237
|
|
|
238
|
|
|
238
|
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcda $$OBJECTS_DIR/*.gcno $$PWD/*.gcov ../coverage/*.info
|
|
239
|
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcda $$OBJECTS_DIR/*.gcno $$PWD/*.gcov ../coverage/*.info
|
|
239
|
QMAKE_EXTRA_TARGETS += preparecoverage gencoverage
|
|
240
|
QMAKE_EXTRA_TARGETS += preparecoverage gencoverage
|
|
240
|
|
|
241
|
|
|
241
|
preparecoverage.target = prepare_coverage
|
|
242
|
preparecoverage.target = prepare_coverage
|
|
242
|
preparecoverage.depends = all
|
|
243
|
preparecoverage.depends = all
|
|
243
|
preparecoverage.commands = lcov --directory $$OBJECTS_DIR --zerocounters ;\
|
|
244
|
preparecoverage.commands = lcov --directory $$OBJECTS_DIR --zerocounters ;\
|
|
244
|
lcov -i -d $$OBJECTS_DIR -c -o ../coverage/base.info -b $$PWD;
|
|
245
|
lcov -i -d $$OBJECTS_DIR -c -o ../coverage/base.info -b $$PWD;
|
|
245
|
|
|
246
|
|
|
246
|
gencoverage.target = gen_coverage
|
|
247
|
gencoverage.target = gen_coverage
|
|
247
|
gencoverage.depends = all
|
|
248
|
gencoverage.depends = all
|
|
248
|
gencoverage.commands = lcov -d $$OBJECTS_DIR -c -o ../coverage/src.info -b $$PWD;\
|
|
249
|
gencoverage.commands = lcov -d $$OBJECTS_DIR -c -o ../coverage/src.info -b $$PWD;\
|
|
249
|
lcov -e ../coverage/base.info $$PWD/* $$PWD/animations/* $$PWD/areachart/* $$PWD/axis/* $$PWD/barchart/* $$PWD/legend/* $$PWD/linechart/* $$PWD/piechart/* $$PWD/scatterchart/* $$PWD/splinechart/* $$PWD/themes/* $$PWD/xychart/* -o ../coverage/base.info;\
|
|
250
|
lcov -e ../coverage/base.info $$PWD/* $$PWD/animations/* $$PWD/areachart/* $$PWD/axis/* $$PWD/barchart/* $$PWD/legend/* $$PWD/linechart/* $$PWD/piechart/* $$PWD/scatterchart/* $$PWD/splinechart/* $$PWD/themes/* $$PWD/xychart/* -o ../coverage/base.info;\
|
|
250
|
lcov -e ../coverage/src.info $$PWD/* $$PWD/animations/* $$PWD/areachart/* $$PWD/axis/* $$PWD/barchart/* $$PWD/legend/* $$PWD/linechart/* $$PWD/piechart/* $$PWD/scatterchart/* $$PWD/splinechart/* $$PWD/themes/* $$PWD/xychart/* -o ../coverage/src.info;\
|
|
251
|
lcov -e ../coverage/src.info $$PWD/* $$PWD/animations/* $$PWD/areachart/* $$PWD/axis/* $$PWD/barchart/* $$PWD/legend/* $$PWD/linechart/* $$PWD/piechart/* $$PWD/scatterchart/* $$PWD/splinechart/* $$PWD/themes/* $$PWD/xychart/* -o ../coverage/src.info;\
|
|
251
|
lcov -a ../coverage/base.info -a ../coverage/src.info -o ../coverage/coverage.info;
|
|
252
|
lcov -a ../coverage/base.info -a ../coverage/src.info -o ../coverage/coverage.info;
|
|
252
|
}
|
|
253
|
}
|
|
253
|
|
|
254
|
|