mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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:
12
Externals/WiiUse/Src/SConscript
vendored
12
Externals/WiiUse/Src/SConscript
vendored
@ -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
27
Externals/WiiUse/Src/io_dummy.c
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user