summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-09-24 17:47:51 +0000
committernakeee <nakeee@gmail.com>2008-09-24 17:47:51 +0000
commitd4711a605fc5617f98568dabd628ae6c70d6fbf3 (patch)
treea89349a17649cc46528ad31f61835d2bc78e3adc /Source
parent76dc8a86b319742fa0bc1bb92b718792081d66ef (diff)
test for x11 and xxf86vm
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@666 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/SConscript15
1 files changed, 15 insertions, 0 deletions
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")