From 68bb160b993dde045f502f10ecbbccce9d9184c1 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 18 Sep 2015 16:49:05 +0200 Subject: Specify OS X framework version for script interface extraction The iTunes support in Sluift requires extraction of the iTunes scripting interface. Clang version Apple LLVM version 7.0.0 will error with "error: type arguments cannot be applied to non-parameterized class 'NSArray'" and similar on the extracted scripting interface. With this change the sdp tool will generate scripting interfaces compatible to OS X 10.10. The generated interface files do not cause the error. Test-Information: Tested the build on OS X 10.10.5 and OS X 10.9.5 and verified that the Sluift command "sluift.itunes.get_current_track()" still works on both systems. Change-Id: If70c797aea69e95c7be3cda4c50b64da45028aac diff --git a/Sluift/SConscript b/Sluift/SConscript index a2b6748..09da0a9 100644 --- a/Sluift/SConscript +++ b/Sluift/SConscript @@ -58,7 +58,7 @@ elif env["SCONS_STAGE"] == "build" : if sluift_env["PLATFORM"] == "darwin" and os.path.isdir("/Applications/iTunes.app") : sluift_env.Append(FRAMEWORKS = ["ScriptingBridge"]) sluift_env.Command("iTunes.h", "/Applications/iTunes.app", - "sdef ${SOURCE} | sdp -fh --basename iTunes -o ${TARGET.dir}") + "sdef ${SOURCE} | sdp -fh --basename iTunes -V 10.10 -o ${TARGET.dir}") sluift_env.Append(CPPDEFINES = ["HAVE_ITUNES"]) sluift_sources += ["ITunesInterface.mm"] -- cgit v0.10.2-6-g49f6