mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
Define GLX_USE_APPLEGL, as config/darwin used to, to turn on specific code to use the applegl direct renderer Convert src/glx/apple/Makefile to automake Since the applegl libGL is now built by linking libappleglx into libGL, rather than by linking selected files into a special libGL: - Remove duplicate code in apple/glxreply.c and apple/apple_glx.c. This makes apple/glxreply.c empty, so remove it - Some indirect rendering code is already guarded by !GLX_USE_APPLEGL, but we need to add those guards to indirect_glx.c, indirect_init.c (via it's generator), render2.c and vertarr.c so they don't generate anything Fix and update various includes glapi_gentable.c (which is only used on darwin), should be included in shared glapi as well, to provide _glapi_create_table_from_handle() Note that neither swrast nor indirect is supported in the APPLEGL path at the moment, which makes things more complex than they need to be. More untangling is needed to allow that v2: Correct apple/Makefile.am for srcdir != builddir Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
143 lines
3.4 KiB
Makefile
143 lines
3.4 KiB
Makefile
# Copyright © 2012 Intel Corporation
|
|
#
|
|
# 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 (including the next
|
|
# paragraph) 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
|
|
# 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 SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
# IN THE SOFTWARE.
|
|
|
|
if HAVE_SHARED_GLAPI
|
|
SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI
|
|
SHARED_GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
|
|
endif
|
|
|
|
SUBDIRS =
|
|
|
|
if HAVE_XF86VIDMODE
|
|
EXTRA_DEFINES_XF86VIDMODE = -DXF86VIDMODE
|
|
endif
|
|
|
|
AM_CFLAGS = \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/include/GL/internal \
|
|
-I$(top_srcdir)/src/loader \
|
|
-I$(top_srcdir)/src/mapi \
|
|
-I$(top_srcdir)/src/mapi/glapi \
|
|
-I$(top_builddir)/src/mapi \
|
|
-I$(top_builddir)/src/mapi/glapi \
|
|
$(VISIBILITY_CFLAGS) \
|
|
$(SHARED_GLAPI_CFLAGS) \
|
|
$(EXTRA_DEFINES_XF86VIDMODE) \
|
|
-D_REENTRANT \
|
|
-DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
|
|
$(DEFINES) \
|
|
$(LIBDRM_CFLAGS) \
|
|
$(DRI2PROTO_CFLAGS) \
|
|
$(GLPROTO_CFLAGS) \
|
|
$(X11_INCLUDES)
|
|
|
|
lib_LTLIBRARIES = lib@GL_LIB@.la
|
|
|
|
noinst_LTLIBRARIES = libglx.la
|
|
|
|
libglx_la_SOURCES = \
|
|
clientattrib.c \
|
|
clientinfo.c \
|
|
compsize.c \
|
|
create_context.c \
|
|
eval.c \
|
|
glxconfig.c \
|
|
glxcmds.c \
|
|
glxcurrent.c \
|
|
glx_error.c \
|
|
glxext.c \
|
|
glxextensions.c \
|
|
indirect_glx.c \
|
|
indirect.c \
|
|
indirect_init.c \
|
|
indirect_size.c \
|
|
indirect_window_pos.c \
|
|
indirect_texture_compression.c \
|
|
indirect_transpose_matrix.c \
|
|
indirect_vertex_array.c \
|
|
indirect_vertex_program.c \
|
|
pixel.c \
|
|
pixelstore.c \
|
|
query_renderer.c \
|
|
render2.c \
|
|
renderpix.c \
|
|
single2.c \
|
|
singlepix.c \
|
|
vertarr.c \
|
|
glx_pbuffer.c \
|
|
glx_query.c \
|
|
glxhash.c
|
|
|
|
libglx_la_LIBADD = $(top_builddir)/src/loader/libloader.la
|
|
|
|
if HAVE_DRISW
|
|
libglx_la_SOURCES += \
|
|
drisw_glx.c
|
|
endif
|
|
|
|
if HAVE_DRICOMMON
|
|
libglx_la_SOURCES += \
|
|
xfont.c \
|
|
dri_common.c
|
|
endif
|
|
|
|
if HAVE_DRI2
|
|
libglx_la_SOURCES += \
|
|
dri_glx.c \
|
|
XF86dri.c \
|
|
dri2_glx.c \
|
|
dri2.c \
|
|
dri2_query_renderer.c
|
|
endif
|
|
|
|
if HAVE_DRI3
|
|
libglx_la_SOURCES += \
|
|
dri3_glx.c
|
|
endif
|
|
|
|
if HAVE_APPLEDRI
|
|
libglx_la_SOURCES += \
|
|
applegl_glx.c
|
|
|
|
SUBDIRS += apple
|
|
libglx_la_LIBADD += $(builddir)/apple/libappleglx.la
|
|
endif
|
|
|
|
GL_LIBS = \
|
|
libglx.la \
|
|
$(top_builddir)/src/mapi/glapi/libglapi.la \
|
|
$(SHARED_GLAPI_LIB) \
|
|
$(GL_LIB_DEPS)
|
|
|
|
GL_LDFLAGS = \
|
|
-no-undefined \
|
|
-version-number 1:2 \
|
|
$(BSYMBOLIC) \
|
|
$(GC_SECTIONS) \
|
|
$(LD_NO_UNDEFINED)
|
|
|
|
lib@GL_LIB@_la_SOURCES =
|
|
lib@GL_LIB@_la_LIBADD = $(GL_LIBS)
|
|
lib@GL_LIB@_la_LDFLAGS = $(GL_LDFLAGS)
|
|
|
|
SUBDIRS += . tests
|
|
|
|
include $(top_srcdir)/install-lib-links.mk
|