loader: split out dri3 into subdir

this fixes dependency hell

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30400>
This commit is contained in:
Mike Blumenkrantz 2024-07-19 12:51:05 -04:00 committed by Marge Bot
parent 36aaaa968a
commit f9f8652445
7 changed files with 28 additions and 18 deletions

View file

@ -86,6 +86,7 @@ if with_dri
link_for_egl += libloader
incs_for_egl += inc_loader
incs_for_egl += inc_loader_x11
incs_for_egl += inc_loader_dri3
incs_for_egl += inc_gallium
incs_for_egl += inc_gallium_aux
incs_for_egl += inc_mesa

View file

@ -115,7 +115,7 @@ endif
libglx = static_library(
'glx',
[files_libglx, glx_generated],
include_directories : [inc_include, inc_src, inc_glapi, inc_loader, inc_loader_x11, inc_gallium],
include_directories : [inc_include, inc_src, inc_glapi, inc_loader, inc_loader_x11, inc_loader_dri3, inc_gallium],
c_args : [
'-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]),
],

View file

@ -3,23 +3,6 @@
inc_loader = include_directories('.')
if with_platform_x11 and with_dri3
libloader_dri3_helper = static_library(
'loader_dri3_helper',
'loader_dri3_helper.c',
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_gallium],
dependencies : [
idep_mesautil,
dep_libdrm, dep_xcb_dri3, dep_xcb_present, dep_xcb_sync, dep_xshmfence,
dep_xcb_xfixes,
],
build_by_default : false,
)
else
libloader_dri3_helper = []
endif
if with_platform_wayland
libloader_wayland_helper = static_library(
'loader_wayland_helper',

View file

@ -0,0 +1,21 @@
# Copyright © 2017 Intel Corporation
# SPDX-License-Identifier: MIT
inc_loader_dri3 = include_directories('.')
if with_platform_x11 and with_dri3
libloader_dri3_helper = static_library(
'loader_dri3_helper',
'loader_dri3_helper.c',
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_loader, inc_gallium],
dependencies : [
idep_mesautil,
dep_libdrm, dep_xcb_dri3, dep_xcb_present, dep_xcb_sync, dep_xshmfence,
dep_xcb_xfixes,
],
build_by_default : false,
)
else
libloader_dri3_helper = []
endif

View file

@ -113,6 +113,11 @@ if with_gallium
if with_tests and with_shared_glapi
subdir('mesa/state_tracker/tests')
endif
if with_dri
if with_gallium or with_gbm or with_platform_wayland
subdir('loader_dri3')
endif
endif
endif
if with_glx == 'dri'
subdir('glx')