summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-09 18:04:36 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-09 18:04:36 (GMT)
commit8711bd25006bda5b63516a222b762e71a9954a56 (patch)
tree2ca8f83aa6234d73dc7c615512895792a6a19c6f /src/openscad.cc
parente868b4a5a178ceb6b340e16151b0f82ec322fc9a (diff)
Set preprocessor define for deployment builds. Don't include sparkle in development builds. Note: Development snapshots are considered deployment builds
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index 75d7b9d..682ccb7 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -55,7 +55,9 @@
#ifdef Q_WS_MAC
#include "EventFilter.h"
#include "AppleEvents.h"
-#include "SparkleAutoUpdater.h"
+#ifdef OPENSCAD_DEPLOY
+ #include "SparkleAutoUpdater.h"
+#endif
#endif
#include "Camera.h"
@@ -483,13 +485,11 @@ int main(int argc, char **argv)
installAppleEventHandlers();
#endif
-#ifndef DEBUG
-#ifdef Q_WS_MAC
+#if defined(OPENSCAD_DEPLOY) && defined(Q_WS_MAC)
AutoUpdater *updater = new SparkleAutoUpdater;
AutoUpdater::setUpdater(updater);
if (updater->automaticallyChecksForUpdates()) updater->checkForUpdates();
#endif
-#endif
QString qfilename;
if (filename) qfilename = QString::fromStdString(boosty::stringy(boosty::absolute(filename)));
contact: Jan Huwald // Impressum