diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/SConscript b/Source/Plugins/Plugin_DSP_HLE/Src/SConscript index 3cc52e5f0a..49fd448cce 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/SConscript +++ b/Source/Plugins/Plugin_DSP_HLE/Src/SConscript @@ -3,6 +3,11 @@ Import('env') import sys +if sys.platform == 'darwin': + output = "../../../../Binary/mac/Plugins/dsphle.so" +else: + output = "../../../../Binary/linux/Plugins/dsphle.so" + files = [ "DSPHandler.cpp", "MailHandler.cpp", @@ -22,10 +27,7 @@ files = [ dspenv = env.Clone() dspenv.Append( - CXXFLAGS = [ '-fPIC', ], + CXXFLAGS = [ '-fPIC' ], + LIBS = [ 'common' ], ) - -if sys.platform == 'darwin': - dspenv.SharedLibrary("../../../../Binary/mac/Plugins/dsphle.so", files, LIBS = ["common"]) -else: - dspenv.SharedLibrary("../../../../Binary/linux/Plugins/dsphle.so", files, LIBS = ["common"]) +dspenv.SharedLibrary(output, files) diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/SConscript b/Source/Plugins/Plugin_DSP_LLE/Src/SConscript index adb328079e..a2abad250b 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/SConscript +++ b/Source/Plugins/Plugin_DSP_LLE/Src/SConscript @@ -1,7 +1,12 @@ # -*- python -*- Import('env') -output = "../../../../Binary/linux/Plugins/dsplle.so" +import sys + +if sys.platform == 'darwin': + output = "../../../../Binary/mac/Plugins/dsplle.so" +else: + output = "../../../../Binary/linux/Plugins/dsplle.so" files = [ "AOSoundStream.cpp", @@ -21,8 +26,7 @@ files = [ lleenv = env.Clone() lleenv.Append( - CXXFLAGS = [ '-fPIC', ], - ) - - -lleenv.SharedLibrary(output, files, LIBS = ["common"]) + CXXFLAGS = [ '-fPIC' ], + LIBS = [ 'common' ], + ) +lleenv.SharedLibrary(output, files) diff --git a/Source/Plugins/Plugin_Wiimote_Test/Src/SConscript b/Source/Plugins/Plugin_Wiimote_Test/Src/SConscript index 944bc33508..4e216304cd 100644 --- a/Source/Plugins/Plugin_Wiimote_Test/Src/SConscript +++ b/Source/Plugins/Plugin_Wiimote_Test/Src/SConscript @@ -14,9 +14,8 @@ files = [ padenv = env.Clone() padenv.Append( - CXXFLAGS = [ - '-fPIC', - ], + CXXFLAGS = [ '-fPIC' ], + LIBS = [ 'common' ], ) -padenv.SharedLibrary(output, files, LIBS = [ "common" ]) +padenv.SharedLibrary(output, files) diff --git a/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript b/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript index 41e296a5f5..97816f3213 100644 --- a/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript +++ b/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript @@ -16,9 +16,7 @@ files = [ padenv = env.Clone() padenv.Append( - CXXFLAGS = [ - '-fPIC', - ], + CXXFLAGS = [ '-fPIC' ], + LIBS = [ 'common' ], ) - -padenv.SharedLibrary(output, files, LIBS = [ "common" ]) +padenv.SharedLibrary(output, files)