Soren Jorvang a2b1f829cb Get rid of a number of unnecessary env.Clones.
Use SCons' convenient # shorthand for the root of our tree.
 
Also various minor cleanup of SConscripts.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5915 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-07-19 03:42:37 +00:00

29 lines
530 B
Python

# -*- python -*-
Import('env')
import sys
if (sys.platform == 'linux2' and not env['HAVE_BLUEZ']) or \
(not sys.platform == 'darwin' and
not sys.platform == 'linux2' and
not sys.platform == 'win32'):
env['HAVE_WIIUSE'] = 0
Return()
env['HAVE_WIIUSE'] = 1
files = [
"io.c",
"ir.c",
"wiiuse.c",
]
if sys.platform == 'darwin':
files += [ "io_osx.m" ]
elif sys.platform == 'linux2':
files += [ "io_nix.c" ]
elif sys.platform == 'win32':
files += [ "io_win.c" ]
env.StaticLibrary(env['local_libs'] + "wiiuse", files)