wxwidget test

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@594 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-09-21 13:13:20 +00:00
parent 0f4d04f4fb
commit b6407396d8
3 changed files with 241 additions and 3 deletions

View File

@ -3,6 +3,11 @@
import os
import sys
# Home made tests
sys.path.append('SconsTests')
import wxconfig
# TODO: how do we use it in help?
name="Dolphin"
version="SVN"
@ -140,10 +145,23 @@ env['CCFLAGS'] = compileFlags
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ]
env['CPPDEFINES'] = cppDefines
# Configuration tests section
tests = {'CheckWXConfig' : wxconfig.CheckWXConfig}
conf = env.Configure(custom_tests = tests)
# handling wx flags CCFLAGS should be created before
# TODO: add version check
if not env['nowx']:
env.ParseConfig('wx-config --cflags --libs')
env['wxconfig']='wx-config'
env['build_platform']=env['PLATFORM']
env['target_platform']=env['PLATFORM']
if not conf.CheckWXConfig('2.8', ['gl', 'adv', 'core', 'base'], env['debug']):
print 'gui build requires wxwidgets >= 2.8'
Exit(1)
wxconfig.ParseWXConfig(env)
#get sdl stuff
env.ParseConfig("sdl-config --cflags --libs")
@ -151,6 +169,9 @@ env.ParseConfig("sdl-config --cflags --libs")
# lib ao (needed for sound plugins)
env.ParseConfig("pkg-config --cflags --libs ao")
# After all configuration tests are done
env = conf.Finish()
Export('env')
# print a nice progress indication when not compiling