cbf114c29d
- Top level 'make clean' and 'make distclean' now do not stop in case of errors - 'make distclean' now removes the object_script.* generated files - Added the Logo to the About dialog and also the application icon
17 lines
637 B
Plaintext
17 lines
637 B
Plaintext
APP_VERSION = 0.1
|
|
APP_VERSION_FILE = version.cpp
|
|
revtarget.target = $$APP_VERSION_FILE
|
|
win32:revtarget.commands = echo "const char *version = \"$$APP_VERSION\";" \
|
|
"const char *revision = \"$(shell svnversion .)\";" \
|
|
> $$APP_VERSION_FILE
|
|
unix:revtarget.commands = echo \
|
|
"\"const char *version = \\\"$$APP_VERSION\\\";" \
|
|
"const char *revision = \\\"$(shell svnversion .)\\\";\"" \
|
|
> $$APP_VERSION_FILE
|
|
revtarget.depends = $$SOURCES $$HEADERS $$FORMS $$POST_TARGETDEPS
|
|
|
|
SOURCES += $$APP_VERSION_FILE
|
|
QMAKE_EXTRA_TARGETS += revtarget
|
|
POST_TARGETDEPS += $$APP_VERSION_FILE
|
|
QMAKE_DISTCLEAN += $$APP_VERSION_FILE
|