mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-13 01:29:11 +01:00
c212548f8e
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7173 8ced0084-cf51-0410-be5f-012b33b47a6e
23 lines
517 B
Python
23 lines
517 B
Python
# -*- python -*-
|
|
|
|
Import('env')
|
|
import sys
|
|
|
|
if env.has_key('shared_glew') and env['shared_glew']:
|
|
env['LIBS'] += ['GLEW']
|
|
Return()
|
|
|
|
if sys.platform == 'darwin':
|
|
libs = []
|
|
frames = ['AGL', 'OpenGL']
|
|
else:
|
|
libs = ['GL', 'GLU']
|
|
frames = []
|
|
|
|
glew = env.StaticObject('src/glew.c')
|
|
libs += glew
|
|
env.Program('glewinfo', 'src/glewinfo.c', LIBS = libs, FRAMEWORKS = frames)
|
|
env.Program('visualinfo', 'src/visualinfo.c', LIBS = libs, FRAMEWORKS = frames)
|
|
env['CPPPATH'] += ['#Externals/GLew/include']
|
|
env['LIBS'] += glew
|