mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glew: Drop glew now that we don't need it for the progs
configs/beos | 2 +- configs/darwin | 2 +- configs/default | 4 +- configs/freebsd-dri | 2 +- configs/linux-cell | 2 +- configs/linux-dri-xcb | 2 +- configs/linux-indirect | 2 +- configure.ac | 2 +- include/GL/glew.h |14435 ------------------------------------------------ include/GL/glxew.h | 1476 ----- include/GL/wglew.h | 1247 ----- src/SConscript | 1 - src/glew/LICENSE.txt | 73 - src/glew/Makefile | 54 - src/glew/SConscript | 69 - src/glew/glew.c |14320 ----------------------------------------------- src/glew/glewinfo.c | 8441 ---------------------------- src/glew/visualinfo.c | 1173 ---- 18 files changed, 8 insertions(+), 41299 deletions(-) Revert "glew: update to version 1.5.4" This reverts commita189b1c53b. Revert "glew: Include X11 headers and libraries in SCons build." This reverts commitefdd33985c. Revert "scons: Fix GLEW build on Mac OS X." This reverts commit8f81769148. Revert "scons: Use static glew library on Unices to avoid binary compatability issues" This reverts commitde22c940a1. Revert "glew: Update to version 1.5.2." This reverts commitaaf7ecfd81. Revert "scons: Build glew on all platforms." This reverts commit52eb3e4235. Revert "scons: Put glut and glew shared libraries into build/xxx/bin or lib." This reverts commit8a318edd08. Didn't revert scons/gallium.py Revert "scons: Fix glew build on MSVC." This reverts commit14a8c9dac7. Revert "scons: Build progs together with everything else." This reverts commit7bbf7f94ea. Only changed src/glew/SConscript Revert "mesa: include glew headers in MesaDemos tarballs" This reverts commitc57d81ddc9. Revert "mesa: include GLEW sources in MesaDemos tarball" This reverts commitb9e2e32daf. Revert "glew: correct misspelling of glFramebufferTextureLayer" This reverts commit1b05b5b4fe. Revert "glew: fix GLEW_LIB_NAME" This reverts commitc10df26a31. Revert "Add dummy install target for glew to fix 'make install'" This reverts commitc273dfe6a2. Revert "autoconf: Add GLEW needed by progs when building GLUT" This reverts commit2977cee38e. Revert "glew: Build it as a static lib." This reverts commitfcf9353fea. Revert "glew: Initial import." This reverts commit57d00016ca.
This commit is contained in:
parent
1574fb7846
commit
0528106cc7
19 changed files with 8 additions and 41308 deletions
9
Makefile
9
Makefile
|
|
@ -394,15 +394,6 @@ GLW_FILES = \
|
|||
$(DIRECTORY)/src/glw/glw.pc.in \
|
||||
$(DIRECTORY)/src/glw/depend
|
||||
|
||||
GLEW_FILES = \
|
||||
$(DIRECTORY)/include/GL/glew.h \
|
||||
$(DIRECTORY)/include/GL/glxew.h \
|
||||
$(DIRECTORY)/include/GL/wglew.h \
|
||||
$(DIRECTORY)/src/glew/*.c \
|
||||
$(DIRECTORY)/src/glew/Makefile \
|
||||
$(DIRECTORY)/src/glew/SConscript \
|
||||
$(DIRECTORY)/src/glew/LICENSE.txt
|
||||
|
||||
GLUT_FILES = \
|
||||
$(DIRECTORY)/include/GL/glut.h \
|
||||
$(DIRECTORY)/include/GL/glutf90.h \
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ else
|
|||
endif
|
||||
|
||||
# Directories
|
||||
SRC_DIRS = gallium mesa glu glut/beos glew
|
||||
SRC_DIRS = gallium mesa glu glut/beos
|
||||
GLU_DIRS = sgi
|
||||
DRIVER_DIRS = beos
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X
|
|||
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm
|
||||
|
||||
# omit glw lib for now:
|
||||
SRC_DIRS = glsl mapi/glapi mapi/vgapi glx/apple mesa gallium glu glut/glx glew
|
||||
SRC_DIRS = glsl mapi/glapi mapi/vgapi glx/apple mesa gallium glu glut/glx
|
||||
GLU_DIRS = sgi
|
||||
DRIVER_DIRS = osmesa
|
||||
#DRIVER_DIRS = dri
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
|
|||
GL_LIB = GL
|
||||
GLU_LIB = GLU
|
||||
GLUT_LIB = glut
|
||||
GLEW_LIB = GLEW
|
||||
GLW_LIB = GLw
|
||||
OSMESA_LIB = OSMesa
|
||||
EGL_LIB = EGL
|
||||
|
|
@ -65,7 +64,6 @@ VG_LIB = OpenVG
|
|||
GL_LIB_NAME = lib$(GL_LIB).so
|
||||
GLU_LIB_NAME = lib$(GLU_LIB).so
|
||||
GLUT_LIB_NAME = lib$(GLUT_LIB).so
|
||||
GLEW_LIB_NAME = lib$(GLEW_LIB).a
|
||||
GLW_LIB_NAME = lib$(GLW_LIB).so
|
||||
OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
||||
EGL_LIB_NAME = lib$(EGL_LIB).so
|
||||
|
|
@ -96,7 +94,7 @@ MOTIF_CFLAGS = -I/usr/include/Motif1.2
|
|||
# Directories to build
|
||||
LIB_DIR = lib
|
||||
SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
|
||||
gallium egl gallium/winsys gallium/targets glu glut/glx glew glw
|
||||
gallium egl gallium/winsys gallium/targets glu glut/glx glw
|
||||
GLU_DIRS = sgi
|
||||
DRIVER_DIRS = x11 osmesa
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
|
|||
|
||||
|
||||
# Directories
|
||||
SRC_DIRS = glx gallium mesa glu glut/glx glew glw
|
||||
SRC_DIRS = glx gallium mesa glu glut/glx glw
|
||||
DRIVER_DIRS = dri
|
||||
|
||||
DRM_SOURCE_PATH=$(TOP)/../drm
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ CXXFLAGS = $(COMMON_C_CPP_FLAGS)
|
|||
|
||||
# Omitting glw here:
|
||||
SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
|
||||
gallium gallium/winsys gallium/targets glu glut/glx glew
|
||||
gallium gallium/winsys gallium/targets glu glut/glx
|
||||
|
||||
# Build no traditional Mesa drivers:
|
||||
DRIVER_DIRS =
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
|
|||
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
|
||||
$(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx)
|
||||
|
||||
SRC_DIRS = glx gallium mesa glu glut/glx glew glw
|
||||
SRC_DIRS = glx gallium mesa glu glut/glx glw
|
||||
|
||||
DRIVER_DIRS = dri
|
||||
DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon \
|
||||
|
|
|
|||
|
|
@ -47,5 +47,5 @@ GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
|
|||
|
||||
|
||||
# Directories
|
||||
SRC_DIRS = glx glu glut/glx glew glw
|
||||
SRC_DIRS = glx glu glut/glx glw
|
||||
DRIVER_DIRS =
|
||||
|
|
|
|||
|
|
@ -469,7 +469,7 @@ dnl
|
|||
dnl this variable will be prepended to SRC_DIRS and is not exported
|
||||
CORE_DIRS="mapi/glapi glsl mesa"
|
||||
|
||||
SRC_DIRS="glew"
|
||||
SRC_DIRS=""
|
||||
GLU_DIRS="sgi"
|
||||
GALLIUM_DIRS="auxiliary drivers state_trackers"
|
||||
GALLIUM_TARGET_DIRS=""
|
||||
|
|
|
|||
14435
include/GL/glew.h
14435
include/GL/glew.h
File diff suppressed because it is too large
Load diff
1476
include/GL/glxew.h
1476
include/GL/glxew.h
File diff suppressed because it is too large
Load diff
1247
include/GL/wglew.h
1247
include/GL/wglew.h
File diff suppressed because it is too large
Load diff
|
|
@ -14,4 +14,3 @@ SConscript('gallium/SConscript')
|
|||
|
||||
if platform != 'embedded':
|
||||
SConscript('glut/glx/SConscript')
|
||||
SConscript('glew/SConscript')
|
||||
|
|
|
|||
|
|
@ -1,73 +0,0 @@
|
|||
The OpenGL Extension Wrangler Library
|
||||
Copyright (C) 2002-2007, Milan Ikits <milan ikits[]ieee org>
|
||||
Copyright (C) 2002-2007, Marcelo E. Magallon <mmagallo[]debian org>
|
||||
Copyright (C) 2002, Lev Povalahev
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* The name of the author may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
Mesa 3-D graphics library
|
||||
Version: 7.0
|
||||
|
||||
Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
Copyright (c) 2007 The Khronos Group Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and/or associated documentation files (the
|
||||
"Materials"), to deal in the Materials without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
permit persons to whom the Materials are furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Materials.
|
||||
|
||||
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
# src/glew/Makefile
|
||||
|
||||
TOP = ../..
|
||||
include $(TOP)/configs/current
|
||||
|
||||
|
||||
##### MACROS #####
|
||||
|
||||
GLEW_LIB_NAME = libGLEW.a
|
||||
|
||||
MAJOR = 1
|
||||
MINOR = 5
|
||||
TINY = 0
|
||||
|
||||
SOURCES = \
|
||||
glew.c
|
||||
|
||||
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
|
||||
|
||||
##### RULES #####
|
||||
|
||||
.c.o:
|
||||
$(CC) -c -I$(TOP)/include $(X11_INCLUDES) $(CFLAGS) $<
|
||||
|
||||
|
||||
|
||||
##### TARGETS #####
|
||||
|
||||
default: $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME)
|
||||
|
||||
|
||||
|
||||
# Make the library
|
||||
$(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME): depend $(OBJECTS)
|
||||
$(MKLIB) -o $(GLEW_LIB) -static -install $(TOP)/$(LIB_DIR) $(OBJECTS)
|
||||
|
||||
|
||||
install:
|
||||
|
||||
|
||||
clean:
|
||||
-rm -f *.o *~
|
||||
-rm -f depend depend.bak
|
||||
|
||||
|
||||
depend: $(SOURCES)
|
||||
@ rm -f depend
|
||||
@ touch depend
|
||||
@ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \
|
||||
$(X11_INCLUDES) > /dev/null
|
||||
|
||||
include depend
|
||||
|
|
@ -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')
|
||||
14320
src/glew/glew.c
14320
src/glew/glew.c
File diff suppressed because it is too large
Load diff
8441
src/glew/glewinfo.c
8441
src/glew/glewinfo.c
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue