Mercurial > hg > tony
comparison main/main.cpp @ 587:2090dd9bfbc1
Windows build updates
author | Chris Cannam |
---|---|
date | Wed, 04 Sep 2019 17:34:28 +0100 |
parents | f52766aa747b |
children | 164fa1ee2642 |
comparison
equal
deleted
inserted
replaced
586:1dfdbd017cf5 | 587:2090dd9bfbc1 |
---|---|
40 | 40 |
41 #include <iostream> | 41 #include <iostream> |
42 #include <signal.h> | 42 #include <signal.h> |
43 #include <cstdlib> | 43 #include <cstdlib> |
44 | 44 |
45 #include "../version.h" | |
46 | |
45 #include <vamp-hostsdk/PluginHostAdapter.h> | 47 #include <vamp-hostsdk/PluginHostAdapter.h> |
46 | 48 |
47 static QMutex cleanupMutex; | 49 static QMutex cleanupMutex; |
48 static bool cleanedUp = false; | 50 static bool cleanedUp = false; |
49 | 51 |
192 } | 194 } |
193 | 195 |
194 int | 196 int |
195 main(int argc, char **argv) | 197 main(int argc, char **argv) |
196 { | 198 { |
199 if (argc == 2 && (QString(argv[1]) == "--version" || | |
200 QString(argv[1]) == "-v")) { | |
201 cerr << TONY_VERSION << endl; | |
202 exit(0); | |
203 } | |
204 | |
197 svSystemSpecificInitialisation(); | 205 svSystemSpecificInitialisation(); |
198 | 206 |
199 #ifdef Q_OS_MAC | 207 #ifdef Q_OS_MAC |
200 if (QSysInfo::MacintoshVersion > QSysInfo::MV_10_8) { | 208 if (QSysInfo::MacintoshVersion > QSysInfo::MV_10_8) { |
201 // Fix for OS/X 10.9 font problem | 209 // Fix for OS/X 10.9 font problem |
202 QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande"); | 210 QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande"); |
203 } | 211 } |