summaryrefslogtreecommitdiff
path: root/src/glew/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/glew/SConscript')
-rw-r--r--src/glew/SConscript69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/glew/SConscript b/src/glew/SConscript
deleted file mode 100644
index 4b5b5b8d0f..0000000000
--- a/src/glew/SConscript
+++ /dev/null
@@ -1,69 +0,0 @@
-Import('*')
-
-# Shared environment settings
-env = env.Clone()
-
-env.PrependUnique(CPPPATH = [
- '#/include',
-])
-
-if env['platform'] == 'windows':
- env.PrependUnique(LIBS = [
- 'glu32',
- 'opengl32',
- 'gdi32',
- 'user32',
- ])
-else:
- env.Tool('x11')
- env.PrependUnique(LIBS = [
- 'GLU',
- 'GL',
- 'X11',
- ])
-
-# Library specific environment settings
-lib_env = env.Clone()
-
-lib_env.Append(CPPDEFINES = [
- 'GLEW_BUILD',
- #'GLEW_MX', # Multiple Rendering Contexts support
-])
-
-if lib_env['platform'] == 'windows':
- target = 'glew'
-else:
- target = 'GLEW'
-
-source = [
- 'glew.c',
-]
-
-if lib_env['platform'] == 'windows':
- glew = lib_env.SharedLibrary(target = target, source = source)
- env.InstallSharedLibrary(glew, version=(1, 5, 2))
- glew = lib_env.FindIxes(glew, 'LIBPREFIX', 'LIBSUFFIX')
-else:
- # Use static library on Unices to avoid binary compatability issues
- lib_env.Append(CPPDEFINES = ['GLEW_STATIC'])
- glew = lib_env.StaticLibrary(target = target, source = source)
-
-# Program specific environment settings
-prog_env = env.Clone()
-
-prog_env.Prepend(LIBS = [glew])
-
-if prog_env['platform'] == 'darwin':
- prog_env.Append(FRAMEWORKS = ['AGL'])
-
-prog_env.Program(
- target = 'glewinfo',
- source = ['glewinfo.c'],
-)
-
-prog_env.Program(
- target = 'visualinfo',
- source = ['visualinfo.c'],
-)
-
-Export('glew')