Browse Source

scons: Use static glew library on Unices to avoid binary compatability issues

Fixes bug 25926.
tags/7.8-rc1
José Fonseca 16 years ago
parent
commit
de22c940a1
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      src/glew/SConscript

+ 9
- 9
src/glew/SConscript View File

@@ -26,7 +26,6 @@ lib_env = env.Clone()

lib_env.Append(CPPDEFINES = [
'GLEW_BUILD',
#'GLEW_STATIC',
#'GLEW_MX', # Multiple Rendering Contexts support
])

@@ -35,17 +34,18 @@ if lib_env['platform'] == 'windows':
else:
target = 'GLEW'

glew = lib_env.SharedLibrary(
target = target,
source = [
'glew.c',
],
)

env.InstallSharedLibrary(glew, version=(1, 5, 2))
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()

Loading…
Cancel
Save