Import('env') 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() padenv.SharedLibrary(output, files, LIBS=["common"])