mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
wxwidget test
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@594 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
25
SConstruct
25
SConstruct
@ -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
|
||||
|
Reference in New Issue
Block a user