From d4711a605fc5617f98568dabd628ae6c70d6fbf3 Mon Sep 17 00:00:00 2001 From: nakeee Date: Wed, 24 Sep 2008 17:47:51 +0000 Subject: [PATCH] test for x11 and xxf86vm git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@666 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/SConscript | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/SConscript b/Source/Plugins/Plugin_VideoOGL/Src/SConscript index e3545191f4..073413206d 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/SConscript +++ b/Source/Plugins/Plugin_VideoOGL/Src/SConscript @@ -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")