summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2014-01-04 23:03:33 (GMT)
committerMarius Kintel <marius@kintel.net>2014-01-04 23:03:33 (GMT)
commit62b9746ab1207ede256797353bb5f6777c73f638 (patch)
tree33ae627cc9a79ead388bd543d83e791d5d7eade9
parente3f416db27338e1656dc266470cbb9de48ddd11f (diff)
Mac fixes: Moved sparkle config to sparkle.pri. Link with ApplicationServices
-rw-r--r--common.pri3
-rw-r--r--openscad.pro8
-rw-r--r--sparkle.pri11
3 files changed, 16 insertions, 6 deletions
diff --git a/common.pri b/common.pri
index 696c8b1..c6cf52a 100644
--- a/common.pri
+++ b/common.pri
@@ -11,4 +11,5 @@ include(opencsg.pri)
include(glew.pri)
include(eigen.pri)
include(boost.pri)
-include(glib-2.0.pri) \ No newline at end of file
+include(glib-2.0.pri)
+include(sparkle.pri)
diff --git a/openscad.pro b/openscad.pro
index 20dc299..913a5d3 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -61,10 +61,8 @@ deploy {
message("Building deployment version")
DEFINES += OPENSCAD_DEPLOY
macx {
- CONFIG += x86 x86_64
- LIBS += -framework Sparkle
- HEADERS += src/SparkleAutoUpdater.h
- OBJECTIVE_SOURCES += src/SparkleAutoUpdater.mm
+ CONFIG += x86_64
+ CONFIG += sparkle
}
}
@@ -75,7 +73,7 @@ macx {
APP_RESOURCES.path = Contents/Resources
APP_RESOURCES.files = OpenSCAD.sdef dsa_pub.pem icons/SCAD.icns
QMAKE_BUNDLE_DATA += APP_RESOURCES
- LIBS += -framework Cocoa
+ LIBS += -framework Cocoa -framework ApplicationServices
# FIXME: Somehow, setting the deployment target to a lower version causes a
# seldom crash in debug mode (e.g. the minkowski2-test):
diff --git a/sparkle.pri b/sparkle.pri
new file mode 100644
index 0000000..2f71b03
--- /dev/null
+++ b/sparkle.pri
@@ -0,0 +1,11 @@
+sparkle {
+ OPENSCAD_LIBRARIES_DIR = $$(OPENSCAD_LIBRARIES)
+ !isEmpty(OPENSCAD_LIBRARIES_DIR) {
+ QMAKE_OBJECTIVE_CFLAGS +=-F$$OPENSCAD_LIBRARIES_DIR/lib
+ QMAKE_LFLAGS +=-F$$OPENSCAD_LIBRARIES_DIR/lib
+ }
+
+ LIBS += -framework Sparkle
+ HEADERS += src/SparkleAutoUpdater.h
+ OBJECTIVE_SOURCES += src/SparkleAutoUpdater.mm
+}
contact: Jan Huwald // Impressum