Simplify the SCons build:
On OS X, build all code as Objective-C(++). Centralize framework handling. Cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5645 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
de45e015cd
commit
404c625622
|
@ -20,36 +20,8 @@ if wxenv['HAVE_WX']:
|
||||||
'Source/Core/DolphinWX/Src/WxUtils.cpp',
|
'Source/Core/DolphinWX/Src/WxUtils.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
LIBS = libs
|
||||||
if wxenv['HAVE_COCOA']:
|
|
||||||
files += [ 'cocoaApp.m', ]
|
|
||||||
compileFlags = [
|
|
||||||
'-x',
|
|
||||||
'objective-c++',
|
|
||||||
]
|
|
||||||
wxenv.Append(
|
|
||||||
CXXFLAGS = compileFlags,
|
|
||||||
LINKFLAGS = [
|
|
||||||
'-pthread',
|
|
||||||
],
|
|
||||||
LIBS = libs
|
|
||||||
)
|
|
||||||
if not wxenv['HAVE_WX']:
|
|
||||||
wxenv.Append(
|
|
||||||
LINKFLAGS = ['-framework', 'IOKit'])
|
|
||||||
else:
|
|
||||||
wxenv.Append(
|
|
||||||
LINKFLAGS = [
|
|
||||||
'-pthread',
|
|
||||||
],
|
|
||||||
LIBS = libs
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exeGUI = env['binary_dir'] + 'MemcardManager'
|
exeGUI = env['binary_dir'] + 'MemcardManager'
|
||||||
|
|
||||||
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
|
||||||
|
|
||||||
wxenv.Program(exeGUI, files)
|
wxenv.Program(exeGUI, files)
|
||||||
|
|
|
@ -9,15 +9,9 @@ sys.path.append('SconsTests')
|
||||||
import wxconfig
|
import wxconfig
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
# Some features needs at least scons 0.98
|
# Some features need at least SCons 1.2
|
||||||
EnsureSConsVersion(1, 2)
|
EnsureSConsVersion(1, 2)
|
||||||
|
|
||||||
# TODO: how do we use it in help?
|
|
||||||
name="Memory Card Manager"
|
|
||||||
version="1.0"
|
|
||||||
description=""
|
|
||||||
license="GPL v2"
|
|
||||||
|
|
||||||
warnings = [
|
warnings = [
|
||||||
'all',
|
'all',
|
||||||
'write-strings',
|
'write-strings',
|
||||||
|
@ -47,11 +41,11 @@ include_paths = [
|
||||||
basedir + 'Source/Core/Common/Src',
|
basedir + 'Source/Core/Common/Src',
|
||||||
basedir + 'Source/PluginSpecs',
|
basedir + 'Source/PluginSpecs',
|
||||||
basedir + 'Source/Core/DolphinWX/Src',
|
basedir + 'Source/Core/DolphinWX/Src',
|
||||||
basedir + 'Externals/MemcardManager/src',
|
basedir + 'Externals/MemcardManager/src',
|
||||||
]
|
]
|
||||||
|
|
||||||
dirs = [
|
dirs = [
|
||||||
basedir + 'Source/Core/Common/Src',
|
basedir + 'Source/Core/Common/Src',
|
||||||
basedir + '.',
|
basedir + '.',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -91,11 +85,6 @@ if sys.platform == 'win32':
|
||||||
variables = vars,
|
variables = vars,
|
||||||
ENV = os.environ,
|
ENV = os.environ,
|
||||||
BUILDERS = builders,
|
BUILDERS = builders,
|
||||||
DESCRIPTION = description,
|
|
||||||
SUMMARY = description,
|
|
||||||
LICENSE = license,
|
|
||||||
NAME = name,
|
|
||||||
VERSION = version,
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
env = Environment(
|
env = Environment(
|
||||||
|
@ -109,11 +98,6 @@ else:
|
||||||
'HOME' : os.environ['HOME']
|
'HOME' : os.environ['HOME']
|
||||||
},
|
},
|
||||||
BUILDERS = builders,
|
BUILDERS = builders,
|
||||||
DESCRIPTION = description,
|
|
||||||
SUMMARY = description,
|
|
||||||
LICENSE = license,
|
|
||||||
NAME = name,
|
|
||||||
VERSION = version,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# save the given command line options
|
# save the given command line options
|
||||||
|
@ -132,7 +116,7 @@ if not env['verbose']:
|
||||||
env['SHLINKCOMSTR'] = "Linking shared $TARGET"
|
env['SHLINKCOMSTR'] = "Linking shared $TARGET"
|
||||||
env['RANLIBCOMSTR'] = "Indexing $TARGET"
|
env['RANLIBCOMSTR'] = "Indexing $TARGET"
|
||||||
|
|
||||||
# build falvuor
|
# build flavour
|
||||||
flavour = ARGUMENTS.get('flavor')
|
flavour = ARGUMENTS.get('flavor')
|
||||||
if (flavour == 'debug'):
|
if (flavour == 'debug'):
|
||||||
compileFlags.append('-g')
|
compileFlags.append('-g')
|
||||||
|
@ -189,7 +173,6 @@ if not conf.CheckPKGConfig('0.15.0'):
|
||||||
|
|
||||||
|
|
||||||
env['HAVE_X11'] = conf.CheckPKG('x11')
|
env['HAVE_X11'] = conf.CheckPKG('x11')
|
||||||
env['HAVE_COCOA'] = 0
|
|
||||||
|
|
||||||
# handling wx flags CCFLAGS should be created before
|
# handling wx flags CCFLAGS should be created before
|
||||||
wxmods = ['adv', 'core', 'base']
|
wxmods = ['adv', 'core', 'base']
|
||||||
|
@ -201,7 +184,6 @@ env['HAVE_WX'] = conf.CheckWXConfig('2.8', wxmods, 0)
|
||||||
conf.Define('HAVE_WX', env['HAVE_WX'])
|
conf.Define('HAVE_WX', env['HAVE_WX'])
|
||||||
conf.Define('USE_WX', env['USE_WX'])
|
conf.Define('USE_WX', env['USE_WX'])
|
||||||
conf.Define('HAVE_X11', env['HAVE_X11'])
|
conf.Define('HAVE_X11', env['HAVE_X11'])
|
||||||
conf.Define('HAVE_COCOA', env['HAVE_COCOA'])
|
|
||||||
|
|
||||||
|
|
||||||
# profile
|
# profile
|
||||||
|
|
|
@ -1170,10 +1170,10 @@ static int process_scan_header(jpeg *z)
|
||||||
if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s.img_n) return e("bad SOS component count","Corrupt JPEG");
|
if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s.img_n) return e("bad SOS component count","Corrupt JPEG");
|
||||||
if (Ls != 6+2*z->scan_n) return e("bad SOS len","Corrupt JPEG");
|
if (Ls != 6+2*z->scan_n) return e("bad SOS len","Corrupt JPEG");
|
||||||
for (i=0; i < z->scan_n; ++i) {
|
for (i=0; i < z->scan_n; ++i) {
|
||||||
int id = get8(&z->s), which;
|
int ID = get8(&z->s), which;
|
||||||
int q = get8(&z->s);
|
int q = get8(&z->s);
|
||||||
for (which = 0; which < z->s.img_n; ++which)
|
for (which = 0; which < z->s.img_n; ++which)
|
||||||
if (z->img_comp[which].id == id)
|
if (z->img_comp[which].id == ID)
|
||||||
break;
|
break;
|
||||||
if (which == z->s.img_n) return 0;
|
if (which == z->s.img_n) return 0;
|
||||||
z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return e("bad DC huff","Corrupt JPEG");
|
z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return e("bad DC huff","Corrupt JPEG");
|
||||||
|
|
69
SConstruct
69
SConstruct
|
@ -1,4 +1,4 @@
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -6,10 +6,10 @@ import platform
|
||||||
|
|
||||||
# Home made tests
|
# Home made tests
|
||||||
sys.path.append('SconsTests')
|
sys.path.append('SconsTests')
|
||||||
import wxconfig
|
import wxconfig
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
# Some features needs at least SCons 1.2
|
# Some features need at least SCons 1.2
|
||||||
EnsureSConsVersion(1, 2)
|
EnsureSConsVersion(1, 2)
|
||||||
|
|
||||||
warnings = [
|
warnings = [
|
||||||
|
@ -56,7 +56,7 @@ include_paths = [
|
||||||
dirs = [
|
dirs = [
|
||||||
'Externals/Bochs_disasm',
|
'Externals/Bochs_disasm',
|
||||||
'Externals/Lua',
|
'Externals/Lua',
|
||||||
'Externals/WiiUseSrc/Src',
|
'Externals/WiiUseSrc/Src',
|
||||||
'Source/Core/Common/Src',
|
'Source/Core/Common/Src',
|
||||||
'Source/Core/Core/Src',
|
'Source/Core/Core/Src',
|
||||||
'Source/Core/DiscIO/Src',
|
'Source/Core/DiscIO/Src',
|
||||||
|
@ -176,7 +176,7 @@ if (flavour == 'debug'):
|
||||||
compileFlags.append('-ggdb')
|
compileFlags.append('-ggdb')
|
||||||
cppDefines.append('_DEBUG') #enables LOGGING
|
cppDefines.append('_DEBUG') #enables LOGGING
|
||||||
# FIXME: this disable wx debugging how do we make it work?
|
# FIXME: this disable wx debugging how do we make it work?
|
||||||
cppDefines.append('NDEBUG')
|
cppDefines.append('NDEBUG')
|
||||||
elif (flavour == 'devel'):
|
elif (flavour == 'devel'):
|
||||||
compileFlags.append('-ggdb')
|
compileFlags.append('-ggdb')
|
||||||
elif (flavour == 'fastlog'):
|
elif (flavour == 'fastlog'):
|
||||||
|
@ -249,13 +249,13 @@ elif flavour == 'prof':
|
||||||
if (env['install'] == 'global'):
|
if (env['install'] == 'global'):
|
||||||
env['prefix'] = os.path.join(env['prefix'] + os.sep)
|
env['prefix'] = os.path.join(env['prefix'] + os.sep)
|
||||||
env['binary_dir'] = env['prefix'] + 'bin/'
|
env['binary_dir'] = env['prefix'] + 'bin/'
|
||||||
env['plugin_dir'] = env['prefix'] + 'lib/dolphin-emu/'
|
env['plugin_dir'] = env['prefix'] + 'lib/dolphin-emu/'
|
||||||
env['data_dir'] = env['prefix'] + "share/dolphin-emu/"
|
env['data_dir'] = env['prefix'] + "share/dolphin-emu/"
|
||||||
else:
|
else:
|
||||||
env['prefix'] = os.path.join(env['base_dir'] + 'Binary',
|
env['prefix'] = os.path.join(env['base_dir'] + 'Binary',
|
||||||
platform.system() + '-' + platform.machine() + extra + os.sep)
|
platform.system() + '-' + platform.machine() + extra + os.sep)
|
||||||
env['binary_dir'] = env['prefix']
|
env['binary_dir'] = env['prefix']
|
||||||
env['plugin_dir'] = env['prefix'] + 'plugins/'
|
env['plugin_dir'] = env['prefix'] + 'plugins/'
|
||||||
env['data_dir'] = env['prefix']
|
env['data_dir'] = env['prefix']
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
env['plugin_dir'] = env['prefix'] + 'Dolphin.app/Contents/PlugIns/'
|
env['plugin_dir'] = env['prefix'] + 'Dolphin.app/Contents/PlugIns/'
|
||||||
|
@ -263,7 +263,7 @@ if sys.platform == 'darwin':
|
||||||
|
|
||||||
env['LIBPATH'].append(env['local_libs'])
|
env['LIBPATH'].append(env['local_libs'])
|
||||||
|
|
||||||
conf = env.Configure(custom_tests = tests,
|
conf = env.Configure(custom_tests = tests,
|
||||||
config_h="Source/Core/Common/Src/Config.h")
|
config_h="Source/Core/Common/Src/Config.h")
|
||||||
|
|
||||||
if not conf.CheckPKGConfig('0.15.0'):
|
if not conf.CheckPKGConfig('0.15.0'):
|
||||||
|
@ -280,7 +280,7 @@ if not env['HAVE_SDL']:
|
||||||
print "SDL is required"
|
print "SDL is required"
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
# Bluetooth for wii support
|
# Bluetooth for wiimote support
|
||||||
env['HAVE_BLUEZ'] = conf.CheckPKG('bluez')
|
env['HAVE_BLUEZ'] = conf.CheckPKG('bluez')
|
||||||
|
|
||||||
env['HAVE_ALSA'] = 0
|
env['HAVE_ALSA'] = 0
|
||||||
|
@ -297,7 +297,7 @@ if sys.platform != 'darwin':
|
||||||
|
|
||||||
# OpenCL
|
# OpenCL
|
||||||
env['HAVE_OPENCL'] = 0
|
env['HAVE_OPENCL'] = 0
|
||||||
if env['opencl']:
|
if env['opencl']:
|
||||||
env['HAVE_OPENCL'] = conf.CheckPKG('OpenCL')
|
env['HAVE_OPENCL'] = conf.CheckPKG('OpenCL')
|
||||||
|
|
||||||
# SOIL
|
# SOIL
|
||||||
|
@ -341,13 +341,19 @@ if sys.platform == 'darwin':
|
||||||
env['HAVE_XRANDR'] = 0
|
env['HAVE_XRANDR'] = 0
|
||||||
env['HAVE_X11'] = 0
|
env['HAVE_X11'] = 0
|
||||||
env['CC'] = "gcc-4.2"
|
env['CC'] = "gcc-4.2"
|
||||||
|
env['CFLAGS'] = ['-x', 'objective-c']
|
||||||
env['CXX'] = "g++-4.2"
|
env['CXX'] = "g++-4.2"
|
||||||
|
env['CXXFLAGS'] = ['-x', 'objective-c++']
|
||||||
env['CCFLAGS'] += ['-arch' , 'x86_64' , '-arch' , 'i386']
|
env['CCFLAGS'] += ['-arch' , 'x86_64' , '-arch' , 'i386']
|
||||||
env['LINKFLAGS'] += ['-arch' , 'x86_64' , '-arch' , 'i386']
|
env['LINKFLAGS'] += ['-arch' , 'x86_64' , '-arch' , 'i386']
|
||||||
conf.Define('MAP_32BIT', 0)
|
conf.Define('MAP_32BIT', 0)
|
||||||
|
env['FRAMEWORKS'] += ['CoreFoundation', 'CoreServices']
|
||||||
|
env['FRAMEWORKS'] += ['IOBluetooth', 'IOKit', 'OpenGL']
|
||||||
|
env['FRAMEWORKS'] += ['AudioUnit', 'CoreAudio']
|
||||||
else:
|
else:
|
||||||
env['HAVE_X11'] = conf.CheckPKG('x11')
|
env['HAVE_X11'] = conf.CheckPKG('x11')
|
||||||
env['HAVE_XRANDR'] = env['HAVE_X11'] and conf.CheckPKG('xrandr')
|
env['HAVE_XRANDR'] = env['HAVE_X11'] and conf.CheckPKG('xrandr')
|
||||||
|
env['LINKFLAGS'] += ['-pthread']
|
||||||
|
|
||||||
wxmods = ['aui', 'adv', 'core', 'base']
|
wxmods = ['aui', 'adv', 'core', 'base']
|
||||||
if env['wxgl'] or sys.platform == 'win32' or sys.platform == 'darwin':
|
if env['wxgl'] or sys.platform == 'win32' or sys.platform == 'darwin':
|
||||||
|
@ -366,14 +372,39 @@ else:
|
||||||
if env['nowx']:
|
if env['nowx']:
|
||||||
env['HAVE_WX'] = 0;
|
env['HAVE_WX'] = 0;
|
||||||
else:
|
else:
|
||||||
env['HAVE_WX'] = conf.CheckWXConfig(wxver, wxmods, 0)
|
env['HAVE_WX'] = conf.CheckWXConfig(wxver, wxmods, 0)
|
||||||
wxconfig.ParseWXConfig(env)
|
wxconfig.ParseWXConfig(env)
|
||||||
|
# wx-config wants us to link with the OS X QuickTime framework
|
||||||
|
# which is not available for x86_64 and we don't use it anyway.
|
||||||
|
# Strip it out to silence some harmless linker warnings.
|
||||||
|
if env['FRAMEWORKS'].count('QuickTime'):
|
||||||
|
env['FRAMEWORKS'].remove('QuickTime')
|
||||||
|
# Make sure that the libraries claimed by wx-config are valid
|
||||||
env['HAVE_WX'] = conf.CheckPKG('c')
|
env['HAVE_WX'] = conf.CheckPKG('c')
|
||||||
|
|
||||||
if not env['HAVE_WX'] and not env['nowx']:
|
if not env['HAVE_WX'] and not env['nowx']:
|
||||||
print "WX not found - see config.log"
|
print "WX libraries not found - see config.log"
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
|
if not sys.platform == 'win32':
|
||||||
|
if not conf.CheckPKG('Cg'):
|
||||||
|
print "Must have Cg framework from NVidia to build"
|
||||||
|
Exit(1)
|
||||||
|
if not conf.CheckPKG('GLEW'):
|
||||||
|
print "Must have GLEW to build"
|
||||||
|
Exit(1)
|
||||||
|
|
||||||
|
if not sys.platform == 'win32' and not sys.platform == 'darwin':
|
||||||
|
if not conf.CheckPKG('GL'):
|
||||||
|
print "Must have OpenGL to build"
|
||||||
|
Exit(1)
|
||||||
|
if not conf.CheckPKG('GLU'):
|
||||||
|
print "Must have GLU to build"
|
||||||
|
Exit(1)
|
||||||
|
if not conf.CheckPKG('CgGL'):
|
||||||
|
print "Must have CgGl to build"
|
||||||
|
Exit(1)
|
||||||
|
|
||||||
env['HAVE_ZLIB'] = conf.CheckPKG('z')
|
env['HAVE_ZLIB'] = conf.CheckPKG('z')
|
||||||
if not ['HAVE_ZLIB']:
|
if not ['HAVE_ZLIB']:
|
||||||
print "zlib is required"
|
print "zlib is required"
|
||||||
|
@ -390,7 +421,7 @@ if sys.platform == 'linux2':
|
||||||
|
|
||||||
env['NOJIT'] = 0
|
env['NOJIT'] = 0
|
||||||
if env['nojit']:
|
if env['nojit']:
|
||||||
env['NOJIT'] = 1
|
env['NOJIT'] = 1
|
||||||
|
|
||||||
conf.Define('NOJIT', env['NOJIT'])
|
conf.Define('NOJIT', env['NOJIT'])
|
||||||
|
|
||||||
|
@ -420,16 +451,16 @@ env['LUA_USE_MACOSX'] = 0
|
||||||
env['LUA_USE_LINUX'] = 0
|
env['LUA_USE_LINUX'] = 0
|
||||||
env['LUA_USE_POSIX'] = 0
|
env['LUA_USE_POSIX'] = 0
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
env['LUA_USE_MACOSX'] = 1
|
env['LUA_USE_MACOSX'] = 1
|
||||||
elif sys.platform == 'linux2':
|
elif sys.platform == 'linux2':
|
||||||
env['LUA_USE_LINUX'] = 1
|
env['LUA_USE_LINUX'] = 1
|
||||||
|
|
||||||
conf.Define('LUA_USE_MACOSX', env['LUA_USE_MACOSX'])
|
conf.Define('LUA_USE_MACOSX', env['LUA_USE_MACOSX'])
|
||||||
conf.Define('LUA_USE_LINUX', env['LUA_USE_LINUX'])
|
conf.Define('LUA_USE_LINUX', env['LUA_USE_LINUX'])
|
||||||
|
|
||||||
# Profiling
|
# Profiling
|
||||||
env['USE_OPROFILE'] = 0
|
env['USE_OPROFILE'] = 0
|
||||||
if (flavour == 'prof'):
|
if (flavour == 'prof'):
|
||||||
proflibs = [ '/usr/lib/oprofile', '/usr/local/lib/oprofile' ]
|
proflibs = [ '/usr/lib/oprofile', '/usr/local/lib/oprofile' ]
|
||||||
env['LIBPATH'].append(proflibs)
|
env['LIBPATH'].append(proflibs)
|
||||||
env['RPATH'].append(proflibs)
|
env['RPATH'].append(proflibs)
|
||||||
|
@ -442,7 +473,7 @@ conf.Define('USE_OPROFILE', env['USE_OPROFILE'])
|
||||||
# After all configuration tests are done
|
# After all configuration tests are done
|
||||||
conf.Finish()
|
conf.Finish()
|
||||||
|
|
||||||
rev = utils.GenerateRevFile(env['flavor'],
|
rev = utils.GenerateRevFile(env['flavor'],
|
||||||
"Source/Core/Common/Src/svnrev_template.h",
|
"Source/Core/Common/Src/svnrev_template.h",
|
||||||
"Source/Core/Common/Src/svnrev.h")
|
"Source/Core/Common/Src/svnrev.h")
|
||||||
# Print a nice progress indication when not compiling
|
# Print a nice progress indication when not compiling
|
||||||
|
@ -479,7 +510,7 @@ for subdir in dirs:
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
env.Install(env['data_dir'], 'Data/Sys')
|
env.Install(env['data_dir'], 'Data/Sys')
|
||||||
env.Install(env['data_dir'], 'Data/User')
|
env.Install(env['data_dir'], 'Data/User')
|
||||||
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
||||||
'Source/Core/DolphinWX/resources/Dolphin.icns')
|
'Source/Core/DolphinWX/resources/Dolphin.icns')
|
||||||
else:
|
else:
|
||||||
env.InstallAs(env['data_dir'] + 'sys', 'Data/Sys')
|
env.InstallAs(env['data_dir'] + 'sys', 'Data/Sys')
|
||||||
|
@ -496,7 +527,7 @@ if env['bundle']:
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
env.Command('.', env['binary_dir'] +
|
env.Command('.', env['binary_dir'] +
|
||||||
'Dolphin.app/Contents/MacOS/Dolphin', './osx_make_dmg.sh')
|
'Dolphin.app/Contents/MacOS/Dolphin', './osx_make_dmg.sh')
|
||||||
|
|
||||||
#TODO clean all bundles
|
#TODO clean all bundles
|
||||||
#env.Clean(all, 'dolphin-*' + '.tar.bz2')
|
#env.Clean(all, 'dolphin-*' + '.tar.bz2')
|
||||||
#env.Clean(all, 'Binary/Dolphin-r*' + '.dmg')
|
#env.Clean(all, 'Binary/Dolphin-r*' + '.dmg')
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
|
|
||||||
Import('env')
|
Import('env')
|
||||||
|
@ -11,22 +10,19 @@ files = [
|
||||||
'AudioCommon.cpp',
|
'AudioCommon.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
acenv = env.Clone()
|
if env['HAVE_OPENAL']:
|
||||||
|
|
||||||
if acenv['HAVE_OPENAL']:
|
|
||||||
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
||||||
|
|
||||||
if acenv['HAVE_AO']:
|
if env['HAVE_AO']:
|
||||||
files += [ 'AOSoundStream.cpp' ]
|
files += [ 'AOSoundStream.cpp' ]
|
||||||
|
|
||||||
if acenv['HAVE_ALSA']:
|
if env['HAVE_ALSA']:
|
||||||
files += [ 'AlsaSoundStream.cpp' ]
|
files += [ 'AlsaSoundStream.cpp' ]
|
||||||
|
|
||||||
if acenv['HAVE_PULSEAUDIO']:
|
if env['HAVE_PULSEAUDIO']:
|
||||||
files += [ 'PulseAudioStream.cpp' ]
|
files += [ 'PulseAudioStream.cpp' ]
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
files += [ 'CoreAudioSoundStream.cpp' ]
|
files += [ 'CoreAudioSoundStream.cpp' ]
|
||||||
acenv['FRAMEWORKS'] = [ 'CoreAudio', 'AudioUnit' ]
|
|
||||||
|
|
||||||
acenv.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|
env.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|
||||||
|
|
|
@ -47,5 +47,4 @@ if sys.platform == 'win32':
|
||||||
files += [ "ExtendedTrace.cpp" ]
|
files += [ "ExtendedTrace.cpp" ]
|
||||||
files += [ "stdafx.cpp" ]
|
files += [ "stdafx.cpp" ]
|
||||||
|
|
||||||
env_common = env.Clone()
|
env.StaticLibrary(env['local_libs'] + "common", files)
|
||||||
env_common.StaticLibrary(env['local_libs'] + "common", files)
|
|
||||||
|
|
|
@ -25,9 +25,7 @@ files = [
|
||||||
"DSPTables.cpp",
|
"DSPTables.cpp",
|
||||||
"Jit/DSPJitExtOps.cpp",
|
"Jit/DSPJitExtOps.cpp",
|
||||||
"Jit/DSPJitUtil.cpp",
|
"Jit/DSPJitUtil.cpp",
|
||||||
"Jit/DSPJitMisc.cpp",
|
"Jit/DSPJitMisc.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
acenv = env.Clone()
|
env.StaticLibrary(env['local_libs'] + 'dspcore', files)
|
||||||
|
|
||||||
acenv.StaticLibrary(env['local_libs'] + 'dspcore', files, LIBS = [ 'common'] )
|
|
||||||
|
|
|
@ -12,6 +12,4 @@ files = [
|
||||||
'MemoryView.cpp',
|
'MemoryView.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
acenv = env.Clone()
|
env.StaticLibrary(env['local_libs'] + 'debugger_ui_util', files)
|
||||||
|
|
||||||
acenv.StaticLibrary(env['local_libs'] + 'debugger_ui_util', files)
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include <wx/textctrl.h>
|
#include <wx/textctrl.h>
|
||||||
#include <wx/listbox.h>
|
#include <wx/listbox.h>
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/aui/aui.h>
|
|
||||||
|
|
||||||
#include "Thread.h"
|
#include "Thread.h"
|
||||||
#include "CoreParameter.h"
|
#include "CoreParameter.h"
|
||||||
|
|
|
@ -17,15 +17,14 @@ files = [
|
||||||
"RegisterView.cpp",
|
"RegisterView.cpp",
|
||||||
"JitWindow.cpp",
|
"JitWindow.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
wxenv = env.Clone()
|
wxenv = env.Clone()
|
||||||
wxenv.Append(
|
wxenv.Append(
|
||||||
CPPDEFINES = [
|
CPPDEFINES = [
|
||||||
'wxNEEDS_CHARPP'
|
'wxNEEDS_CHARPP'
|
||||||
],
|
|
||||||
LINKFLAGS = [
|
|
||||||
'-pthread',
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
libs = [
|
libs = [
|
||||||
'common',
|
'common',
|
||||||
'debugger_ui_util'
|
'debugger_ui_util'
|
||||||
|
|
|
@ -26,7 +26,4 @@ files = [
|
||||||
'AES/aes_cbc.c',
|
'AES/aes_cbc.c',
|
||||||
'AES/aes_core.c',
|
'AES/aes_core.c',
|
||||||
]
|
]
|
||||||
libs = [
|
|
||||||
'common'
|
|
||||||
]
|
|
||||||
env.StaticLibrary(env['local_libs'] + 'discio', files, LIBS = libs)
|
|
||||||
|
|
|
@ -43,9 +43,9 @@ if wxenv['HAVE_WX']:
|
||||||
'NetWindow.cpp',
|
'NetWindow.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
CPPDEFINES = [
|
CPPDEFINES = [
|
||||||
'wxNEEDS_CHARPP',
|
'wxNEEDS_CHARPP',
|
||||||
],
|
],
|
||||||
|
|
||||||
libs = [ 'debwx', 'debugger_ui_util'] + libs
|
libs = [ 'debwx', 'debugger_ui_util'] + libs
|
||||||
else:
|
else:
|
||||||
|
@ -54,34 +54,11 @@ else:
|
||||||
]
|
]
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
files += [ 'cocoaApp.m', ]
|
files += [ 'cocoaApp.m', ]
|
||||||
compileFlags = [
|
|
||||||
'-x',
|
|
||||||
'objective-c++',
|
|
||||||
]
|
|
||||||
wxenv.Append(
|
|
||||||
CXXFLAGS = compileFlags,
|
|
||||||
LINKFLAGS = [
|
|
||||||
'-pthread', '-framework', 'IOKit'
|
|
||||||
],
|
|
||||||
LIBS = libs
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
wxenv.Append(
|
|
||||||
LINKFLAGS = [
|
|
||||||
'-pthread',
|
|
||||||
],
|
|
||||||
LIBS = libs
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
||||||
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
||||||
|
|
||||||
wxenv['FRAMEWORKS'] = ['Cocoa', 'CoreFoundation', 'System']
|
|
||||||
wxenv.Plist(
|
wxenv.Plist(
|
||||||
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
||||||
Value(dict(
|
Value(dict(
|
||||||
|
@ -100,11 +77,13 @@ else:
|
||||||
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'
|
||||||
|
|
||||||
|
wxenv.Append(
|
||||||
|
LIBS = libs
|
||||||
|
)
|
||||||
|
|
||||||
if wxenv['HAVE_X11']:
|
if wxenv['HAVE_X11']:
|
||||||
files += [ 'X11Utils.cpp' ]
|
files += [ 'X11Utils.cpp' ]
|
||||||
|
|
||||||
#objects = [ wxenv.Object(srcFile) for srcFile in files ]
|
|
||||||
|
|
||||||
if wxenv['HAVE_WX']:
|
if wxenv['HAVE_WX']:
|
||||||
wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
|
wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -102,11 +102,11 @@ bool EventHandler::TestEvent (Keys k, sf::Event e)
|
||||||
|
|
||||||
#if defined HAVE_WX && HAVE_WX
|
#if defined HAVE_WX && HAVE_WX
|
||||||
// Taken from wxw source code
|
// Taken from wxw source code
|
||||||
sf::Key::Code EventHandler::wxCharCodeToSF(int id)
|
sf::Key::Code EventHandler::wxCharCodeToSF(int charcode)
|
||||||
{
|
{
|
||||||
sf::Key::Code sfKey;
|
sf::Key::Code sfKey;
|
||||||
|
|
||||||
switch (id) {
|
switch (charcode) {
|
||||||
// case WXK_CANCEL: sfKey = sf::Key::Cancel; break;
|
// case WXK_CANCEL: sfKey = sf::Key::Cancel; break;
|
||||||
// case WXK_BACK: sfKey = sf::Key::BackSpace; break;
|
// case WXK_BACK: sfKey = sf::Key::BackSpace; break;
|
||||||
case WXK_TAB: sfKey = sf::Key::Tab; break;
|
case WXK_TAB: sfKey = sf::Key::Tab; break;
|
||||||
|
@ -181,12 +181,12 @@ sf::Key::Code EventHandler::wxCharCodeToSF(int id)
|
||||||
default:
|
default:
|
||||||
|
|
||||||
// To lower (will tolower work on windows?)
|
// To lower (will tolower work on windows?)
|
||||||
if (id >= 'A' && id <= 'Z')
|
if (charcode >= 'A' && charcode <= 'Z')
|
||||||
id = id - 'A' + 'a';
|
charcode = charcode - 'A' + 'a';
|
||||||
|
|
||||||
if ((id >= 'a' && id <= 'z') ||
|
if ((charcode >= 'a' && charcode <= 'z') ||
|
||||||
(id >= '0' && id <= '9'))
|
(charcode >= '0' && charcode <= '9'))
|
||||||
sfKey = (sf::Key::Code)id;
|
sfKey = (sf::Key::Code)charcode;
|
||||||
else
|
else
|
||||||
sfKey = sf::Key::Count; // Invalid key
|
sfKey = sf::Key::Count; // Invalid key
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
import sys
|
import sys
|
||||||
Import('env')
|
Import('env')
|
||||||
icenv = env.Clone()
|
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
'Configuration.cpp',
|
'Configuration.cpp',
|
||||||
|
@ -21,7 +20,7 @@ if env['HAVE_WX']:
|
||||||
"WXInputBase.cpp",
|
"WXInputBase.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
if icenv['HAVE_SDL']:
|
if env['HAVE_SDL']:
|
||||||
files += [
|
files += [
|
||||||
'ControllerInterface/SDL/SDL.cpp'
|
'ControllerInterface/SDL/SDL.cpp'
|
||||||
]
|
]
|
||||||
|
@ -32,11 +31,10 @@ if sys.platform == 'darwin':
|
||||||
'ControllerInterface/OSX/OSXKeyboard.mm',
|
'ControllerInterface/OSX/OSXKeyboard.mm',
|
||||||
'ControllerInterface/OSX/OSXMouse.mm'
|
'ControllerInterface/OSX/OSXMouse.mm'
|
||||||
]
|
]
|
||||||
icenv['FRAMEWORKS'] = ['IOKit']
|
|
||||||
|
|
||||||
if sys.platform == 'linux2':
|
if sys.platform == 'linux2':
|
||||||
files += [
|
files += [
|
||||||
'ControllerInterface/Xlib/Xlib.cpp'
|
'ControllerInterface/Xlib/Xlib.cpp'
|
||||||
]
|
]
|
||||||
|
|
||||||
icenv.StaticLibrary(env['local_libs'] + "inputcommon", files)
|
env.StaticLibrary(env['local_libs'] + "inputcommon", files)
|
||||||
|
|
|
@ -37,12 +37,9 @@ files = [
|
||||||
'HiresTextures.cpp',
|
'HiresTextures.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if env['HAVE_OPENCL']:
|
||||||
env_vcommon = env.Clone()
|
|
||||||
|
|
||||||
if env_vcommon['HAVE_OPENCL']:
|
|
||||||
files += [
|
files += [
|
||||||
'OpenCL/OCLTextureDecoder.cpp',
|
'OpenCL/OCLTextureDecoder.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
env_vcommon.StaticLibrary(env['local_libs'] + "videocommon", files)
|
env.StaticLibrary(env['local_libs'] + "videocommon", files)
|
||||||
|
|
|
@ -14,9 +14,6 @@ libs = [
|
||||||
'common',
|
'common',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
dtenv.Append(LIBS = libs)
|
dtenv.Append(LIBS = libs)
|
||||||
if sys.platform == 'darwin':
|
|
||||||
dtenv['FRAMEWORKS'] = ['CoreFoundation', 'Cocoa', 'System']
|
|
||||||
|
|
||||||
dtenv.Program(dtenv['binary_dir'] + 'dsptool', files)
|
dtenv.Program(dtenv['binary_dir'] + 'dsptool', files)
|
||||||
|
|
|
@ -33,7 +33,5 @@ if dspenv['HAVE_WX']:
|
||||||
dspenv.Append(
|
dspenv.Append(
|
||||||
LIBS = [ 'common', 'audiocommon' ],
|
LIBS = [ 'common', 'audiocommon' ],
|
||||||
)
|
)
|
||||||
if sys.platform == 'darwin':
|
|
||||||
dspenv['FRAMEWORKS'] = [ 'CoreAudio', 'CoreServices', 'AudioUnit' ]
|
|
||||||
|
|
||||||
dspenv.SharedLibrary(env['plugin_dir']+name, files)
|
dspenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
#include <wx/sizer.h>
|
#include <wx/sizer.h>
|
||||||
#include <wx/listctrl.h>
|
#include <wx/listctrl.h>
|
||||||
#include <wx/statline.h>
|
#include <wx/statline.h>
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
//id is an objective-c++ type, wx team need to change this
|
||||||
|
#define id toolid
|
||||||
|
#endif
|
||||||
#include <wx/aui/aui.h>
|
#include <wx/aui/aui.h>
|
||||||
|
|
||||||
#include "disassemble.h"
|
#include "disassemble.h"
|
||||||
|
|
|
@ -24,14 +24,14 @@ if env['HAVE_WX']:
|
||||||
]
|
]
|
||||||
|
|
||||||
lleenv = env.Clone()
|
lleenv = env.Clone()
|
||||||
|
|
||||||
if env['HAVE_WX']:
|
if env['HAVE_WX']:
|
||||||
lleenv.Append(
|
lleenv.Append(
|
||||||
LIBS = [ 'dspcore', 'audiocommon', 'common', 'debugger_ui_util' ],
|
LIBS = [ 'dspcore', 'audiocommon', 'common', 'debugger_ui_util' ],
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
lleenv.Append(
|
lleenv.Append(
|
||||||
LIBS = [ 'dspcore', 'audiocommon', 'common' ],
|
LIBS = [ 'dspcore', 'audiocommon', 'common' ],
|
||||||
)
|
)
|
||||||
if sys.platform == 'darwin':
|
|
||||||
lleenv['FRAMEWORKS'] = [ 'CoreAudio', 'CoreServices', 'AudioUnit' ]
|
|
||||||
lleenv.SharedLibrary(env['plugin_dir']+name, files)
|
lleenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -15,6 +15,7 @@ files = [
|
||||||
'GCPad.cpp',
|
'GCPad.cpp',
|
||||||
'Rumble.cpp',
|
'Rumble.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
if padenv['HAVE_WX']:
|
if padenv['HAVE_WX']:
|
||||||
files += [
|
files += [
|
||||||
'ConfigJoypad.cpp',
|
'ConfigJoypad.cpp',
|
||||||
|
@ -25,7 +26,4 @@ padenv.Append(
|
||||||
LIBS = [ 'inputcommon', 'common', ],
|
LIBS = [ 'inputcommon', 'common', ],
|
||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
padenv['FRAMEWORKS'] = ['CoreFoundation', 'System' ]
|
|
||||||
|
|
||||||
padenv.SharedLibrary(env['plugin_dir']+name, files)
|
padenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -15,7 +15,4 @@ padenv.Append(
|
||||||
LIBS = [ 'inputplugincommon', 'inputcommon', 'common' ],
|
LIBS = [ 'inputplugincommon', 'inputcommon', 'common' ],
|
||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
padenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'Cocoa', 'IOKit' ]
|
|
||||||
|
|
||||||
padenv.SharedLibrary(env['plugin_dir']+name, files)
|
padenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -25,8 +25,6 @@ files = [
|
||||||
'PostProcessing.cpp',
|
'PostProcessing.cpp',
|
||||||
'FramebufferManager.cpp',
|
'FramebufferManager.cpp',
|
||||||
]
|
]
|
||||||
compileFlags = [
|
|
||||||
]
|
|
||||||
linkFlags = [
|
linkFlags = [
|
||||||
]
|
]
|
||||||
libs = [
|
libs = [
|
||||||
|
@ -50,45 +48,10 @@ if gfxenv['HAVE_WX']:
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
files += [ 'cocoaGL.m' ]
|
files += [ 'cocoaGL.m' ]
|
||||||
compileFlags += [
|
|
||||||
'-x',
|
|
||||||
'objective-c++',
|
|
||||||
]
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
files += [ 'OS/Win32.cpp' ]
|
files += [ 'OS/Win32.cpp' ]
|
||||||
|
|
||||||
tests = {'CheckPKG' : utils.CheckPKG}
|
|
||||||
conf = gfxenv.Configure(custom_tests = tests,
|
|
||||||
config_h=env['base_dir']+"Source/Core/Common/Src/Config.h")
|
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
gfxenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'OpenGL', 'Cocoa', 'Cg']
|
|
||||||
if gfxenv['HAVE_OPENCL']:
|
|
||||||
gfxenv['FRAMEWORKS'] += ['OpenCL']
|
|
||||||
|
|
||||||
conf.CheckPKG('OpenGL')
|
|
||||||
if not conf.CheckPKG('Cg'):
|
|
||||||
print name + " must have Cg framework from nvidia to be build"
|
|
||||||
Return()
|
|
||||||
|
|
||||||
elif sys.platform == 'win32':
|
|
||||||
print name + " is assuming that you have opengl, glu, cg, and cggl"
|
|
||||||
else:
|
|
||||||
if not (conf.CheckPKG('GL') and conf.CheckPKG('GLU')):
|
|
||||||
print name + " must have opengl and glu to be build"
|
|
||||||
Return()
|
|
||||||
|
|
||||||
if not conf.CheckPKG('Cg') or not conf.CheckPKG('CgGL'):
|
|
||||||
print name + " must have cg and cggl to be build"
|
|
||||||
Return()
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
print name + " is assuming that you have glew"
|
|
||||||
else:
|
|
||||||
if not conf.CheckPKG('GLEW'):
|
|
||||||
print name + " must have glew to be build"
|
|
||||||
Return()
|
|
||||||
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
files += [
|
files += [
|
||||||
'OS/Win32.cpp'
|
'OS/Win32.cpp'
|
||||||
|
@ -98,16 +61,10 @@ if sys.platform == 'win32':
|
||||||
]
|
]
|
||||||
gfxenv['CPPPATH'] += libs
|
gfxenv['CPPPATH'] += libs
|
||||||
|
|
||||||
conf.Finish()
|
|
||||||
|
|
||||||
# Sanity check
|
# Sanity check
|
||||||
if gfxenv['USE_WX'] and not gfxenv['HAVE_WX']:
|
if gfxenv['USE_WX'] and not gfxenv['HAVE_WX']:
|
||||||
print "Must have wx to use wxgl"
|
print "Must have wx to use wxgl"
|
||||||
Return()
|
Return()
|
||||||
gfxenv.Append(
|
|
||||||
CXXFLAGS = compileFlags,
|
|
||||||
LINKFLAGS = linkFlags,
|
|
||||||
)
|
|
||||||
|
|
||||||
gfxenv.SharedLibrary(
|
gfxenv.SharedLibrary(
|
||||||
env['plugin_dir']+name,
|
env['plugin_dir']+name,
|
||||||
|
|
|
@ -47,34 +47,9 @@ gfxenv = env.Clone()
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
files += [ 'Win32.cpp' ]
|
files += [ 'Win32.cpp' ]
|
||||||
|
|
||||||
tests = {'CheckPKG' : utils.CheckPKG}
|
|
||||||
conf = gfxenv.Configure(custom_tests = tests,
|
|
||||||
config_h=env['base_dir']+"Source/Core/Common/Src/Config.h")
|
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
gfxenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'OpenGL', 'Cocoa', 'Cg']
|
|
||||||
compileFlags = ['-x','objective-c++',]
|
|
||||||
files += [ 'cocoaGL.m', ]
|
files += [ 'cocoaGL.m', ]
|
||||||
|
|
||||||
conf.CheckPKG('OpenGL')
|
|
||||||
if gfxenv['HAVE_OPENCL']:
|
|
||||||
gfxenv['FRAMEWORKS'] += ['OpenCL']
|
|
||||||
|
|
||||||
elif sys.platform == 'win32':
|
|
||||||
print name + " is assuming that you have opengl, glu, cg, and cggl"
|
|
||||||
else:
|
|
||||||
if not (conf.CheckPKG('GL') and conf.CheckPKG('GLU')):
|
|
||||||
print name + " must have opengl and glu to be build"
|
|
||||||
Return()
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
print name + " is assuming that you have glew"
|
|
||||||
else:
|
|
||||||
if not conf.CheckPKG('GLEW'):
|
|
||||||
print name + " must have glew to be build"
|
|
||||||
Return()
|
|
||||||
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
files += [
|
files += [
|
||||||
'Win32.cpp'
|
'Win32.cpp'
|
||||||
|
@ -84,15 +59,10 @@ if sys.platform == 'win32':
|
||||||
]
|
]
|
||||||
gfxenv['CPPPATH'] += libs
|
gfxenv['CPPPATH'] += libs
|
||||||
|
|
||||||
conf.Finish()
|
|
||||||
|
|
||||||
# Sanity check
|
# Sanity check
|
||||||
if gfxenv['USE_WX'] and not gfxenv['HAVE_WX']:
|
if gfxenv['USE_WX'] and not gfxenv['HAVE_WX']:
|
||||||
print "Must have wx to use wxgl"
|
print "Must have wx to use wxgl"
|
||||||
Return()
|
Return()
|
||||||
gfxenv.Append(
|
|
||||||
LINKFLAGS = linkFlags,
|
|
||||||
)
|
|
||||||
|
|
||||||
gfxenv.SharedLibrary(
|
gfxenv.SharedLibrary(
|
||||||
env['plugin_dir']+name,
|
env['plugin_dir']+name,
|
||||||
|
|
|
@ -19,6 +19,7 @@ files = [
|
||||||
"Rumble.cpp",
|
"Rumble.cpp",
|
||||||
"UDPWiimote.cpp"
|
"UDPWiimote.cpp"
|
||||||
]
|
]
|
||||||
|
|
||||||
if wmenv['HAVE_WX']:
|
if wmenv['HAVE_WX']:
|
||||||
files += [
|
files += [
|
||||||
"ConfigBasicDlg.cpp",
|
"ConfigBasicDlg.cpp",
|
||||||
|
@ -28,27 +29,20 @@ if wmenv['HAVE_WX']:
|
||||||
"ConfigRecording.cpp",
|
"ConfigRecording.cpp",
|
||||||
"FillReport.cpp",
|
"FillReport.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
libs = [ 'common', 'inputcommon' ]
|
libs = [ 'common', 'inputcommon' ]
|
||||||
|
|
||||||
cxxflags = [ ]
|
cxxflags = [ ]
|
||||||
|
|
||||||
if wmenv['HAVE_WIIUSE']:
|
if wmenv['HAVE_WIIUSE']:
|
||||||
libs += [ 'wiiuse' ]
|
libs += [ 'wiiuse' ]
|
||||||
files += [ "wiimote_real.cpp" ]
|
files += [ "wiimote_real.cpp" ]
|
||||||
files += [ "ReadWiimote.cpp" ]
|
files += [ "ReadWiimote.cpp" ]
|
||||||
cxxflags += ['-DHAVE_WIIUSE']
|
cxxflags += ['-DHAVE_WIIUSE']
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
wmenv.Append(
|
||||||
wmenv.Append(
|
CXXFLAGS = cxxflags,
|
||||||
CXXFLAGS = cxxflags,
|
LIBS = libs,
|
||||||
LINKFLAGS = ['-framework', 'IOBluetooth'],
|
)
|
||||||
LIBS = libs,
|
|
||||||
)
|
|
||||||
wmenv['FRAMEWORKS'] = ['Cocoa', 'System']
|
|
||||||
else:
|
|
||||||
wmenv.Append(
|
|
||||||
CXXFLAGS = cxxflags,
|
|
||||||
LIBS = libs,
|
|
||||||
)
|
|
||||||
|
|
||||||
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -23,7 +23,4 @@ wiinewenv.Append(
|
||||||
LIBS = [ 'inputplugincommon', 'inputcommon', 'common' ],
|
LIBS = [ 'inputplugincommon', 'inputcommon', 'common' ],
|
||||||
)
|
)
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
|
||||||
wiinewenv['FRAMEWORKS'] = ['CoreFoundation', 'System', 'Cocoa', 'IOKit' ]
|
|
||||||
|
|
||||||
wiinewenv.SharedLibrary(env['plugin_dir']+name, files)
|
wiinewenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||||
|
|
|
@ -11,9 +11,9 @@ files = [
|
||||||
"UnitTests.cpp",
|
"UnitTests.cpp",
|
||||||
]
|
]
|
||||||
|
|
||||||
libs = [
|
libs = [
|
||||||
'dspcore', 'common',
|
'dspcore', 'common',
|
||||||
]
|
]
|
||||||
|
|
||||||
unitenv.Append( LIBS = libs)
|
unitenv.Append(LIBS = libs)
|
||||||
unitenv.Program(env['binary_dir'] + 'tester', files)
|
unitenv.Program(env['binary_dir'] + 'tester', files)
|
||||||
|
|
Loading…
Reference in New Issue