fixed: ServiceManagement not available in 10.5

This commit is contained in:
Nick Bolton 2014-03-23 12:16:11 +00:00
parent 5ff37a0937
commit 3e5194dd4e
2 changed files with 11 additions and 4 deletions

View File

@ -505,6 +505,16 @@ class InternalCommands:
# 10.4: universal (intel and power pc) # 10.4: universal (intel and power pc)
qmake_cmd_string += ' CONFIG+="ppc i386"' qmake_cmd_string += ' CONFIG+="ppc i386"'
libs = (
"-framework ApplicationServices "
"-framework Security "
"-framework cocoa")
if major == 10 and minor >= 6:
libs += " -framework ServiceManagement"
qmake_cmd_string += " \"MACX_LIBS=%s\" " % libs
sdkDir = self.getMacSdkDir() sdkDir = self.getMacSdkDir()
shortForm = "macosx" + self.macSdk shortForm = "macosx" + self.macSdk
version = str(major) + "." + str(minor) version = str(major) + "." + str(minor)

View File

@ -80,10 +80,7 @@ macx {
QSYNERGY_ICON.files = res/mac/Synergy.icns QSYNERGY_ICON.files = res/mac/Synergy.icns
QSYNERGY_ICON.path = Contents/Resources QSYNERGY_ICON.path = Contents/Resources
QMAKE_BUNDLE_DATA += QSYNERGY_ICON QMAKE_BUNDLE_DATA += QSYNERGY_ICON
LIBS += -framework ApplicationServices \ LIBS += $$MACX_LIBS
-framework ServiceManagement \
-framework Security \
-framework cocoa
} }
debug { debug {
OBJECTS_DIR = tmp/debug OBJECTS_DIR = tmp/debug