test for x11 and xxf86vm

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@666 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-09-24 17:47:51 +00:00
parent 76dc8a86b3
commit d4711a605f
1 changed files with 15 additions and 0 deletions

View File

@ -1,7 +1,10 @@
# -*- python -*-
Import('env')
# can we import path in one place?
import sys
sys.path.append('../../../SconsTests')
import utils
files = [
'BPStructs.cpp',
@ -52,6 +55,18 @@ else:
platform = 'linux'
# By default, GLX is used on Linux to setup OpenGL, but you can select SDL
# instead if you like, by changing the line below.
tests = {'CheckPKG' : utils.CheckPKG}
conf = gfxenv.Configure(custom_tests = tests)
if not conf.CheckPKG('x11'):
Exit(1)
if not conf.CheckPKG('xxf86vm'):
Exit(1)
gfxenv = conf.Finish()
useSDL = False
gfxenv.ParseConfig("pkg-config x11 --cflags --libs")
gfxenv.ParseConfig("pkg-config xxf86vm --cflags --libs")