@@ -22,7 +22,15 | |||
|
22 | 22 | #define CHARTCONFIG_H_ |
|
23 | 23 | |
|
24 | 24 | #include "qchartglobal.h" |
|
25 | #ifdef Q_CC_MSVC | |
|
26 | // There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly. | |
|
27 | // This is the case at least with shadow builds. | |
|
28 | // http://qt-project.org/wiki/jom | |
|
29 | const char *buildTime = __DATE__; | |
|
30 | const char *gitHead = "unknown"; | |
|
31 | #else | |
|
25 | 32 | #include "qchartversion_p.h" |
|
33 | #endif | |
|
26 | 34 | |
|
27 | 35 | |
|
28 | 36 | QTCOMMERCIALCHART_BEGIN_NAMESPACE |
@@ -125,24 +125,36 QMAKE_EXTRA_COMPILERS += install_build_public_headers \ | |||
|
125 | 125 | install_build_private_headers \ |
|
126 | 126 | |
|
127 | 127 | |
|
128 | chartversion.target = $$PWD/qchartversion_p.h | |
|
129 | unix:{ | |
|
130 | chartversion.commands = @echo \ | |
|
131 | "const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" \\; \ | |
|
132 | const char *gitHead = \\\"`git rev-parse HEAD`\\\" \\; " \ | |
|
133 | > \ | |
|
134 | $$chartversion.target; | |
|
135 | }else{ | |
|
136 | chartversion.commands = @echo \ | |
|
137 | "const char *buildTime = \"%date%_%time%\" ; \ | |
|
138 | const char *gitHead = \"unknown\" ; " \ | |
|
139 | > \ | |
|
140 | $$chartversion.target | |
|
128 | !win32-msvc*: { | |
|
129 | ||
|
130 | # There is a problem with jom.exe currently. It does not seem to understand QMAKE_EXTRA_TARGETS properly. | |
|
131 | # This is the case at least with shadow builds. | |
|
132 | # http://qt-project.org/wiki/jom | |
|
133 | ||
|
134 | chartversion.target = $$PWD/qchartversion_p.h | |
|
135 | ||
|
136 | unix:{ | |
|
137 | chartversion.commands = @echo \ | |
|
138 | "const char *buildTime = \\\"`date +'%y%m%d%H%M'`\\\" \\; \ | |
|
139 | const char *gitHead = \\\"`git rev-parse HEAD`\\\" \\; " \ | |
|
140 | > \ | |
|
141 | $$chartversion.target; | |
|
142 | }else{ | |
|
143 | chartversion.commands = @echo \ | |
|
144 | "const char *buildTime = \"%date%_%time%\" ; \ | |
|
145 | const char *gitHead = \"unknown\" ; " \ | |
|
146 | > \ | |
|
147 | $$chartversion.target | |
|
148 | } | |
|
149 | ||
|
150 | chartversion.depends = $$HEADERS \ | |
|
151 | $$SOURCES | |
|
152 | ||
|
153 | PRE_TARGETDEPS += $$PWD/qchartversion_p.h | |
|
154 | QMAKE_CLEAN += $$PWD/qchartversion_p.h | |
|
155 | QMAKE_EXTRA_TARGETS += chartversion | |
|
141 | 156 | } |
|
142 | chartversion.depends = $$HEADERS \ | |
|
143 | $$SOURCES | |
|
144 | PRE_TARGETDEPS += $$PWD/qchartversion_p.h | |
|
145 | QMAKE_EXTRA_TARGETS += chartversion | |
|
157 | ||
|
146 | 158 | unix:QMAKE_DISTCLEAN += -r \ |
|
147 | 159 | $$CHART_BUILD_HEADER_DIR \ |
|
148 | 160 | $$CHART_BUILD_LIB_DIR |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now