another small cleanup of sconsx
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1415 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
5f11ae5dbd
commit
38708f2976
|
@ -95,7 +95,6 @@ vars = Variables('args.cache')
|
|||
vars.AddVariables(
|
||||
BoolVariable('verbose', 'Set for compilation line', False),
|
||||
BoolVariable('bundle', 'Set to create bundle', False),
|
||||
BoolVariable('debug', 'Set for debug build', False),
|
||||
BoolVariable('lint', 'Set for lint build (extra warnings)', False),
|
||||
BoolVariable('nowx', 'Set For Building with no WX libs (WIP)', False),
|
||||
BoolVariable('osx64', 'Set For Building for osx in 64 bits (WIP)', False),
|
||||
|
@ -190,7 +189,7 @@ env['HAVE_AO'] = conf.CheckPKG('ao')
|
|||
|
||||
# handling wx flags CCFLAGS should be created before
|
||||
env['HAVE_WX'] = conf.CheckWXConfig('2.8', ['gl', 'adv', 'core', 'base'],
|
||||
env['debug'])
|
||||
0) #env['flavor'] == 'debug')
|
||||
|
||||
# X11 detection
|
||||
env['HAVE_X11'] = conf.CheckPKG('x11')
|
||||
|
@ -220,6 +219,8 @@ conf.Finish()
|
|||
if env['HAVE_WX']:
|
||||
wxconfig.ParseWXConfig(env)
|
||||
compileFlags += ['-DUSE_WX']
|
||||
else:
|
||||
print "WX not found or disabled, not building GUI"
|
||||
|
||||
#get sdl stuff
|
||||
if env['HAVE_SDL']:
|
||||
|
|
|
@ -18,7 +18,7 @@ def CheckPKGConfig(context, version):
|
|||
def CheckPKG(context, name):
|
||||
context.Message( 'Checking for %s... ' % name )
|
||||
ret = context.TryAction('pkg-config --exists \'%s\'' % name)[0]
|
||||
context.Result( ret )
|
||||
context.Result( ret )
|
||||
return int(ret)
|
||||
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ def CheckWXConfig(context, version, components, debug = False):
|
|||
context.Message('not all components found ['+string.join(components,',')+']... ')
|
||||
|
||||
context.Result(res)
|
||||
return res
|
||||
return int(res)
|
||||
|
||||
def ParseWXConfig(env):
|
||||
|
||||
|
|
Loading…
Reference in New Issue