Some scons updates,

windows scons will build if dirs = 
    'Externals/Bochs_disasm',
    'Externals/LZO',
    'Externals/WiiUseSrc/Src', 
    #'Source/Core/Common/Src',
    #'Source/Core/Core/Src',
   # 'Source/Core/DiscIO/Src',
   # 'Source/Core/VideoCommon/Src',
    #'Source/Core/InputCommon/Src',
    'Source/Plugins/Plugin_VideoOGL/Src',
    #'Source/Plugins/Plugin_DSP_HLE/Src',
    'Source/Plugins/Plugin_DSP_LLE/Src',
    'Source/Plugins/Plugin_PadSimple/Src',
    'Source/Plugins/Plugin_PadSimpleEvnt/Src',
   # 'Source/Plugins/Plugin_nJoy_SDL/Src',
    #'Source/Plugins/Plugin_nJoy_Testing/Src',
    #'Source/Plugins/Plugin_Wiimote/Src',
   # 'Source/Core/DolphinWX/Src',
    'Source/Core/DebuggerWX/Src',

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2627 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99 2009-03-09 00:36:59 +00:00
parent ac11915892
commit f4ba5b3589
5 changed files with 70 additions and 33 deletions

View File

@ -1,6 +1,7 @@
# -*- python -*- # -*- python -*-
Import('env') Import('env')
import sys
files = [ files = [
"dis_decode.cpp", "dis_decode.cpp",
@ -10,6 +11,9 @@ files = [
"PowerPCDisasm.cpp", "PowerPCDisasm.cpp",
] ]
if sys.platform == 'win32':
files += [ "stdafx.cpp" ]
env_bochs = env.Clone( env_bochs = env.Clone(
CCFLAGS = env.filterWarnings(env['CCFLAGS']), CCFLAGS = env.filterWarnings(env['CCFLAGS']),
CXXFLAGS = env.filterWarnings(env['CXXFLAGS']), CXXFLAGS = env.filterWarnings(env['CXXFLAGS']),

View File

@ -30,9 +30,10 @@ compileFlags = [
'-fno-exceptions', '-fno-exceptions',
'-fno-strict-aliasing', '-fno-strict-aliasing',
'-msse2', '-msse2',
'-fvisibility=hidden',
#'-fomit-frame-pointer' #'-fomit-frame-pointer'
] ]
if sys.platform != 'win32':
compileFlags += [ '-fvisibility=hidden' ]
cppDefines = [ cppDefines = [
( '_FILE_OFFSET_BITS', 64), ( '_FILE_OFFSET_BITS', 64),
@ -86,11 +87,6 @@ if sys.platform == 'darwin':
writePlist(properties, str(dstNode)) writePlist(properties, str(dstNode))
builders['Plist'] = Builder(action = createPlist) builders['Plist'] = Builder(action = createPlist)
if sys.platform == 'win32':
env_home = os.environ['USERPROFILE']
else:
env_home = os.environ['HOME']
lib_paths = include_paths lib_paths = include_paths
# handle command line options # handle command line options
@ -118,23 +114,40 @@ vars.AddVariables(
('CXX', 'The c++ compiler', 'g++'), ('CXX', 'The c++ compiler', 'g++'),
) )
if sys.platform == 'win32':
env = Environment( env = Environment(
CPPPATH = include_paths, CPPPATH = include_paths,
LIBPATH = lib_paths, LIBPATH = lib_paths,
RPATH = [], RPATH = [],
variables = vars, LIBS = [],
ENV = { tools = [ 'mingw' ],
'PATH' : os.environ['PATH'], variables = vars,
'HOME' : env_home ENV = os.environ,
BUILDERS = builders,
DESCRIPTION = description,
SUMMARY = description,
LICENSE = license,
NAME = name,
VERSION = version,
)
else:
env = Environment(
CPPPATH = include_paths,
LIBPATH = lib_paths,
RPATH = [],
LIBS = [],
variables = vars,
ENV = {
'PATH' : os.environ['PATH'],
'HOME' : os.environ['HOME']
}, },
BUILDERS = builders, BUILDERS = builders,
DESCRIPTION = description, DESCRIPTION = description,
SUMMARY = description, SUMMARY = description,
LICENSE = license, LICENSE = license,
NAME = name, NAME = name,
VERSION = version, VERSION = version,
) )
# save the given command line options # save the given command line options
vars.Save('args.cache', env) vars.Save('args.cache', env)
@ -180,7 +193,10 @@ if env['lint']:
compileFlags += [ '-W' + warning for warning in warnings ] compileFlags += [ '-W' + warning for warning in warnings ]
env['CCFLAGS'] = compileFlags env['CCFLAGS'] = compileFlags
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ] if sys.platform == 'win32':
env['CXXFLAGS'] = compileFlags
else:
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ]
env['CPPDEFINES'] = cppDefines env['CPPDEFINES'] = cppDefines
@ -249,6 +265,10 @@ if env['wxgl']:
env['HAVE_X11'] = 0 env['HAVE_X11'] = 0
env['HAVE_COCOA'] = 0 env['HAVE_COCOA'] = 0
if sys.platform == 'win32':
env['HAVE_WX'] = 1
env['USE_WX'] = 1
# Gui less build # Gui less build
if env['nowx']: if env['nowx']:
env['HAVE_WX'] = 0; env['HAVE_WX'] = 0;

View File

@ -1,31 +1,34 @@
# -*- python -*- # -*- python -*-
Import('env') Import('env')
import sys
files = [ files = [
"ABI.cpp", "ABI.cpp",
"MsgHandler.cpp",
"CDUtils.cpp", "CDUtils.cpp",
"ChunkFile.cpp", "ChunkFile.cpp",
"ConsoleWindow.cpp",
"ColorUtil.cpp", "ColorUtil.cpp",
"ConsoleWindow.cpp",
"CPUDetect.cpp", "CPUDetect.cpp",
"DynamicLibrary.cpp", "DynamicLibrary.cpp",
"Hash.cpp", "ExtendedTrace.cpp",
"IniFile.cpp",
"FileSearch.cpp", "FileSearch.cpp",
"FileUtil.cpp", "FileUtil.cpp",
"Hash.cpp",
"IniFile.cpp",
"MappedFile.cpp", "MappedFile.cpp",
"MathUtil.cpp", "MathUtil.cpp",
"Misc.cpp",
"MemArena.cpp", "MemArena.cpp",
"MemoryUtil.cpp", "MemoryUtil.cpp",
"Misc.cpp",
"MsgHandler.cpp",
"Plugin.cpp", "Plugin.cpp",
"PluginDSP.cpp", "PluginDSP.cpp",
"PluginWiimote.cpp", "PluginWiimote.cpp",
"PluginVideo.cpp", "PluginVideo.cpp",
"PluginPAD.cpp", "PluginPAD.cpp",
"StringUtil.cpp", "StringUtil.cpp",
"Thread.cpp",
"Thunk.cpp", "Thunk.cpp",
"Timer.cpp", "Timer.cpp",
"Thread.cpp", "Thread.cpp",
@ -34,6 +37,9 @@ files = [
"x64Analyzer.cpp", "x64Analyzer.cpp",
] ]
if sys.platform == 'win32':
files += [ "stdafx.cpp" ]
env_common = env.Clone() env_common = env.Clone()
env_common.Append(CXXFLAGS = [ '-fPIC' ]) env_common.Append(CXXFLAGS = [ '-fPIC' ])
env_common.StaticLibrary("common", files) env_common.StaticLibrary("common", files)

View File

@ -1,21 +1,23 @@
# -*- python -*- # -*- python -*-
Import('env') Import('env')
import sys
files = ["Console.cpp", files = ["ActionReplay.cpp",
"ARDecrypt.cpp",
"ConfigManager.cpp", "ConfigManager.cpp",
"Console.cpp",
"Core.cpp", "Core.cpp",
"CoreTiming.cpp",
"CoreParameter.cpp", "CoreParameter.cpp",
"CoreRerecording.cpp",
"CoreTiming.cpp",
"Host.cpp", "Host.cpp",
"LogManager.cpp", "LogManager.cpp",
"MemTools.cpp", "MemTools.cpp",
"ActionReplay.cpp",
"ARDecrypt.cpp",
"PatchEngine.cpp", "PatchEngine.cpp",
"PluginManager.cpp",
"State.cpp", "State.cpp",
"Tracer.cpp", "Tracer.cpp",
'PluginManager.cpp',
"VolumeHandler.cpp", "VolumeHandler.cpp",
"Boot/Boot.cpp", "Boot/Boot.cpp",
"Boot/Boot_BIOSEmu.cpp", "Boot/Boot_BIOSEmu.cpp",
@ -119,6 +121,9 @@ else:
"PowerPC/Jit64/Jit_SystemRegisters.cpp", "PowerPC/Jit64/Jit_SystemRegisters.cpp",
] ]
if sys.platform == 'win32':
files += [ "stdafx.cpp" ]
libs = [ libs = [
'bdisasm', 'bdisasm',
'inputcommon', 'inputcommon',

View File

@ -60,6 +60,8 @@ if gfxenv['HAVE_COCOA']:
'-x', '-x',
'objective-c++', 'objective-c++',
] ]
if sys.platform == 'win32':
files += [ 'OS/Win32.cpp' ]
tests = {'CheckPKG' : utils.CheckPKG} tests = {'CheckPKG' : utils.CheckPKG}
conf = gfxenv.Configure(custom_tests = tests, conf = gfxenv.Configure(custom_tests = tests,