mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
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
This commit is contained in:
42
Externals/WiiUseSrc/Src/SConscript
vendored
42
Externals/WiiUseSrc/Src/SConscript
vendored
@ -1,24 +1,28 @@
|
||||
# -*- python -*-
|
||||
# -*- python -*-
|
||||
|
||||
import sys
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if (sys.platform == 'linux2' and env['HAVE_BLUEZ'] != 1):
|
||||
env['HAVE_WIIUSE'] = 0
|
||||
Return()
|
||||
|
||||
files = [
|
||||
"io.c",
|
||||
"ir.c",
|
||||
"wiiuse.c",
|
||||
]
|
||||
|
||||
if sys.platform == 'linux2' and env['HAVE_BLUEZ']:
|
||||
files += [ "io_nix.c", ]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
files += [ "io_osx.m", ]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + "wiiuse", files)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user