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