Linux compile fix for billard's changes.
(Had to do it myself since glen is now a windows person :P) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5356 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d8906d2a0c
commit
379c469343
|
@ -54,6 +54,7 @@ include_paths = [
|
||||||
basedir + 'Externals/WiiUseSrc/Src',
|
basedir + 'Externals/WiiUseSrc/Src',
|
||||||
basedir + 'Source/Core/VideoCommon/Src',
|
basedir + 'Source/Core/VideoCommon/Src',
|
||||||
basedir + 'Source/Core/InputCommon/Src',
|
basedir + 'Source/Core/InputCommon/Src',
|
||||||
|
basedir + 'Source/Core/InputPluginCommon/Src',
|
||||||
basedir + 'Source/Core/AudioCommon/Src',
|
basedir + 'Source/Core/AudioCommon/Src',
|
||||||
basedir + 'Source/Core/DebuggerUICommon/Src',
|
basedir + 'Source/Core/DebuggerUICommon/Src',
|
||||||
basedir + 'Source/Core/DSPCore/Src',
|
basedir + 'Source/Core/DSPCore/Src',
|
||||||
|
@ -82,6 +83,8 @@ dirs = [
|
||||||
'Source/Core/DolphinWX/Src',
|
'Source/Core/DolphinWX/Src',
|
||||||
'Source/Core/DebuggerWX/Src',
|
'Source/Core/DebuggerWX/Src',
|
||||||
'Source/UnitTests/',
|
'Source/UnitTests/',
|
||||||
|
'Source/Core/InputPluginCommon/Src/',
|
||||||
|
'Source/Plugins/Plugin_WiimoteNew/Src/',
|
||||||
]
|
]
|
||||||
|
|
||||||
builders = {}
|
builders = {}
|
||||||
|
|
|
@ -40,7 +40,7 @@ void ControllerInterface::Init()
|
||||||
ciface::DirectInput::Init( m_devices/*, (HWND)m_hwnd*/ );
|
ciface::DirectInput::Init( m_devices/*, (HWND)m_hwnd*/ );
|
||||||
#endif
|
#endif
|
||||||
#ifdef CIFACE_USE_XLIB
|
#ifdef CIFACE_USE_XLIB
|
||||||
ciface::XLIB::Init( m_devices, m_hwnd );
|
ciface::Xlib::Init( m_devices, m_hwnd );
|
||||||
#endif
|
#endif
|
||||||
#ifdef CIFACE_USE_OSX
|
#ifdef CIFACE_USE_OSX
|
||||||
ciface::OSX::Init( m_devices, m_hwnd );
|
ciface::OSX::Init( m_devices, m_hwnd );
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
|
import sys
|
||||||
Import('env')
|
Import('env')
|
||||||
|
icenv = env.Clone()
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
'Configuration.cpp',
|
'Configuration.cpp',
|
||||||
'EventHandler.cpp',
|
'EventHandler.cpp',
|
||||||
'InputCommon.cpp',
|
'InputCommon.cpp',
|
||||||
'SDL_Util.cpp',
|
'SDL_Util.cpp',
|
||||||
|
'ControllerInterface/ControllerInterface.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
if env['HAVE_X11']:
|
if env['HAVE_X11']:
|
||||||
|
@ -19,6 +21,16 @@ if env['HAVE_WX']:
|
||||||
"WXInputBase.cpp",
|
"WXInputBase.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
env_inputcommon = env.Clone()
|
if icenv['HAVE_SDL']:
|
||||||
env_inputcommon.Append(CXXFLAGS = [ '-fPIC' ])
|
files += [ 'ControllerInterface/SDL/SDL.cpp' ]
|
||||||
env_inputcommon.StaticLibrary(env['local_libs'] + "inputcommon", files)
|
if sys.platform == 'darwin':
|
||||||
|
files += [ 'ControllerInterface/OSX/OSX.cpp',
|
||||||
|
'ControllerInterface/OSX/OSXPrivate.mm' ]
|
||||||
|
if sys.platform == 'linux2':
|
||||||
|
files += [ 'ControllerInterface/Xlib/Xlib.cpp' ]
|
||||||
|
|
||||||
|
|
||||||
|
icenv.Append(CXXFLAGS = [ '-fPIC' ])
|
||||||
|
icenv.StaticLibrary(env['local_libs'] + "inputcommon", files)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# -*- python -*-
|
||||||
|
|
||||||
|
Import('env')
|
||||||
|
|
||||||
|
files = [
|
||||||
|
'Config.cpp',
|
||||||
|
'ConfigDiagBitmaps.cpp',
|
||||||
|
'ConfigDiag.cpp',
|
||||||
|
'ControllerEmu.cpp',
|
||||||
|
'IniFile.cpp',
|
||||||
|
]
|
||||||
|
|
||||||
|
env_inputpc = env.Clone()
|
||||||
|
env_inputpc.Append(CXXFLAGS = [ '-fPIC' ])
|
||||||
|
env_inputpc.StaticLibrary(env['local_libs'] + "inputplugincommon", files)
|
|
@ -7,29 +7,12 @@ name = "Plugin_GCPadNew"
|
||||||
padenv = env.Clone()
|
padenv = env.Clone()
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
'Config.cpp',
|
|
||||||
'ControllerEmu.cpp',
|
|
||||||
'ControllerEmu/GCPad/GCPad.cpp',
|
|
||||||
'GCPadNew.cpp',
|
'GCPadNew.cpp',
|
||||||
'ControllerInterface/ControllerInterface.cpp',
|
'GCPadEmu.cpp',
|
||||||
'IniFile.cpp'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if padenv['HAVE_SDL']:
|
|
||||||
files += [ 'ControllerInterface/SDL/SDL.cpp' ]
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
files += [ 'ControllerInterface/OSX/OSX.cpp', 'ControllerInterface/OSX/OSXPrivate.mm' ]
|
|
||||||
if sys.platform == 'linux2':
|
|
||||||
files += [ 'ControllerInterface/Xlib/Xlib.cpp' ]
|
|
||||||
|
|
||||||
if padenv['HAVE_WX']:
|
|
||||||
files += [
|
|
||||||
'ConfigDiag.cpp',
|
|
||||||
'ConfigDiagBitmaps.cpp',
|
|
||||||
]
|
|
||||||
|
|
||||||
padenv.Append(
|
padenv.Append(
|
||||||
LIBS = [ 'inputcommon', 'common' ],
|
LIBS = [ 'inputplugincommon', 'inputcommon', 'common' ],
|
||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
# -*- python -*-
|
||||||
|
|
||||||
|
Import('env')
|
||||||
|
import sys
|
||||||
|
|
||||||
|
name = "Plugin_WiimoteNew"
|
||||||
|
wiinewenv = env.Clone()
|
||||||
|
|
||||||
|
files = [
|
||||||
|
'WiimoteEmu/WiimoteEmu.cpp',
|
||||||
|
'WiimoteEmu/Attachment/Classic.cpp',
|
||||||
|
'WiimoteEmu/Attachment/Attachment.cpp',
|
||||||
|
'WiimoteEmu/Attachment/Nunchuk.cpp',
|
||||||
|
'WiimoteEmu/EmuSubroutines.cpp',
|
||||||
|
'WiimoteEmu/Encryption.cpp',
|
||||||
|
'WiimoteNew.cpp',
|
||||||
|
]
|
||||||
|
|
||||||
|
wiinewenv.Append(
|
||||||
|
LIBS = [ 'inputplugincommon', 'inputcommon', 'common' ],
|
||||||
|
)
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
wiinewenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'Cocoa' ]
|
||||||
|
|
||||||
|
wiinewenv.SharedLibrary(env['plugin_dir']+name, files)
|
|
@ -42,7 +42,7 @@ static const u8 eeprom_data_16D0[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// array of accel data to emulate shaking
|
// array of accel data to emulate shaking
|
||||||
static const u8 shake_data[8] = { 0x80, 0x40, 0x01, 0x40, 0x80, 0xC0, 0xFF, 0xC0 };
|
const u8 shake_data[8] = { 0x80, 0x40, 0x01, 0x40, 0x80, 0xC0, 0xFF, 0xC0 };
|
||||||
|
|
||||||
const u16 button_bitmasks[] =
|
const u16 button_bitmasks[] =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue