dolphin/Externals/GLew/SConscript
Soren Jorvang 540238cf79 Prepare for the release of Xcode 4, which has working LTO
with static libraries.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7280 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-03 04:35:03 +00:00

21 lines
501 B
Python

# -*- python -*-
Import('env')
import sys
if env.has_key('shared_glew') and env['shared_glew']:
Return()
if sys.platform == 'darwin':
libs = []
frames = ['AGL', 'OpenGL']
else:
libs = ['GL', 'GLU']
frames = []
glew = env.StaticLibrary('GLEW', '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