mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07: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:
parent
4ecfa3b7a2
commit
a2b1f829cb
2
Externals/Lua/SConscript
vendored
2
Externals/Lua/SConscript
vendored
@ -1,7 +1,7 @@
|
||||
# -*- python -*-
|
||||
|
||||
import sys
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
luaenv = env.Clone()
|
||||
|
||||
|
19
Externals/MemcardManager/SConscript
vendored
19
Externals/MemcardManager/SConscript
vendored
@ -1,14 +1,13 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if not env['HAVE_WX']:
|
||||
Return()
|
||||
|
||||
wxenv = env.Clone()
|
||||
|
||||
files = [
|
||||
'src/mcmMain.cpp',
|
||||
'src/MCMdebug.cpp',
|
||||
]
|
||||
|
||||
libs = [
|
||||
@ -16,18 +15,6 @@ libs = [
|
||||
'common',
|
||||
]
|
||||
|
||||
if wxenv['HAVE_WX']:
|
||||
files += [
|
||||
'src/mcmMain.cpp',
|
||||
'src/MCMdebug.cpp',
|
||||
]
|
||||
|
||||
LIBS = libs
|
||||
|
||||
wxenv.Append(
|
||||
LIBS = libs
|
||||
)
|
||||
|
||||
exeGUI = env['binary_dir'] + 'MemcardManager'
|
||||
|
||||
wxenv.Program(exeGUI, files)
|
||||
env.Program(exeGUI, files, LIBS = env['LIBS'] + libs)
|
||||
|
43
Externals/SDL/SConscript
vendored
43
Externals/SDL/SConscript
vendored
@ -1,54 +1,13 @@
|
||||
# -*- python -*-
|
||||
|
||||
import sys
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
files = [
|
||||
'src/SDL.c',
|
||||
'src/SDL_error.c',
|
||||
'src/SDL_fatal.c',
|
||||
#'src/audio/SDL_audio.c',
|
||||
#'src/audio/SDL_audiocvt.c',
|
||||
#'src/audio/SDL_audiodev.c',
|
||||
#'src/audio/SDL_mixer.c',
|
||||
#'src/audio/SDL_mixer_MMX.c',
|
||||
#'src/audio/SDL_mixer_MMX_VC.c',
|
||||
#'src/audio/SDL_mixer_m68k.c',
|
||||
#'src/audio/SDL_wave.c',
|
||||
#'src/cdrom/SDL_cdrom.c',
|
||||
#'src/cpuinfo/SDL_cpuinfo.c',
|
||||
#'src/events/SDL_active.c',
|
||||
#'src/events/SDL_events.c',
|
||||
#'src/events/SDL_expose.c',
|
||||
#'src/events/SDL_keyboard.c',
|
||||
#'src/events/SDL_mouse.c',
|
||||
#'src/events/SDL_quit.c',
|
||||
#'src/events/SDL_resize.c',
|
||||
#'src/file/SDL_rwops.c',
|
||||
'src/joystick/SDL_joystick.c',
|
||||
#'src/stdlib/SDL_getenv.c',
|
||||
#'src/stdlib/SDL_iconv.c',
|
||||
#'src/stdlib/SDL_malloc.c',
|
||||
#'src/stdlib/SDL_qsort.c',
|
||||
#'src/stdlib/SDL_stdlib.c',
|
||||
#'src/thread/SDL_thread.c',
|
||||
#'src/timer/SDL_timer.c',
|
||||
#'src/video/SDL_RLEaccel.c',
|
||||
#'src/video/SDL_blit.c',
|
||||
#'src/video/SDL_blit_0.c',
|
||||
#'src/video/SDL_blit_1.c',
|
||||
#'src/video/SDL_blit_A.c',
|
||||
#'src/video/SDL_blit_N.c',
|
||||
#'src/video/SDL_bmp.c',
|
||||
#'src/video/SDL_cursor.c',
|
||||
#'src/video/SDL_gamma.c',
|
||||
#'src/video/SDL_pixels.c',
|
||||
#'src/video/SDL_stretch.c',
|
||||
#'src/video/SDL_surface.c',
|
||||
#'src/video/SDL_video.c',
|
||||
#'src/video/SDL_yuv.c',
|
||||
#'src/video/SDL_yuv_mmx.c',
|
||||
#'src/video/SDL_yuv_sw.c',
|
||||
]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
|
1
Externals/SFML/src/SConscript
vendored
1
Externals/SFML/src/SConscript
vendored
@ -1,7 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
files = [
|
||||
"SFML/Network/Ftp.cpp",
|
||||
|
2
Externals/SOIL/SConscript
vendored
2
Externals/SOIL/SConscript
vendored
@ -1,6 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
files = [
|
||||
'image_DXT.c',
|
||||
|
20
Externals/WiiUseSrc/Src/SConscript
vendored
20
Externals/WiiUseSrc/Src/SConscript
vendored
@ -1,24 +1,28 @@
|
||||
# -*- python -*-
|
||||
|
||||
import sys
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if (sys.platform == 'linux2' and env['HAVE_BLUEZ'] != 1):
|
||||
if (sys.platform == 'linux2' and not env['HAVE_BLUEZ']) or \
|
||||
(not sys.platform == 'darwin' and
|
||||
not sys.platform == 'linux2' and
|
||||
not sys.platform == 'win32'):
|
||||
env['HAVE_WIIUSE'] = 0
|
||||
Return()
|
||||
|
||||
env['HAVE_WIIUSE'] = 1
|
||||
|
||||
files = [
|
||||
"io.c",
|
||||
"ir.c",
|
||||
"wiiuse.c",
|
||||
]
|
||||
|
||||
if sys.platform == 'linux2' and env['HAVE_BLUEZ']:
|
||||
files += [ "io_nix.c", ]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
files += [ "io_osx.m", ]
|
||||
files += [ "io_osx.m" ]
|
||||
elif sys.platform == 'linux2':
|
||||
files += [ "io_nix.c" ]
|
||||
elif sys.platform == 'win32':
|
||||
files += [ "io_win.c" ]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + "wiiuse", files)
|
||||
|
||||
env['HAVE_WIIUSE'] = 1
|
||||
|
54
SConstruct
54
SConstruct
@ -34,24 +34,22 @@ cppDefines = [
|
||||
'GCC_HASCLASSVISIBILITY',
|
||||
]
|
||||
|
||||
basedir = os.getcwd() + '/'
|
||||
|
||||
include_paths = [
|
||||
basedir + 'Source/Core/Common/Src',
|
||||
basedir + 'Source/Core/DiscIO/Src',
|
||||
basedir + 'Source/PluginSpecs',
|
||||
basedir + 'Source/Core/Core/Src',
|
||||
basedir + 'Source/Core/DebuggerWX/Src',
|
||||
basedir + 'Externals/Bochs_disasm',
|
||||
basedir + 'Externals/Lua',
|
||||
basedir + 'Externals/WiiUseSrc/Src',
|
||||
basedir + 'Source/Core/VideoCommon/Src',
|
||||
basedir + 'Source/Core/InputCommon/Src',
|
||||
basedir + 'Source/Core/InputUICommon/Src',
|
||||
basedir + 'Source/Core/AudioCommon/Src',
|
||||
basedir + 'Source/Core/DebuggerUICommon/Src',
|
||||
basedir + 'Source/Core/DolphinWX/Src',
|
||||
basedir + 'Source/Core/DSPCore/Src',
|
||||
'#Source/Core/Common/Src',
|
||||
'#Source/Core/DiscIO/Src',
|
||||
'#Source/PluginSpecs',
|
||||
'#Source/Core/Core/Src',
|
||||
'#Source/Core/DebuggerWX/Src',
|
||||
'#Externals/Bochs_disasm',
|
||||
'#Externals/Lua',
|
||||
'#Externals/WiiUseSrc/Src',
|
||||
'#Source/Core/VideoCommon/Src',
|
||||
'#Source/Core/InputCommon/Src',
|
||||
'#Source/Core/InputUICommon/Src',
|
||||
'#Source/Core/AudioCommon/Src',
|
||||
'#Source/Core/DebuggerUICommon/Src',
|
||||
'#Source/Core/DolphinWX/Src',
|
||||
'#Source/Core/DSPCore/Src',
|
||||
]
|
||||
|
||||
dirs = [
|
||||
@ -80,7 +78,6 @@ dirs = [
|
||||
'Source/UnitTests',
|
||||
]
|
||||
|
||||
|
||||
builders = {}
|
||||
if sys.platform == 'darwin':
|
||||
from plistlib import writePlist
|
||||
@ -214,15 +211,12 @@ tests = {'CheckWXConfig' : wxconfig.CheckWXConfig,
|
||||
}
|
||||
|
||||
# Object files
|
||||
env['build_dir'] = os.path.join(basedir, 'Build',
|
||||
env['build_dir'] = os.path.join('#Build',
|
||||
platform.system() + '-' + platform.machine() + '-' + env['flavor'] + os.sep)
|
||||
|
||||
# Static libs go here
|
||||
env['local_libs'] = env['build_dir'] + os.sep + 'libs' + os.sep
|
||||
|
||||
# Where do we run from
|
||||
env['base_dir'] = os.getcwd()+ '/'
|
||||
|
||||
# Install paths
|
||||
extra=''
|
||||
if flavour == 'debug':
|
||||
@ -237,7 +231,7 @@ if sys.platform == 'linux2' and env['install'] == 'global':
|
||||
env['plugin_dir'] = env['prefix'] + 'lib/dolphin-emu/'
|
||||
env['data_dir'] = env['prefix'] + "share/dolphin-emu/"
|
||||
else:
|
||||
env['prefix'] = os.path.join(env['base_dir'] + 'Binary',
|
||||
env['prefix'] = os.path.join('#Binary',
|
||||
platform.system() + '-' + platform.machine() + extra + os.sep)
|
||||
env['binary_dir'] = env['prefix']
|
||||
env['plugin_dir'] = env['prefix'] + 'plugins/'
|
||||
@ -412,23 +406,23 @@ if not sys.platform == 'win32' and not sys.platform == 'darwin':
|
||||
env['LIBPATH'].insert(0, env['local_libs'])
|
||||
|
||||
if not shared['glew']:
|
||||
env['CPPPATH'] += [basedir + 'Externals/GLew/include']
|
||||
env['CPPPATH'] += ['#Externals/GLew/include']
|
||||
dirs += ['Externals/GLew']
|
||||
if not shared['lzo']:
|
||||
env['CPPPATH'] += [basedir + 'Externals/LZO']
|
||||
env['CPPPATH'] += ['#Externals/LZO']
|
||||
dirs += ['Externals/LZO']
|
||||
if not shared['sdl']:
|
||||
env['CPPPATH'] += [basedir + 'Externals/SDL']
|
||||
env['CPPPATH'] += [basedir + 'Externals/SDL/include']
|
||||
env['CPPPATH'] += ['#Externals/SDL']
|
||||
env['CPPPATH'] += ['#Externals/SDL/include']
|
||||
dirs += ['Externals/SDL']
|
||||
if not shared['soil']:
|
||||
env['CPPPATH'] += [basedir + 'Externals/SOIL']
|
||||
env['CPPPATH'] += ['#Externals/SOIL']
|
||||
dirs += ['Externals/SOIL']
|
||||
if not shared['sfml']:
|
||||
env['CPPPATH'] += [basedir + 'Externals/SFML/include']
|
||||
env['CPPPATH'] += ['#Externals/SFML/include']
|
||||
dirs += ['Externals/SFML/src']
|
||||
if not shared['zlib']:
|
||||
env['CPPPATH'] += [basedir + 'Externals/zlib']
|
||||
env['CPPPATH'] += ['#Externals/zlib']
|
||||
dirs += ['Externals/zlib']
|
||||
|
||||
rev = utils.GenerateRevFile(env['flavor'],
|
||||
|
@ -10,9 +10,6 @@ files = [
|
||||
'AudioCommon.cpp',
|
||||
]
|
||||
|
||||
if sys.platform == 'win32':
|
||||
files += [ 'DSoundStream.cpp' ]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
files += [ 'CoreAudioSoundStream.cpp' ]
|
||||
else:
|
||||
@ -24,5 +21,7 @@ else:
|
||||
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)
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
if not env['HAVE_WX']:
|
||||
Return()
|
||||
|
@ -21,6 +21,6 @@ files = [
|
||||
libs = [
|
||||
'common',
|
||||
'debugger_ui_util'
|
||||
]
|
||||
]
|
||||
|
||||
env.StaticLibrary(env['local_libs'] + "debwx", files, LIBS = libs)
|
||||
|
@ -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()
|
||||
|
@ -1,9 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
dtenv = env.Clone()
|
||||
|
||||
files = [
|
||||
'main.cpp',
|
||||
@ -12,8 +9,6 @@ files = [
|
||||
libs = [
|
||||
'dspcore',
|
||||
'common',
|
||||
]
|
||||
]
|
||||
|
||||
dtenv.Append(LIBS = libs)
|
||||
|
||||
dtenv.Program(dtenv['binary_dir'] + 'dsptool', files)
|
||||
env.Program(env['binary_dir'] + 'dsptool', files, LIBS = libs)
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
name = "Plugin_DSP_HLE"
|
||||
|
||||
@ -23,15 +22,11 @@ files = [
|
||||
'UCodes/UCode_Zelda_Synth.cpp',
|
||||
]
|
||||
|
||||
dspenv = env.Clone()
|
||||
|
||||
if dspenv['HAVE_WX']:
|
||||
if env['HAVE_WX']:
|
||||
files += [
|
||||
'ConfigDlg.cpp',
|
||||
'ConfigDlg.cpp'
|
||||
]
|
||||
|
||||
dspenv.Append(
|
||||
LIBS = [ 'common', 'audiocommon' ],
|
||||
)
|
||||
libs = [ 'common', 'audiocommon' ]
|
||||
|
||||
dspenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -1,8 +1,6 @@
|
||||
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
name = "Plugin_DSP_LLE"
|
||||
|
||||
@ -23,15 +21,9 @@ if env['HAVE_WX']:
|
||||
"Debugger/DSPRegisterView.cpp",
|
||||
]
|
||||
|
||||
lleenv = env.Clone()
|
||||
libs = [ 'dspcore', 'audiocommon', 'common' ]
|
||||
|
||||
if env['HAVE_WX']:
|
||||
lleenv.Append(
|
||||
LIBS = [ 'dspcore', 'audiocommon', 'common', 'debugger_ui_util' ],
|
||||
)
|
||||
else:
|
||||
lleenv.Append(
|
||||
LIBS = [ 'dspcore', 'audiocommon', 'common' ],
|
||||
)
|
||||
libs += [ 'debugger_ui_util' ]
|
||||
|
||||
lleenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -23,32 +23,19 @@ files = [
|
||||
'GLUtil.cpp'
|
||||
]
|
||||
|
||||
libs = [
|
||||
'videocommon', 'GLEW', 'SOIL', 'common'
|
||||
]
|
||||
libs = [ 'videocommon', 'GLEW', 'SOIL', 'common' ]
|
||||
|
||||
gfxenv = env.Clone()
|
||||
|
||||
if sys.platform != 'darwin':
|
||||
if gfxenv['HAVE_OPENCL']:
|
||||
libs += [ 'OpenCL']
|
||||
|
||||
if gfxenv['HAVE_WX']:
|
||||
if env['HAVE_WX']:
|
||||
files += [
|
||||
'GUI/ConfigDlg.cpp',
|
||||
'Debugger/Debugger.cpp',
|
||||
]
|
||||
|
||||
if sys.platform == 'darwin' and not gfxenv['HAVE_WX']:
|
||||
if sys.platform == 'darwin' and not env['HAVE_WX']:
|
||||
files += [ 'cocoaGL.m' ]
|
||||
|
||||
if sys.platform == 'win32':
|
||||
elif sys.platform == 'win32':
|
||||
files += [ 'OS/Win32.cpp' ]
|
||||
libs += [ env['base_dir'] + '/Externals/Cg/' ]
|
||||
gfxenv['CPPPATH'] += libs
|
||||
elif not sys.platform == 'darwin' and env['HAVE_OPENCL']:
|
||||
libs += [ 'OpenCL' ]
|
||||
|
||||
gfxenv.SharedLibrary(
|
||||
env['plugin_dir']+name,
|
||||
files,
|
||||
LIBS = libs + gfxenv['LIBS']
|
||||
)
|
||||
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -33,22 +33,11 @@ files = [
|
||||
'XFMemLoader.cpp',
|
||||
]
|
||||
|
||||
libs = [
|
||||
'videocommon', 'GLEW', 'SOIL', 'common'
|
||||
]
|
||||
libs = [ 'videocommon', 'GLEW', 'SOIL', 'common' ]
|
||||
|
||||
gfxenv = env.Clone()
|
||||
|
||||
if sys.platform == 'darwin' and not gfxenv['HAVE_WX']:
|
||||
if sys.platform == 'darwin' and not env['HAVE_WX']:
|
||||
files += [ 'cocoaGL.m' ]
|
||||
|
||||
if sys.platform == 'win32':
|
||||
elif sys.platform == 'win32':
|
||||
files += [ 'Win32.cpp' ]
|
||||
libs += [ env['base_dir'] + '/Externals/Cg/' ]
|
||||
gfxenv['CPPPATH'] += libs
|
||||
|
||||
gfxenv.SharedLibrary(
|
||||
env['plugin_dir']+name,
|
||||
files,
|
||||
LIBS = libs + gfxenv['LIBS']
|
||||
)
|
||||
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -1,9 +1,7 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
wmenv = env.Clone()
|
||||
name = "Plugin_Wiimote"
|
||||
|
||||
files = [
|
||||
@ -22,7 +20,7 @@ files = [
|
||||
|
||||
libs = [ 'inputcommon', 'common', 'SDL' ]
|
||||
|
||||
if wmenv['HAVE_WX']:
|
||||
if env['HAVE_WX']:
|
||||
libs = [ 'inputuicommon' ] + libs
|
||||
files += [
|
||||
"ConfigBasicDlg.cpp",
|
||||
@ -31,16 +29,8 @@ if wmenv['HAVE_WX']:
|
||||
"FillReport.cpp",
|
||||
]
|
||||
|
||||
cxxflags = [ ]
|
||||
|
||||
if wmenv['HAVE_WIIUSE']:
|
||||
if env['HAVE_WIIUSE']:
|
||||
libs += [ 'wiiuse' ]
|
||||
files += [ "wiimote_real.cpp" ]
|
||||
cxxflags += ['-DHAVE_WIIUSE']
|
||||
files += [ 'wiimote_real.cpp' ]
|
||||
|
||||
wmenv.Append(
|
||||
CXXFLAGS = cxxflags,
|
||||
LIBS = libs,
|
||||
)
|
||||
|
||||
wmenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -4,7 +4,6 @@ Import('env')
|
||||
import sys
|
||||
|
||||
name = "Plugin_WiimoteNew"
|
||||
wiinewenv = env.Clone()
|
||||
|
||||
files = [
|
||||
'WiimoteEmu/WiimoteEmu.cpp',
|
||||
@ -19,25 +18,17 @@ files = [
|
||||
'WiimoteNew.cpp'
|
||||
]
|
||||
|
||||
cxxflags = [ ]
|
||||
|
||||
libs = [ 'inputcommon', 'common']
|
||||
libs = [ 'inputcommon', 'common' ]
|
||||
|
||||
if sys.platform == 'win32' or sys.platform == 'linux2':
|
||||
libs += [ 'SDL' ]
|
||||
|
||||
if wiinewenv['HAVE_WX']:
|
||||
if env['HAVE_WX']:
|
||||
libs = [ 'inputuicommon' ] + libs
|
||||
files += [ 'WiimoteConfigDiag.cpp' ]
|
||||
|
||||
if wiinewenv['HAVE_WIIUSE']:
|
||||
cxxflags += [ '-DHAVE_WIIUSE' ]
|
||||
if env['HAVE_WIIUSE']:
|
||||
files += [ 'WiimoteReal/WiimoteReal.cpp' ]
|
||||
libs += [ 'wiiuse' ]
|
||||
|
||||
wiinewenv.Append(
|
||||
CXXFLAGS = cxxflags,
|
||||
LIBS = libs
|
||||
)
|
||||
|
||||
wiinewenv.SharedLibrary(env['plugin_dir']+name, files)
|
||||
env.SharedLibrary(env['plugin_dir'] + name, files, LIBS = env['LIBS'] + libs)
|
||||
|
@ -1,9 +1,6 @@
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
unitenv = env.Clone()
|
||||
|
||||
files = [
|
||||
"AudioJitTests.cpp",
|
||||
@ -13,7 +10,6 @@ files = [
|
||||
|
||||
libs = [
|
||||
'dspcore', 'common',
|
||||
]
|
||||
]
|
||||
|
||||
unitenv.Append(LIBS = libs)
|
||||
unitenv.Program(env['binary_dir'] + 'tester', files)
|
||||
env.Program(env['binary_dir'] + 'tester', files, LIBS = libs)
|
||||
|
Loading…
Reference in New Issue
Block a user