dolphin/Externals/WiiUseSrc/Src/SConscript

47 lines
966 B
Python
Raw Normal View History

# -*- python -*-
import sys
Import('env')
if (env['HAVE_BLUEZ'] != 1 and sys.platform != 'darwin'):
env['HAVE_WIIUSE'] = 0
Return()
files = [
"classic.c",
"dynamics.c",
"events.c",
"io.c",
"ir.c",
"nunchuk.c",
"guitar_hero_3.c",
"wiiboard.c",
"wiiuse.c",
]
if env['HAVE_BLUEZ']:
files += [ "io_nix.c", ]
if sys.platform == 'darwin':
files += [ "io_osx.m", ]
if sys.platform == 'darwin':
env_wiiuse = env.Clone(
CCFLAGS = env.filterWarnings(env['CCFLAGS']) + ' -fvisibility=default -x objective-c++',
CXXFLAGS = env.filterWarnings(env['CXXFLAGS']) + ' -x objective-c++',
)
else:
env_wiiuse = env.Clone(
CCFLAGS = env.filterWarnings(env['CCFLAGS']) + ' -fvisibility=default',
CXXFLAGS = env.filterWarnings(env['CXXFLAGS']),
parse_flags = ['-fPIC']
)
libs = [
'm',
]
env_wiiuse.StaticLibrary(env['local_libs'] + "wiiuse", files, LIBS=libs)
env['HAVE_WIIUSE'] = 1