mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Get rid of a number of unnecessary env.Clones.
Use SCons' convenient # shorthand for the root of our tree. Also various minor cleanup of SConscripts. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5915 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -4,25 +4,24 @@ Import('env')
|
||||
import sys
|
||||
|
||||
files = [
|
||||
'AudioCommonConfig.cpp',
|
||||
'WaveFile.cpp',
|
||||
'Mixer.cpp',
|
||||
'AudioCommon.cpp',
|
||||
]
|
||||
|
||||
if sys.platform == 'win32':
|
||||
files += [ 'DSoundStream.cpp' ]
|
||||
'AudioCommonConfig.cpp',
|
||||
'WaveFile.cpp',
|
||||
'Mixer.cpp',
|
||||
'AudioCommon.cpp',
|
||||
]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
files += [ 'CoreAudioSoundStream.cpp' ]
|
||||
files += [ 'CoreAudioSoundStream.cpp' ]
|
||||
else:
|
||||
if env['HAVE_ALSA']:
|
||||
files += [ 'AlsaSoundStream.cpp' ]
|
||||
if env['HAVE_AO']:
|
||||
files += [ 'AOSoundStream.cpp' ]
|
||||
if env['HAVE_OPENAL'] or sys.platform == 'win32':
|
||||
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
||||
if env['HAVE_PULSEAUDIO']:
|
||||
files += [ 'PulseAudioStream.cpp' ]
|
||||
|
||||
if env['HAVE_ALSA']:
|
||||
files += [ 'AlsaSoundStream.cpp' ]
|
||||
if env['HAVE_AO']:
|
||||
files += [ 'AOSoundStream.cpp' ]
|
||||
if env['HAVE_OPENAL'] or sys.platform == 'win32':
|
||||
files += [ 'OpenALStream.cpp', 'aldlist.cpp' ]
|
||||
if env['HAVE_PULSEAUDIO']:
|
||||
files += [ 'PulseAudioStream.cpp' ]
|
||||
if sys.platform == 'win32':
|
||||
files += [ 'DSoundStream.cpp' ]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|
||||
|
@ -57,6 +57,7 @@ extern const char *netplay_dolphin_ver;
|
||||
#undef STACKALIGN
|
||||
#define STACKALIGN __attribute__((__force_align_arg_pointer__))
|
||||
#endif
|
||||
#define HAVE_WIIUSE 1
|
||||
// We use wxWidgets on OS X only if it is version 2.9+ with Cocoa support.
|
||||
#ifdef __WXOSX_COCOA__
|
||||
#define HAVE_WX 1
|
||||
@ -114,6 +115,10 @@ extern const char *netplay_dolphin_ver;
|
||||
#include "Config.h" // SCons autoconfiguration defines
|
||||
#endif
|
||||
|
||||
#if defined __linux__ && HAVE_BLUEZ
|
||||
#define HAVE_WIIUSE 1
|
||||
#endif
|
||||
|
||||
// Windows compatibility
|
||||
#ifndef _WIN32
|
||||
#include <limits.h>
|
||||
|
@ -71,6 +71,7 @@ void Jit64::regimmop(int d, int a, bool binary, u32 value, Operation doop, void
|
||||
{
|
||||
// a == 0, which for these instructions imply value = 0
|
||||
gpr.SetImmediate32(d, value);
|
||||
// XXX soren
|
||||
gpr.StoreFromX64(d);
|
||||
}
|
||||
else
|
||||
|
@ -126,16 +126,15 @@ files = [
|
||||
if sys.platform == 'win32':
|
||||
files += [ "HW/BBA-TAP/TAP_Win32.cpp", "stdafx.cpp" ]
|
||||
elif sys.platform == 'darwin':
|
||||
files += [ "HW/BBA-TAP/TAP_Apple.cpp"]
|
||||
files += [ "HW/BBA-TAP/TAP_Apple.cpp" ]
|
||||
else:
|
||||
files += [ "HW/BBA-TAP/TAP_Unix.cpp"]
|
||||
files += [ "HW/BBA-TAP/TAP_Unix.cpp" ]
|
||||
|
||||
libs = [
|
||||
'bdisasm',
|
||||
'inputcommon',
|
||||
'lua',
|
||||
'sfml-network'
|
||||
'sfml-network',
|
||||
]
|
||||
|
||||
env_core = env.Clone();
|
||||
env_core.StaticLibrary(env['local_libs'] + 'core', files, LIBS=libs)
|
||||
env.StaticLibrary(env['local_libs'] + 'core', files, LIBS = libs)
|
||||
|
@ -3,29 +3,29 @@
|
||||
Import('env')
|
||||
|
||||
files = [
|
||||
"assemble.cpp",
|
||||
"disassemble.cpp",
|
||||
"DSPAccelerator.cpp",
|
||||
"DSPIntCCUtil.cpp",
|
||||
"DSPIntExtOps.cpp",
|
||||
"DSPHWInterface.cpp",
|
||||
"DSPMemoryMap.cpp",
|
||||
"DSPStacks.cpp",
|
||||
"DSPAnalyzer.cpp",
|
||||
"DspIntArithmetic.cpp",
|
||||
"DspIntBranch.cpp",
|
||||
"DspIntLoadStore.cpp",
|
||||
"DspIntMisc.cpp",
|
||||
"DspIntMultiplier.cpp",
|
||||
"DSPEmitter.cpp",
|
||||
"DSPCodeUtil.cpp",
|
||||
"LabelMap.cpp",
|
||||
"DSPInterpreter.cpp",
|
||||
"DSPCore.cpp",
|
||||
"DSPTables.cpp",
|
||||
"Jit/DSPJitExtOps.cpp",
|
||||
"Jit/DSPJitUtil.cpp",
|
||||
"Jit/DSPJitMisc.cpp",
|
||||
]
|
||||
"assemble.cpp",
|
||||
"disassemble.cpp",
|
||||
"DSPAccelerator.cpp",
|
||||
"DSPIntCCUtil.cpp",
|
||||
"DSPIntExtOps.cpp",
|
||||
"DSPHWInterface.cpp",
|
||||
"DSPMemoryMap.cpp",
|
||||
"DSPStacks.cpp",
|
||||
"DSPAnalyzer.cpp",
|
||||
"DspIntArithmetic.cpp",
|
||||
"DspIntBranch.cpp",
|
||||
"DspIntLoadStore.cpp",
|
||||
"DspIntMisc.cpp",
|
||||
"DspIntMultiplier.cpp",
|
||||
"DSPEmitter.cpp",
|
||||
"DSPCodeUtil.cpp",
|
||||
"LabelMap.cpp",
|
||||
"DSPInterpreter.cpp",
|
||||
"DSPCore.cpp",
|
||||
"DSPTables.cpp",
|
||||
"Jit/DSPJitExtOps.cpp",
|
||||
"Jit/DSPJitUtil.cpp",
|
||||
"Jit/DSPJitMisc.cpp",
|
||||
]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + 'dspcore', files)
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if not env['HAVE_WX']:
|
||||
Return()
|
||||
|
@ -3,24 +3,24 @@
|
||||
Import('env')
|
||||
|
||||
if not env['HAVE_WX']:
|
||||
Return()
|
||||
Return()
|
||||
|
||||
files = [
|
||||
"BreakpointDlg.cpp",
|
||||
"BreakpointView.cpp",
|
||||
"BreakpointWindow.cpp",
|
||||
"CodeWindow.cpp",
|
||||
"CodeWindowFunctions.cpp",
|
||||
"MemoryCheckDlg.cpp",
|
||||
"MemoryWindow.cpp",
|
||||
"RegisterWindow.cpp",
|
||||
"RegisterView.cpp",
|
||||
"JitWindow.cpp",
|
||||
]
|
||||
"BreakpointDlg.cpp",
|
||||
"BreakpointView.cpp",
|
||||
"BreakpointWindow.cpp",
|
||||
"CodeWindow.cpp",
|
||||
"CodeWindowFunctions.cpp",
|
||||
"MemoryCheckDlg.cpp",
|
||||
"MemoryWindow.cpp",
|
||||
"RegisterWindow.cpp",
|
||||
"RegisterView.cpp",
|
||||
"JitWindow.cpp",
|
||||
]
|
||||
|
||||
libs = [
|
||||
'common',
|
||||
'debugger_ui_util'
|
||||
]
|
||||
'common',
|
||||
'debugger_ui_util'
|
||||
]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + "debwx", files, LIBS = libs)
|
||||
|
@ -20,7 +20,7 @@ files = [
|
||||
'VolumeGC.cpp',
|
||||
'VolumeWad.cpp',
|
||||
'VolumeWiiCrypted.cpp',
|
||||
'FileMonitor.cpp',
|
||||
'FileMonitor.cpp',
|
||||
'NANDContentLoader.cpp',
|
||||
'WiiWad.cpp',
|
||||
'AES/aes_cbc.c',
|
||||
@ -30,4 +30,5 @@ files = [
|
||||
libs = [
|
||||
'common'
|
||||
]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + 'discio', files, LIBS = libs)
|
||||
|
@ -4,8 +4,6 @@ Import('env')
|
||||
import os
|
||||
import sys
|
||||
|
||||
wxenv = env.Clone()
|
||||
|
||||
files = [
|
||||
'BootManager.cpp',
|
||||
]
|
||||
@ -15,14 +13,13 @@ libs = [
|
||||
'inputcommon', 'common', 'lua', 'z', 'sfml-network',
|
||||
]
|
||||
|
||||
if wxenv['HAVE_WX']:
|
||||
if env['HAVE_WX']:
|
||||
memcardfiles = [
|
||||
'MemcardManager.cpp',
|
||||
'MemoryCards/GCMemcard.cpp',
|
||||
'WxUtils.cpp',
|
||||
]
|
||||
]
|
||||
|
||||
files += memcardfiles
|
||||
files += [
|
||||
'AboutDolphin.cpp',
|
||||
'ARCodeAddEdit.cpp',
|
||||
@ -38,6 +35,7 @@ if wxenv['HAVE_WX']:
|
||||
'ISOProperties.cpp',
|
||||
'PatchAddEdit.cpp',
|
||||
'CheatsWindow.cpp',
|
||||
'Main.cpp',
|
||||
'MemoryCards/WiiSaveCrypted.cpp',
|
||||
'NetPlay.cpp',
|
||||
'NetPlayClient.cpp',
|
||||
@ -45,28 +43,29 @@ if wxenv['HAVE_WX']:
|
||||
'NetWindow.cpp',
|
||||
]
|
||||
|
||||
libs = [ 'debwx', 'debugger_ui_util', 'inputuicommon'] + libs
|
||||
wxlibs = [ 'debwx', 'debugger_ui_util', 'inputuicommon', 'memcard' ]
|
||||
else:
|
||||
files+= [
|
||||
'MainNoGUI.cpp',
|
||||
'cmdline.c',
|
||||
]
|
||||
|
||||
if sys.platform == 'win32':
|
||||
files += [ "stdafx.cpp" ]
|
||||
elif sys.platform == 'darwin' and not wxenv['HAVE_WX']:
|
||||
elif sys.platform == 'darwin' and not env['HAVE_WX']:
|
||||
files += [ 'cocoaApp.m' ]
|
||||
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
||||
elif sys.platform == 'darwin' and wxenv['HAVE_WX']:
|
||||
elif sys.platform == 'darwin' and env['HAVE_WX']:
|
||||
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
||||
|
||||
wxenv.Install(env['binary_dir'] + 'Dolphin.app/Contents/' +
|
||||
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/' +
|
||||
'Library/Frameworks/Cg.framework',
|
||||
'#Externals/Cg/Cg.framework/Cg')
|
||||
|
||||
wxenv.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
||||
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
||||
'#Source/Core/DolphinWX/resources/Dolphin.icns')
|
||||
|
||||
wxenv.Plist(
|
||||
env.Plist(
|
||||
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
||||
Value(dict(
|
||||
CFBundleExecutable = 'Dolphin',
|
||||
@ -85,12 +84,8 @@ else:
|
||||
exeGUI = env['binary_dir'] + 'dolphin-emu'
|
||||
exeNoGUI = env['binary_dir'] + 'dolphin-emu-nogui'
|
||||
|
||||
wxenv.Append(
|
||||
LIBS = libs
|
||||
)
|
||||
|
||||
if wxenv['HAVE_WX']:
|
||||
wxenv.Program(exeGUI, files + [ 'Main.cpp' ])
|
||||
wxenv.StaticLibrary(env['local_libs'] + 'memcard', memcardfiles)
|
||||
if env['HAVE_WX']:
|
||||
env.StaticLibrary(env['local_libs'] + 'memcard', memcardfiles)
|
||||
env.Program(exeGUI, files, LIBS = env['LIBS'] + wxlibs + libs)
|
||||
else:
|
||||
wxenv.Program(exeNoGUI, files + [ 'MainNoGUI.cpp' ])
|
||||
env.Program(exeNoGUI, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if not env['HAVE_WX']:
|
||||
Return()
|
||||
|
@ -39,8 +39,8 @@ files = [
|
||||
]
|
||||
|
||||
if env['HAVE_OPENCL']:
|
||||
files += [
|
||||
'OpenCL/OCLTextureDecoder.cpp',
|
||||
]
|
||||
files += [
|
||||
'OpenCL/OCLTextureDecoder.cpp',
|
||||
]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + "videocommon", files)
|
||||
|
Reference in New Issue
Block a user