Made layout more consistent.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@628 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne 2008-09-23 00:24:28 +00:00
parent 26b6e7df49
commit 6e424f152a
1 changed files with 38 additions and 36 deletions

View File

@ -30,14 +30,14 @@ compileFlags = [
'-fno-strict-aliasing', '-fno-strict-aliasing',
'-msse2', '-msse2',
'-fvisibility=hidden', '-fvisibility=hidden',
# '-fomit-frame-pointer' #'-fomit-frame-pointer'
] ]
cppDefines = [ cppDefines = [
( '_FILE_OFFSET_BITS', 64), ( '_FILE_OFFSET_BITS', 64),
'_LARGEFILE_SOURCE', '_LARGEFILE_SOURCE',
'GCC_HASCLASSVISIBILITY', 'GCC_HASCLASSVISIBILITY',
] ]
if sys.platform == 'darwin': if sys.platform == 'darwin':
@ -88,15 +88,15 @@ lib_paths = include_paths
# handle command line options # handle command line options
vars = Variables('args.cache') vars = Variables('args.cache')
vars.AddVariables( vars.AddVariables(
BoolVariable('verbose', 'Set for compilation line', False), BoolVariable('verbose', 'Set for compilation line', False),
BoolVariable('debug', 'Set for debug build', False), BoolVariable('debug', 'Set for debug build', False),
BoolVariable('lint', 'Set for lint build (extra warnings)', False), BoolVariable('lint', 'Set for lint build (extra warnings)', False),
BoolVariable('nowx', 'Set For Building with no WX libs (WIP)', False), BoolVariable('nowx', 'Set For Building with no WX libs (WIP)', False),
EnumVariable('flavor', 'Choose a build flavor', 'release', EnumVariable('flavor', 'Choose a build flavor', 'release',
allowed_values=('release', 'devel', 'debug'), allowed_values = ('release', 'devel', 'debug'),
ignorecase=2) ignorecase = 2
)
) )
env = Environment( env = Environment(
CC = 'gcc', CC = 'gcc',
@ -121,22 +121,22 @@ vars.Save('args.cache', env)
# verbose compile # verbose compile
if not env['verbose']: if not env['verbose']:
env['CCCOMSTR'] = "Compiling $TARGET" env['CCCOMSTR'] = "Compiling $TARGET"
env['CXXCOMSTR'] = "Compiling $TARGET" env['CXXCOMSTR'] = "Compiling $TARGET"
env['ARCOMSTR'] = "Archiving $TARGET" env['ARCOMSTR'] = "Archiving $TARGET"
env['LINKCOMSTR'] = "Linking $TARGET" env['LINKCOMSTR'] = "Linking $TARGET"
env['ASCOMSTR'] = "Assembling $TARGET" env['ASCOMSTR'] = "Assembling $TARGET"
env['ASPPCOMSTR'] = "Assembling $TARGET" env['ASPPCOMSTR'] = "Assembling $TARGET"
env['SHCCCOMSTR'] = "Compiling shared $TARGET" env['SHCCCOMSTR'] = "Compiling shared $TARGET"
env['SHCXXCOMSTR'] = "Compiling shared $TARGET" env['SHCXXCOMSTR'] = "Compiling shared $TARGET"
env['SHLINKCOMSTR'] = "Linking shared $TARGET" env['SHLINKCOMSTR'] = "Linking shared $TARGET"
env['RANLIBCOMSTR'] = "Indexing $TARGET" env['RANLIBCOMSTR'] = "Indexing $TARGET"
# build falvuor # build falvuor
flavour = ARGUMENTS.get('flavor') flavour = ARGUMENTS.get('flavor')
if (flavour == 'debug'): if (flavour == 'debug'):
compileFlags.append('-g') compileFlags.append('-g')
cppDefines.append('LOGGING') cppDefines.append('LOGGING')
else: else:
compileFlags.append('-O3') compileFlags.append('-O3')
@ -144,7 +144,7 @@ else:
# more warnings # more warnings
if env['lint']: if env['lint']:
warnings.append('error') warnings.append('error')
warnings.append('unreachable-code') warnings.append('unreachable-code')
warnings.append('float-equal') warnings.append('float-equal')
# add the warnings to the compile flags # add the warnings to the compile flags
@ -162,15 +162,17 @@ conf = env.Configure(custom_tests = tests)
# handling wx flags CCFLAGS should be created before # handling wx flags CCFLAGS should be created before
if not env['nowx']: if not env['nowx']:
env['wxconfig']='wx-config' env['wxconfig'] = 'wx-config'
env['build_platform']=env['PLATFORM'] env['build_platform'] = env['PLATFORM']
env['target_platform']=env['PLATFORM'] env['target_platform'] = env['PLATFORM']
if not conf.CheckWXConfig('2.8', ['gl', 'adv', 'core', 'base'], env['debug']): if not conf.CheckWXConfig(
print 'gui build requires wxwidgets >= 2.8' '2.8', ['gl', 'adv', 'core', 'base'], env['debug']
Exit(1) ):
print 'gui build requires wxwidgets >= 2.8'
Exit(1)
wxconfig.ParseWXConfig(env) wxconfig.ParseWXConfig(env)
# After all configuration tests are done # After all configuration tests are done
env = conf.Finish() env = conf.Finish()
@ -187,13 +189,13 @@ env.AddMethod(utils.filterWarnings)
Export('env') Export('env')
# print a nice progress indication when not compiling # print a nice progress indication when not compiling
Progress(['-\r', '\\\r', '|\r', '/\r'], interval=5) Progress(['-\r', '\\\r', '|\r', '/\r'], interval = 5)
# die on unknown variables # die on unknown variables
unknown = vars.UnknownVariables() unknown = vars.UnknownVariables()
if unknown: if unknown:
print "Unknown variables:", unknown.keys() print "Unknown variables:", unknown.keys()
Exit(1) Exit(1)
# generate help # generate help
Help(vars.GenerateHelpText(env)) Help(vars.GenerateHelpText(env))