X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglew%2FSConscript;h=45375e083a5bede015f6dda183132ef4bc39163e;hb=8b1c332a77555b94f5665517e5fdcb416e1a67b7;hp=1d7dbb9b78f96d43bbc9c6fe8d00a5954e508ec3;hpb=52eb3e4235cc661ab9626a704c555a5f096c628a;p=mesa.git diff --git a/src/glew/SConscript b/src/glew/SConscript index 1d7dbb9b78f..45375e083a5 100644 --- a/src/glew/SConscript +++ b/src/glew/SConscript @@ -26,7 +26,6 @@ lib_env = env.Clone() lib_env.Append(CPPDEFINES = [ 'GLEW_BUILD', - #'GLEW_STATIC', #'GLEW_MX', # Multiple Rendering Contexts support ]) @@ -35,23 +34,27 @@ if lib_env['platform'] == 'windows': else: target = 'GLEW' -glew = lib_env.SharedLibrary( - target = target, - source = [ - 'glew.c', - ], -) - -env.InstallSharedLibrary(glew, version=(1, 5)) +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'],