diff --git a/Source/Plugins/Plugin_DSP_NULL/Src/SConscript b/Source/Plugins/Plugin_DSP_NULL/Src/SConscript index aaf10d3c2b..ced5609cb2 100644 --- a/Source/Plugins/Plugin_DSP_NULL/Src/SConscript +++ b/Source/Plugins/Plugin_DSP_NULL/Src/SConscript @@ -1,4 +1,5 @@ Import('env') +import sys files = ["DSPHandler.cpp", "MailHandler.cpp", @@ -16,4 +17,8 @@ files = ["DSPHandler.cpp", "UCodes/UCode_Zelda.cpp", ] dspenv=env.Copy(LINKFLAGS = "`pkg-config --libs ao` ") -dspenv.SharedLibrary("../../../../Binary/linux/Plugins/dsphle.so", files, 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"]) diff --git a/Source/Plugins/Plugin_PadSimple/Src/SConscript b/Source/Plugins/Plugin_PadSimple/Src/SConscript index 273592cb60..ccd14f2ba0 100644 --- a/Source/Plugins/Plugin_PadSimple/Src/SConscript +++ b/Source/Plugins/Plugin_PadSimple/Src/SConscript @@ -1,5 +1,11 @@ Import('env') -output = "../../../../Binary/linux/Plugins/padsimple.so" +import sys + +if sys.platform == 'darwin': + output = "../../../../Binary/mac/Plugins/padsimple.so" +else: + output = "../../../../Binary/linux/Plugins/padsimple.so" + files = ["main.cpp", ] padenv=env.Copy(CXXFLAGS = " `pkg-config --cflags sdl`", LINKFLAGS = " `pkg-config --libs sdl`") diff --git a/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript b/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript index 863992bb29..3799fa993d 100644 --- a/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript +++ b/Source/Plugins/Plugin_nJoy_SDL/Src/SConscript @@ -1,8 +1,14 @@ Import('env') -output = "../../../../Binary/linux/Plugins/Plugin_nJoy_SDL.so" +import sys + +if sys.platform == 'darwin': + output = "../../../../Binary/mac/Plugins/Plugin_nJoy_SDL.so" +else: + output = "../../../../Binary/linux/Plugins/Plugin_nJoy_SDL.so" + files = [ "nJoy.cpp", "GUI/AboutBox.cpp", "GUI/ConfigBox.cpp", ] padenv=env.Copy(CXXFLAGS = " `wx-config --cppflags` `pkg-config --cflags sdl`", LINKFLAGS = "`wx-config --libs` `pkg-config --libs sdl` ") -padenv.SharedLibrary(output, files, LIBS=["common"]) \ No newline at end of file +padenv.SharedLibrary(output, files, LIBS=["common"])