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:
parent
e81a10fb44
commit
739c9eb2df
|
@ -3,14 +3,6 @@
|
||||||
Import('env')
|
Import('env')
|
||||||
import sys
|
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 = [
|
files = [
|
||||||
"ir.c",
|
"ir.c",
|
||||||
"wiiuse.c",
|
"wiiuse.c",
|
||||||
|
@ -18,10 +10,12 @@ files = [
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
files += [ "io_osx.m" ]
|
files += [ "io_osx.m" ]
|
||||||
elif sys.platform == 'linux2':
|
elif sys.platform == 'linux2' and env['HAVE_BLUEZ']:
|
||||||
files += [ "io_nix.c" ]
|
files += [ "io_nix.c" ]
|
||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
files += [ "io_win.c" ]
|
files += [ "io_win.c" ]
|
||||||
|
else:
|
||||||
|
files += [ "io_dummy.c" ]
|
||||||
|
|
||||||
env.StaticLibrary(env['local_libs'] + "wiiuse", files)
|
env.StaticLibrary(env['local_libs'] + "wiiuse", files)
|
||||||
env['CPPPATH'] += ['#Externals/WiiUse/Src']
|
env['CPPPATH'] += ['#Externals/WiiUse/Src']
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
|
@ -56,7 +56,6 @@ extern const char *netplay_dolphin_ver;
|
||||||
#undef STACKALIGN
|
#undef STACKALIGN
|
||||||
#define STACKALIGN __attribute__((__force_align_arg_pointer__))
|
#define STACKALIGN __attribute__((__force_align_arg_pointer__))
|
||||||
#endif
|
#endif
|
||||||
#define HAVE_WIIUSE 1
|
|
||||||
// We use wxWidgets on OS X only if it is version 2.9+ with Cocoa support.
|
// We use wxWidgets on OS X only if it is version 2.9+ with Cocoa support.
|
||||||
#ifdef __WXOSX_COCOA__
|
#ifdef __WXOSX_COCOA__
|
||||||
#define HAVE_WX 1
|
#define HAVE_WX 1
|
||||||
|
@ -83,7 +82,6 @@ extern const char *netplay_dolphin_ver;
|
||||||
#define GC_ALIGNED64_DECL(x) __declspec(align(64)) x
|
#define GC_ALIGNED64_DECL(x) __declspec(align(64)) x
|
||||||
|
|
||||||
// Since they are always around on windows
|
// Since they are always around on windows
|
||||||
#define HAVE_WIIUSE 1
|
|
||||||
#define HAVE_WX 1
|
#define HAVE_WX 1
|
||||||
#define HAVE_OPENAL 1
|
#define HAVE_OPENAL 1
|
||||||
|
|
||||||
|
@ -114,10 +112,6 @@ extern const char *netplay_dolphin_ver;
|
||||||
#include "config.h" // SCons autoconfiguration defines
|
#include "config.h" // SCons autoconfiguration defines
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __linux__ && HAVE_BLUEZ
|
|
||||||
#define HAVE_WIIUSE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Windows compatibility
|
// Windows compatibility
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
|
@ -60,6 +60,7 @@ files = [
|
||||||
"HW/WiimoteEmu/EmuSubroutines.cpp",
|
"HW/WiimoteEmu/EmuSubroutines.cpp",
|
||||||
"HW/WiimoteEmu/Encryption.cpp",
|
"HW/WiimoteEmu/Encryption.cpp",
|
||||||
#"HW/WiimoteEmu/Speaker.cpp",
|
#"HW/WiimoteEmu/Speaker.cpp",
|
||||||
|
"HW/WiimoteReal/WiimoteReal.cpp",
|
||||||
"HW/GCPadEmu.cpp",
|
"HW/GCPadEmu.cpp",
|
||||||
"HW/HW.cpp",
|
"HW/HW.cpp",
|
||||||
"HW/Memmap.cpp",
|
"HW/Memmap.cpp",
|
||||||
|
@ -150,7 +151,4 @@ elif sys.platform == 'darwin':
|
||||||
else:
|
else:
|
||||||
files += [ "HW/BBA-TAP/TAP_Unix.cpp" ]
|
files += [ "HW/BBA-TAP/TAP_Unix.cpp" ]
|
||||||
|
|
||||||
if env['HAVE_WIIUSE']:
|
|
||||||
files += [ 'HW/WiimoteReal/WiimoteReal.cpp' ]
|
|
||||||
|
|
||||||
env.StaticLibrary(env['local_libs'] + 'core', files, LIBS = libs)
|
env.StaticLibrary(env['local_libs'] + 'core', files, LIBS = libs)
|
||||||
|
|
|
@ -11,7 +11,7 @@ files = [
|
||||||
|
|
||||||
libs = [
|
libs = [
|
||||||
'core', 'lzo2', 'discio', 'bdisasm',
|
'core', 'lzo2', 'discio', 'bdisasm',
|
||||||
'inputcommon', 'common', 'lua', 'z', 'sfml-network',
|
'inputcommon', 'common', 'lua', 'z', 'sfml-network', 'wiiuse',
|
||||||
]
|
]
|
||||||
|
|
||||||
if env['HAVE_WX']:
|
if env['HAVE_WX']:
|
||||||
|
@ -99,14 +99,13 @@ elif sys.platform == 'darwin' and env['HAVE_WX']:
|
||||||
env.Depends(exeGUIdist, env['plugin_dir'])
|
env.Depends(exeGUIdist, env['plugin_dir'])
|
||||||
env.Fixup(exeGUIdist, exeGUI)
|
env.Fixup(exeGUIdist, exeGUI)
|
||||||
else:
|
else:
|
||||||
|
files += [ 'X11Utils.cpp' ]
|
||||||
|
libs += [ 'SDL' ]
|
||||||
exeGUI = env['binary_dir'] + '/dolphin-emu'
|
exeGUI = env['binary_dir'] + '/dolphin-emu'
|
||||||
exeNoGUI = env['binary_dir'] + '/dolphin-emu-nogui'
|
exeNoGUI = env['binary_dir'] + '/dolphin-emu-nogui'
|
||||||
env.InstallAs(env['data_dir'] + '/sys', '#Data/Sys')
|
env.InstallAs(env['data_dir'] + '/sys', '#Data/Sys')
|
||||||
env.InstallAs(env['data_dir'] + '/user', '#Data/User')
|
env.InstallAs(env['data_dir'] + '/user', '#Data/User')
|
||||||
|
|
||||||
if env['HAVE_WIIUSE']:
|
|
||||||
libs += [ 'wiiuse' ]
|
|
||||||
|
|
||||||
if env['HAVE_WX']:
|
if env['HAVE_WX']:
|
||||||
env.StaticLibrary(env['local_libs'] + 'memcard', memcardfiles)
|
env.StaticLibrary(env['local_libs'] + 'memcard', memcardfiles)
|
||||||
env.Program(exeGUI, files, LIBS = wxlibs + libs + env['LIBS'])
|
env.Program(exeGUI, files, LIBS = wxlibs + libs + env['LIBS'])
|
||||||
|
|
|
@ -8,7 +8,6 @@ name = os.sep + "Plugin_VideoMerge"
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
'BPFunctions.cpp',
|
'BPFunctions.cpp',
|
||||||
'EmuWindow.cpp',
|
|
||||||
'FramebufferManager.cpp',
|
'FramebufferManager.cpp',
|
||||||
'Main.cpp',
|
'Main.cpp',
|
||||||
'PixelShaderCache.cpp',
|
'PixelShaderCache.cpp',
|
||||||
|
@ -32,6 +31,7 @@ files = [
|
||||||
]
|
]
|
||||||
|
|
||||||
if sys.platform == 'win32': files += [
|
if sys.platform == 'win32': files += [
|
||||||
|
'EmuWindow.cpp',
|
||||||
'DX11/DX11_D3DBase.cpp',
|
'DX11/DX11_D3DBase.cpp',
|
||||||
'DX11/DX11_D3DBlob.cpp',
|
'DX11/DX11_D3DBlob.cpp',
|
||||||
'DX11/DX11_D3DShader.cpp',
|
'DX11/DX11_D3DShader.cpp',
|
||||||
|
|
Loading…
Reference in New Issue