
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Dylan Baker <dylan.c.baker@intel.com> Acked-by: Eric Engestrom <eric@igalia.com> Acked-by: Daniel Stone <daniels@collabora.com> Signed-off-by: David Heidelberg <david@ixit.cz> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29972>
80 lines
1.7 KiB
Meson
80 lines
1.7 KiB
Meson
# Copyright © 2017 Dylan Baker
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
inc_st_dri = include_directories('.')
|
|
deps_for_libdri = []
|
|
|
|
files_libdri = files(
|
|
'dri_context.c',
|
|
'dri_context.h',
|
|
'dri_drawable.c',
|
|
'dri_drawable.h',
|
|
'dri_helpers.c',
|
|
'dri_helpers.h',
|
|
'dri_query_renderer.c',
|
|
'dri_query_renderer.h',
|
|
'dri_screen.c',
|
|
'dri_screen.h',
|
|
'dri_util.c',
|
|
'dri_util.h',
|
|
)
|
|
|
|
if with_platform_x11
|
|
deps_for_libdri += dep_xcb
|
|
endif
|
|
|
|
if with_dri
|
|
files_libdri += files('drisw.c')
|
|
endif
|
|
|
|
if with_dri2
|
|
files_libdri += files('dri2.c')
|
|
endif
|
|
|
|
libdri_c_args = []
|
|
if with_gallium_zink and not with_platform_android
|
|
if with_glvnd
|
|
libdri_c_args += '-DKOPPER_LIB_NAMES="libEGL_@0@ and libGLX_@0@"'.format(glvnd_vendor_name)
|
|
else
|
|
libdri_c_args += '-DKOPPER_LIB_NAMES="libEGL and libGLX"'
|
|
endif
|
|
files_libdri += files('kopper.c')
|
|
deps_for_libdri += vulkan_wsi_deps
|
|
endif
|
|
|
|
if with_gallium_softpipe
|
|
libdri_c_args += '-DGALLIUM_SOFTPIPE'
|
|
endif
|
|
|
|
libdri = static_library(
|
|
'dri',
|
|
[ files_libdri, sha1_h ],
|
|
include_directories : [
|
|
inc_include, inc_util, inc_mesa, inc_mapi, inc_src, inc_gallium,
|
|
inc_gallium_aux, inc_util, inc_gallium_drivers, inc_loader,
|
|
],
|
|
c_args : [libdri_c_args],
|
|
gnu_symbol_visibility : 'hidden',
|
|
dependencies : [
|
|
dep_libdrm,
|
|
idep_mesautil,
|
|
deps_for_libdri,
|
|
],
|
|
)
|
|
|
|
if with_dri
|
|
dri_req_private = []
|
|
if dep_libdrm.found()
|
|
dri_req_private = ['libdrm >= @0@'.format(_drm_ver)]
|
|
endif
|
|
|
|
pkg.generate(
|
|
name : 'dri',
|
|
filebase : 'dri',
|
|
description : 'Direct Rendering Infrastructure',
|
|
version : meson.project_version(),
|
|
variables : ['dridriverdir=@0@'.format(dri_drivers_path)],
|
|
requires_private : dri_req_private,
|
|
)
|
|
endif
|