mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
fixed: ServiceManagement not available in 10.5
This commit is contained in:
@@ -505,6 +505,16 @@ class InternalCommands:
|
||||
# 10.4: universal (intel and power pc)
|
||||
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()
|
||||
shortForm = "macosx" + self.macSdk
|
||||
version = str(major) + "." + str(minor)
|
||||
|
||||
@@ -80,10 +80,7 @@ macx {
|
||||
QSYNERGY_ICON.files = res/mac/Synergy.icns
|
||||
QSYNERGY_ICON.path = Contents/Resources
|
||||
QMAKE_BUNDLE_DATA += QSYNERGY_ICON
|
||||
LIBS += -framework ApplicationServices \
|
||||
-framework ServiceManagement \
|
||||
-framework Security \
|
||||
-framework cocoa
|
||||
LIBS += $$MACX_LIBS
|
||||
}
|
||||
debug {
|
||||
OBJECTS_DIR = tmp/debug
|
||||
|
||||
Reference in New Issue
Block a user