mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
3917941ae1
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3109 8ced0084-cf51-0410-be5f-012b33b47a6e
48 lines
1.0 KiB
Python
48 lines
1.0 KiB
Python
# -*- python -*-
|
|
|
|
import sys
|
|
Import('env')
|
|
|
|
if not (env['HAVE_BLUEZ'] or 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",
|
|
"wiiuse.c",
|
|
]
|
|
|
|
if env['HAVE_BLUEZ']:
|
|
files += [ "io_nix.c", ]
|
|
|
|
if sys.platform == 'darwin':
|
|
files += [ "io_osx.c", ]
|
|
|
|
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']),
|
|
)
|
|
|
|
libs = [
|
|
'm',
|
|
]
|
|
|
|
if sys.platform == 'darwin':
|
|
env_wiiuse.StaticLibrary(env['libs_dir']+"wiiuse", files, LIBS=libs)
|
|
else:
|
|
env_wiiuse.SharedLibrary(env['libs_dir']+"wiiuse", files, LIBS=libs)
|
|
|
|
env['HAVE_WIIUSE'] = 1
|