mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 05:30:31 +01:00
glx: make it more obvious what libglapi_bridge is
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33634>
This commit is contained in:
parent
71bb62e3c9
commit
906dcb56e1
5 changed files with 13 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ libgl = shared_library(
|
|||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : [ld_args_bsymbolic, ld_args_gc_sections, gallium_xlib_ld_args],
|
||||
link_depends : gallium_xlib_link_depends,
|
||||
link_whole : [libxlib, libglapi_static],
|
||||
link_whole : [libxlib, (with_shared_glapi ? libglapi_bridge : libglapi_static)],
|
||||
link_with : [
|
||||
libgalliumvl_stub, libws_xlib,
|
||||
libgallium, libmesa, gallium_xlib_link_with,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ libosmesa = shared_library(
|
|||
inc_gallium_drivers,
|
||||
],
|
||||
link_depends : osmesa_link_deps,
|
||||
link_whole : [libosmesa_st, libglapi_static],
|
||||
link_whole : [libosmesa_st, (with_shared_glapi ? libglapi_bridge : libglapi_static)],
|
||||
link_with : [
|
||||
libmesa, libgallium, libws_null, osmesa_link_with,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ libgallium_wgl = shared_library(
|
|||
],
|
||||
link_whole : [libwgl],
|
||||
link_with : [
|
||||
libgallium, libglsl, libmesa, libwsgdi, libglapi_static, libglapi, libgalliumvl_stub,
|
||||
libgallium, libglsl, libmesa, libwsgdi, (with_shared_glapi ? libglapi_bridge : libglapi_static), libglapi, libgalliumvl_stub,
|
||||
],
|
||||
dependencies : [
|
||||
dep_ws2_32, idep_nir, idep_mesautil, driver_swrast,
|
||||
|
|
|
|||
|
|
@ -130,10 +130,18 @@ libglx = static_library(
|
|||
],
|
||||
)
|
||||
|
||||
if with_shared_glapi
|
||||
# libglapi_bridge contains GL functions that we need to export from libGL.so.
|
||||
# Other than that, we don't need it.
|
||||
libgl_link = with_glvnd ? [] : [libglapi_bridge]
|
||||
else
|
||||
libgl_link = libglapi_static
|
||||
endif
|
||||
|
||||
libgl = shared_library(
|
||||
gl_lib_name,
|
||||
[],
|
||||
link_with : [libglapi_static],
|
||||
link_with : libgl_link,
|
||||
link_whole : libglx,
|
||||
link_args : [ld_args_bsymbolic, ld_args_gc_sections, extra_ld_args_libgl],
|
||||
dependencies : [
|
||||
|
|
|
|||
|
|
@ -67,9 +67,7 @@ libglapi_bridge = static_library(
|
|||
build_by_default : false,
|
||||
)
|
||||
|
||||
if with_shared_glapi
|
||||
libglapi_static = libglapi_bridge
|
||||
else
|
||||
if not with_shared_glapi
|
||||
libglapi_static = static_library(
|
||||
'glapi_static',
|
||||
static_glapi_files,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue