summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMarcus Wanners <marcus@wanners.net>2009-03-07 21:05:03 +0000
committerMarcus Wanners <marcus@wanners.net>2009-03-07 21:05:03 +0000
commit49335efa713c15a7d02dc80d4e036b260e2c83f6 (patch)
tree4e80cb658b3df6a1859155e7d48fa11e2c561b3a /Source
parent56d1f87f49b7ede0e6157f8d630f5ecfa5ace785 (diff)
My package check patch.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2604 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/SConscript26
1 files changed, 15 insertions, 11 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/SConscript b/Source/Plugins/Plugin_VideoOGL/Src/SConscript
index 8846e613cb..773b3a8aa0 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/SConscript
+++ b/Source/Plugins/Plugin_VideoOGL/Src/SConscript
@@ -67,14 +67,15 @@ conf = gfxenv.Configure(custom_tests = tests,
if sys.platform == 'darwin':
- # Use libraries from MacPorts.
- compileFlags.append('-I/opt/local/include')
- linkFlags.append('-L/opt/local/lib')
- conf.CheckPKG('OpenGL')
- if not conf.CheckPKG('Cg'):
- print name + " must have Cg framework from nvidia to be build"
- Return()
-
+ # Use libraries from MacPorts.
+ compileFlags.append('-I/opt/local/include')
+ linkFlags.append('-L/opt/local/lib')
+ conf.CheckPKG('OpenGL')
+ if not conf.CheckPKG('Cg'):
+ print name + " must have Cg framework from nvidia to be build"
+ Return()
+elif sys.platform == 'win32':
+ print name + " is assuming that you have opengl, glu, cg, and cggl"
else:
if not (conf.CheckPKG('GL') and conf.CheckPKG('GLU')):
print name + " must have opengl and glu to be build"
@@ -83,8 +84,10 @@ else:
if not conf.CheckPKG('Cg') or not conf.CheckPKG('CgGL'):
print name + " must have cg and cggl to be build"
Return()
-
-if not conf.CheckPKG('GLEW'):
+if sys.platform == 'win32':
+ print name + " is assuming that you have glew"
+else:
+ if not conf.CheckPKG('GLEW'):
print name + " must have glew to be build"
Return()
@@ -125,7 +128,8 @@ gfxenv.Append(
LINKFLAGS = linkFlags,
)
-gfxenv.SharedLibrary(
+if sys.platform != 'win32':
+ gfxenv.SharedLibrary(
env['plugin_dir']+name,
files,
LIBS = libs + gfxenv['LIBS']