Allow building without bluetooth support.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6273 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-10-12 23:39:16 +00:00
parent e81a10fb44
commit 739c9eb2df
6 changed files with 35 additions and 23 deletions

View File

@ -3,14 +3,6 @@
Import('env')
import sys
env['HAVE_WIIUSE'] = 0
if not sys.platform == 'darwin' and not sys.platform == 'win32' and \
not (sys.platform == 'linux2' and env['HAVE_BLUEZ']):
Return()
env['HAVE_WIIUSE'] = 1
files = [
"ir.c",
"wiiuse.c",
@ -18,10 +10,12 @@ files = [
if sys.platform == 'darwin':
files += [ "io_osx.m" ]
elif sys.platform == 'linux2':
elif sys.platform == 'linux2' and env['HAVE_BLUEZ']:
files += [ "io_nix.c" ]
elif sys.platform == 'win32':
files += [ "io_win.c" ]
else:
files += [ "io_dummy.c" ]
env.StaticLibrary(env['local_libs'] + "wiiuse", files)
env['CPPPATH'] += ['#Externals/WiiUse/Src']

27
Externals/WiiUse/Src/io_dummy.c vendored Normal file
View File

@ -0,0 +1,27 @@
#include "definitions.h"
#include "wiiuse_internal.h"
int wiiuse_find(struct wiimote_t **wm, int max_wiimotes, int timeout)
{
return 0;
}
int wiiuse_connect(struct wiimote_t **wm, int wiimotes)
{
return 0;
}
void wiiuse_disconnect(struct wiimote_t *wm)
{
return;
}
int wiiuse_io_read(struct wiimote_t *wm)
{
return 0;
}
int wiiuse_io_write(struct wiimote_t *wm, byte *buf, int len)
{
return 0;
}