],
link_with : [
libamd_common, libamdgpu_addrlib, libvulkan_wsi,
- libmesa_util, libxmlconfig
+ libxmlconfig
],
dependencies : [
dep_llvm, dep_libdrm_amdgpu, dep_thread, dep_elf, dep_dl, dep_m,
dep_valgrind, radv_deps,
- idep_nir, idep_vulkan_util, idep_amdgfxregs_h,
+ idep_mesautil, idep_nir, idep_vulkan_util, idep_amdgfxregs_h,
],
c_args : [c_vis_args, no_override_init_args, radv_flags],
cpp_args : [cpp_vis_args, radv_flags],
'v3d.c',
'../../gallium/drivers/v3d/v3d_simulator_wrapper.cpp',
],
- dependencies: [dep_dl, dep_drm_shim, dep_v3dv3],
- link_with: [libmesa_util, per_version_libs],
+ dependencies: [idep_mesautil, dep_dl, dep_drm_shim, dep_v3dv3],
+ link_with: per_version_libs,
include_directories : [inc_common, inc_broadcom, inc_gallium_v3d],
c_args : [c_vis_args, no_override_init_args, '-std=gnu99', v3dv3_c_args],
cpp_args : [v3dv3_c_args]
'qpu_disasm',
executable(
'qpu_disasm', 'tests/qpu_disasm.c',
- link_with: [libbroadcom_qpu, libmesa_util],
+ link_with: libbroadcom_qpu,
+ dependencies : idep_mesautil,
include_directories: inc_common
),
suite : ['broadcom'],
libglcpp = static_library(
'glcpp',
[glcpp_lex, glcpp_parse, files('glcpp.h', 'pp.c')],
- link_with : libmesa_util,
+ dependencies : idep_mesautil,
include_directories : [inc_common],
c_args : [c_vis_args, no_override_init_args, c_msvc_compat_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
- link_with : [libglsl, libglsl_util, libmesa_util],
- dependencies : [dep_thread],
+ link_with : [libglsl, libglsl_util],
+ dependencies : [dep_thread, idep_mesautil],
build_by_default : false,
)
spirv2nir = executable(
'spirv2nir',
files('spirv/spirv2nir.c'),
- dependencies : [dep_m, dep_thread, idep_nir],
+ dependencies : [dep_m, dep_thread, idep_nir, idep_mesautil],
include_directories : [inc_common, inc_nir, include_directories('spirv')],
- link_with : libmesa_util,
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
build_by_default : with_tools.contains('nir'),
install : with_tools.contains('nir'),
files('tests/control_flow_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'nir'],
)
files('tests/vars_tests.cpp'),
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'nir'],
)
files('tests/negative_equal_tests.cpp'),
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
)
)
files('tests/comparison_pre_tests.cpp'),
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
include_directories : [inc_common],
- dependencies : [dep_thread, idep_gtest, idep_nir],
- link_with : libmesa_util,
+ dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
)
)
endif
'device.c',
'drm_shim.c',
],
- link_with: libmesa_util,
include_directories: [inc_common],
- dependencies: [dep_dl],
+ dependencies: [idep_mesautil, dep_dl],
c_args : [c_vis_args, '-std=gnu99'],
)
dep_drm_shim = declare_dependency(
'-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_@0@'.format(egl_native_platform.to_upper()),
],
include_directories : incs_for_egl,
- link_with : [link_for_egl, libglapi, libmesa_util],
+ link_with : [link_for_egl, libglapi],
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
- dependencies : [deps_for_egl, dep_dl, dep_libdrm, dep_clock, dep_thread],
+ dependencies : [deps_for_egl, dep_dl, dep_libdrm, dep_clock, dep_thread, idep_mesautil],
install : true,
version : egl_lib_version,
)
dependencies : [
dep_libdrm,
dep_valgrind,
+ idep_mesautil,
],
- link_with : [libetnaviv_drm, libmesa_util],
+ link_with : libetnaviv_drm,
install: false,
)
dependencies : [
dep_libdrm,
dep_valgrind,
+ idep_mesautil,
],
- link_with : [libetnaviv_drm, libmesa_util],
+ link_with : libetnaviv_drm,
install: false,
)
],
link_with : [
libvulkan_wsi,
- libmesa_util,
libfreedreno_drm, # required by ir3_shader_get_variant, which we don't use
libfreedreno_ir3,
],
idep_nir,
tu_deps,
idep_vulkan_util,
+ idep_mesautil,
],
c_args : [c_vis_args, no_override_init_args, tu_flags],
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
include_directories : [
inc_include, inc_src, inc_gallium, inc_gallium_aux, inc_etnaviv,
],
- link_with : [libmesa_util, libgallium, libetnaviv, libetnaviv_drm],
+ link_with : [libgallium, libetnaviv, libetnaviv_drm],
build_by_default : with_tools.contains('etnaviv'),
install : with_tools.contains('etnaviv'),
- dependencies : dep_libdrm,
+ dependencies : [idep_mesautil, dep_libdrm],
)
driver_etnaviv = declare_dependency(
dependencies : [
dep_thread,
idep_nir,
+ idep_mesautil,
],
link_with : [
libfreedreno,
libfreedreno_ir3,
libgallium,
libglsl_standalone,
- libmesa_util,
],
build_by_default : with_tools.contains('freedreno'),
install : with_tools.contains('freedreno'),
dependencies : [
dep_thread,
idep_nir,
+ idep_mesautil,
],
link_with : [
liblima,
libgallium,
libglsl_standalone,
- libmesa_util,
libpanfrost_shared,
],
build_by_default : with_tools.contains('lima'),
executable(
t,
['@0@.c'.format(t), 'lp_test_main.c'],
- dependencies : [dep_llvm, dep_dl, dep_thread, dep_clock],
+ dependencies : [dep_llvm, dep_dl, dep_thread, dep_clock, idep_mesautil],
include_directories : [inc_gallium, inc_gallium_aux, inc_include, inc_src],
- link_with : [libllvmpipe, libgallium, libmesa_util],
+ link_with : [libllvmpipe, libgallium],
),
suite : ['llvmpipe'],
)
'nouveau_compiler',
'nouveau_compiler.c',
include_directories : [inc_src, inc_include, inc_gallium, inc_gallium_aux],
- dependencies : [dep_libdrm, dep_libdrm_nouveau],
- link_with : [libnouveau, libgallium, libmesa_util, libnir],
+ dependencies : [dep_libdrm, dep_libdrm_nouveau, idep_mesautil],
+ link_with : [libnouveau, libgallium, libnir],
build_by_default : with_tools.contains('nouveau'),
install : with_tools.contains('nouveau'),
)
inc_src, inc_include, inc_gallium, inc_gallium_aux,
include_directories('compiler'),
],
- link_with : [libr300, libgallium, libmesa_util],
- dependencies : [dep_m, dep_clock, dep_dl, dep_thread, dep_unwind],
+ link_with : [libr300, libgallium],
+ dependencies : [dep_m, dep_clock, dep_dl, dep_thread, dep_unwind, idep_mesautil],
),
suite : ['r300'],
)
link_args : [ld_args_gc_sections, gallium_nine_ld_args],
link_depends : gallium_nine_link_depends,
link_with : [
- libgalliumvl_stub, libgallium, libnine_st, libmesa_util,
+ libgalliumvl_stub, libgallium, libnine_st,
libpipe_loader_static, libws_null, libwsw, libswdri,
libswkmsdri, libnir,
],
dependencies : [
- dep_selinux, dep_libdrm, dep_llvm, dep_thread, idep_xmlconfig,
+ dep_selinux, dep_libdrm, dep_llvm, dep_thread, idep_xmlconfig, idep_mesautil,
driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,
driver_i915, driver_svga, driver_iris
],
'graw_null',
['graw_null.c'],
include_directories : inc_common,
- link_with : [libmesa_util, libgallium],
+ link_with : libgallium,
+ dependencies : idep_mesautil,
)
libgraw = libgraw_null
['graw_xlib.c'],
include_directories : [inc_common, inc_gallium_drivers, inc_gallium_winsys],
link_with : [
- libgraw_util, libmesa_util, libgallium, libws_xlib
+ libgraw_util, libgallium, libws_xlib
],
- dependencies : [dep_thread, driver_swrast],
+ dependencies : [idep_mesautil, dep_thread, driver_swrast],
version : '1.0',
)
cpp_args : [cpp_vis_args],
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
link_with : [
- libglapi, libswhgl, libsthgl, libmesa_util, libcompiler,
+ libglapi, libswhgl, libsthgl, libcompiler,
libmesa_gallium, libglsl, libnir, libgallium, libgl
],
dependencies : [
driver_swrast, cpp.find_library('be'), cpp.find_library('translation'),
- cpp.find_library('network'), dep_unwind
+ cpp.find_library('network'), dep_unwind, idep_mesautil,
]
)
],
link_whole : [libomx_st],
link_with : [
- libgalliumvlwinsys, libgalliumvl, libgallium, libmesa_util,
+ libgalliumvlwinsys, libgalliumvl, libgallium,
libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,
],
link_depends : omx_link_depends,
- dependencies : [dep_thread, driver_r600, driver_radeonsi, driver_nouveau],
+ dependencies : [dep_thread, idep_mesautil, driver_r600, driver_radeonsi, driver_nouveau],
install : true,
install_dir : omx_drivers_path,
)
link_args : [ld_args_gc_sections, opencl_link_args],
link_depends : opencl_link_deps,
link_whole : libclover,
- link_with : [libpipe_loader_dynamic, libgallium, libmesa_util],
+ link_with : [libpipe_loader_dynamic, libgallium],
dependencies : [
+ idep_mesautil,
dep_thread, dep_clock, dep_dl, dep_unwind, dep_elf, dep_expat,
cpp.find_library('clangCodeGen', dirs : llvm_libdir),
cpp.find_library('clangFrontendTool', dirs : llvm_libdir),
pipe_loader_link_args = [ld_args_gc_sections]
pipe_loader_link_deps = []
-pipe_loader_link_with = [libgallium, libnir, libmesa_util]
+pipe_loader_link_with = [libgallium, libnir]
pipe_loader_comp_args = []
pipe_loader_incs = [
inc_include, inc_src, inc_util, inc_gallium, inc_gallium_drivers,
link_depends : pipe_loader_link_deps,
include_directories : pipe_loader_incs,
link_with : [pipe_loader_link_with, x[3]],
- dependencies : [dep_thread, x[2]],
+ dependencies : [idep_mesautil, dep_thread, x[2]],
name_prefix : '',
install : true,
install_dir : pipe_loader_install_dir,
],
link_whole : [libva_st],
link_with : [
- libgalliumvlwinsys, libgalliumvl, libgallium, libmesa_util,
+ libgalliumvlwinsys, libgalliumvl, libgallium,
libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,
],
dependencies : [
dep_libdrm, dep_thread, driver_r600, driver_radeonsi, driver_nouveau,
+ idep_mesautil,
],
link_depends : va_link_depends,
# Will be deleted during installation, see install_megadrivers.py
],
link_whole : [libvdpau_st],
link_with : [
- libgalliumvlwinsys, libgalliumvl, libgallium, libmesa_util,
+ libgalliumvlwinsys, libgalliumvl, libgallium,
libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,
],
dependencies : [
- dep_thread, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,
+ dep_thread, idep_mesautil,
+ driver_r300, driver_r600, driver_radeonsi, driver_nouveau,
],
link_depends : vdpau_link_depends,
soversion : '@0@.@1@.0'.format(VDPAU_MAJOR, VDPAU_MINOR),
],
link_whole : [libxa_st],
link_with : [
- libgalliumvl_stub, libgallium, libmesa_util, libpipe_loader_static,
+ libgalliumvl_stub, libgallium, libpipe_loader_static,
libws_null, libwsw, libswdri, libswkmsdri,
],
link_depends : xa_link_depends,
dependencies : [
- dep_thread, driver_nouveau, driver_i915, driver_svga, driver_freedreno,
+ dep_thread, idep_mesautil,
+ driver_nouveau, driver_i915, driver_svga, driver_freedreno,
],
version : _xa_version,
install : true,
],
link_whole : [libxvmc_st],
link_with : [
- libgalliumvlwinsys, libgalliumvl, libgallium, libmesa_util,
+ libgalliumvlwinsys, libgalliumvl, libgallium,
libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri,
],
- dependencies : [dep_thread, driver_r600, driver_nouveau],
+ dependencies : [dep_thread, idep_mesautil, driver_r600, driver_nouveau],
link_depends : xvmc_link_depends,
# Will be deleted during installation, see install_megadrivers.py
install : true,
'graw-' + t,
t + '.c',
include_directories : inc_common,
- link_with : [libgraw, libgraw_util, libmesa_util, libgallium],
- dependencies : [dep_m, dep_thread]
+ link_with : [libgraw, libgraw_util, libgallium],
+ dependencies : [dep_m, dep_thread, idep_mesautil],
)
endforeach
t,
'@0@.c'.format(t),
include_directories : inc_common,
- link_with : [libmesa_util, libgallium, libpipe_loader_dynamic],
- dependencies : dep_thread,
+ link_with : [libgallium, libpipe_loader_dynamic],
+ dependencies : [idep_mesautil, dep_thread],
install : false,
)
endforeach
t,
'@0@.c'.format(t),
include_directories : inc_common,
- link_with : [libgallium, libmesa_util],
- dependencies : [dep_thread],
+ link_with : libgallium,
+ dependencies : [idep_mesautil, dep_thread],
install : false,
)
# u_cache_test is slow, and translate_test fails.
include_directories : incs_gbm,
c_args : [c_vis_args, args_gbm],
link_args : [ld_args_gc_sections],
- link_with : [libloader, libmesa_util, libxmlconfig],
- dependencies : [deps_gbm, dep_dl, dep_thread],
+ link_with : [libloader, libxmlconfig],
+ dependencies : [deps_gbm, dep_dl, dep_thread, idep_mesautil],
version : '1.0.0',
install : true,
)
'-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]),
],
link_with : [
- libloader, libloader_dri3_helper, libmesa_util, libxmlconfig,
+ libloader, libloader_dri3_helper, libxmlconfig,
extra_libs_libglx,
],
- dependencies : [dep_libdrm, dep_dri2proto, dep_glproto, dep_x11, dep_glvnd],
+ dependencies : [idep_mesautil, dep_libdrm, dep_dri2proto, dep_glproto, dep_x11, dep_glvnd],
)
libgl = shared_library(
'-DGEN_VERSIONx10=@0@'.format(g[0])
],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_dev, libmesa_util],
- dependencies : [dep_libdrm, dep_thread, idep_gtest, idep_genxml],
+ link_with : [libintel_dev],
+ dependencies : [dep_libdrm, dep_thread, idep_gtest, idep_genxml, idep_mesautil],
install : install_intel_gpu_tests,
)
endforeach
'genxml_test',
['tests/genxml_test.c', gentest_pack],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libmesa_util],
+ dependencies : idep_mesautil,
+ link_with : libintel_common,
c_args : [
'-DGENXML_PATH="@0@"'.format(genxml_path)
],
'test_@0@.cpp'.format(t),
include_directories : [inc_common, inc_intel],
link_with : [
- libintel_compiler, libintel_common, libintel_dev, libmesa_util, libisl,
+ libintel_compiler, libintel_common, libintel_dev, libisl,
],
- dependencies : [dep_thread, dep_dl, idep_gtest, idep_nir],
+ dependencies : [dep_thread, dep_dl, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['intel'],
)
executable(
'isl_surf_get_image_offset_test',
'tests/isl_surf_get_image_offset_test.c',
- dependencies : dep_m,
+ dependencies : [dep_m, idep_mesautil],
include_directories : [inc_common, inc_intel],
- link_with : [libisl, libintel_dev, libmesa_util],
+ link_with : [libisl, libintel_dev],
),
suite : ['intel'],
)
'aub',
files('aub_read.c', 'aub_mem.c'),
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libintel_dev, libmesa_util],
+ dependencies : idep_mesautil,
+ link_with : [libintel_common, libintel_dev],
c_args : [c_vis_args, no_override_init_args],
install : false
)
aubinator = executable(
'aubinator',
files('aubinator.c'),
- dependencies : [dep_expat, dep_zlib, dep_dl, dep_thread, dep_m],
+ dependencies : [idep_mesautil, dep_expat, dep_zlib, dep_dl, dep_thread, dep_m],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util, libaub],
+ link_with : [libintel_common, libintel_compiler, libintel_dev, libaub],
c_args : [c_vis_args, no_override_init_args],
install : true
)
aubinator_error_decode = executable(
'aubinator_error_decode',
files('aubinator_error_decode.c'),
- dependencies : [dep_zlib, dep_thread],
+ dependencies : [idep_mesautil, dep_zlib, dep_thread],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
+ link_with : [libintel_common, libintel_compiler, libintel_dev],
c_args : [c_vis_args, no_override_init_args],
install : true
)
i965_disasm = executable(
'i965_disasm',
files('i965_disasm.c'),
- dependencies : [dep_thread],
+ dependencies : [idep_mesautil, dep_thread],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
+ link_with : [libintel_common, libintel_compiler, libintel_dev],
c_args : [c_vis_args, no_override_init_args],
install : true
)
libintel_sanitize_gpu = shared_library(
'intel_sanitize_gpu',
files('intel_sanitize_gpu.c'),
- dependencies : [dep_dl, dep_thread],
+ dependencies : [idep_mesautil, dep_dl, dep_thread],
include_directories : [inc_common, inc_intel, inc_include],
- link_with : [libintel_common, libmesa_util],
+ link_with : libintel_common,
c_args : [c_vis_args, no_override_init_args, c_sse2_args],
install_dir : get_option('libexecdir'),
install : true
aubinator_viewer = executable(
'aubinator_viewer',
files('aubinator_viewer.cpp', 'aubinator_viewer_decoder.cpp'),
- dependencies : [dep_zlib, dep_dl, dep_thread, dep_m, libintel_imgui_gtk_dep],
+ dependencies : [idep_mesautil, dep_zlib, dep_dl, dep_thread, dep_m, libintel_imgui_gtk_dep],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util, libaub],
+ link_with : [libintel_common, libintel_compiler, libintel_dev, libaub],
c_args : [c_vis_args, no_override_init_args],
cpp_args : ['-fpermissive', '-Wno-parentheses', '-Wno-class-memaccess'],
install : true
i965_asm = executable(
'i965_asm',
['i965_asm.c', i965_gram_tab[0], i965_gram_tab[1], i965_lex_yy_c],
- dependencies : [dep_thread],
+ dependencies : [idep_mesautil, dep_thread],
include_directories : [inc_common, inc_intel],
- link_with : [libintel_common, libintel_compiler, libintel_dev, libmesa_util],
+ link_with : [libintel_common, libintel_compiler, libintel_dev],
c_args : [c_vis_args, no_override_init_args],
install : true
)
link_whole : [libanv_common, libanv_gen_libs],
link_with : [
libintel_compiler, libintel_common, libintel_dev, libisl, libblorp,
- libvulkan_wsi, libmesa_util,
+ libvulkan_wsi,
],
dependencies : [
- dep_thread, dep_dl, dep_m, anv_deps, idep_nir, idep_genxml, idep_vulkan_util
+ dep_thread, dep_dl, dep_m, anv_deps,
+ idep_nir, idep_genxml, idep_vulkan_util, idep_mesautil,
],
c_args : anv_flags,
link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections],
link_whole : libanv_common,
link_with : [
libanv_gen_libs, libintel_compiler, libintel_common, libintel_dev,
- libisl, libblorp, libvulkan_wsi, libmesa_util,
+ libisl, libblorp, libvulkan_wsi,
],
dependencies : [
- dep_thread, dep_dl, dep_m, anv_deps, idep_nir, idep_vulkan_util
+ dep_thread, dep_dl, dep_m, anv_deps,
+ idep_nir, idep_vulkan_util, idep_mesautil,
],
c_args : anv_flags,
)
[],
link_whole : _dri_drivers,
link_with : [
- libmegadriver_stub, libdricommon, libglapi, libmesa_util,
+ libmegadriver_stub, libdricommon, libglapi,
libmesa_classic,
],
dependencies : [
- dep_selinux, dep_libdrm, dep_m, dep_thread, dep_dl, idep_nir, idep_xmlconfig,
+ dep_selinux, dep_libdrm, dep_m, dep_thread, dep_dl,
+ idep_nir, idep_xmlconfig, idep_mesautil,
],
link_args : [ld_args_build_id, ld_args_bsymbolic, ld_args_gc_sections],
# Will be deleted during installation, see install_megadrivers.py
include_directories : [
inc_include, inc_src, inc_mesa, inc_mapi, inc_gallium, inc_gallium_aux
],
- link_with : [libmesa_classic, libglapi_static, libmesa_util, gl_link_with],
- dependencies : [dep_x11, dep_xext, dep_xcb, dep_thread],
+ link_with : [libmesa_classic, libglapi_static, gl_link_with],
+ dependencies : [idep_mesautil, dep_x11, dep_xext, dep_xcb, dep_thread],
version : '1.6.0',
install : true,
)
include_directories : inc_common,
link_with : [
libmesa_st_test_common, libmesa_gallium, libglapi, libgallium,
- libmesa_util,
],
- dependencies : dep_thread,
+ dependencies : [dep_thread, idep_mesautil],
),
suite : ['st_mesa'],
)
include_directories : inc_common,
link_with : [
libmesa_st_test_common, libmesa_gallium, libglapi, libgallium,
- libmesa_util,
],
- dependencies : [idep_gtest, dep_thread],
+ dependencies : [idep_mesautil, idep_gtest, dep_thread],
),
suite : ['st_mesa'],
)
include_directories : inc_common,
link_with : [
libmesa_st_test_common, libmesa_gallium, libglapi, libgallium,
- libmesa_util,
],
- dependencies : [idep_gtest, dep_thread]
+ dependencies : [idep_mesautil, idep_gtest, dep_thread],
),
suite : ['st_mesa'],
)
include_directories : [inc_common, inc_include, inc_src, inc_panfrost],
dependencies : [
dep_thread,
- ],
- link_with : [
- libmesa_util
+ idep_mesautil,
],
build_by_default : true
)
],
dependencies : [
dep_thread,
- idep_nir
+ idep_nir,
+ idep_mesautil,
],
link_with : [
libglsl_standalone,
- libmesa_util,
libpanfrost_bifrost
],
build_by_default : true
capture : true,
)
-libmesa_util = static_library(
+_libmesa_util = static_library(
'mesa_util',
[files_mesa_util, format_srgb],
include_directories : inc_common,
build_by_default : false
)
+idep_mesautil = declare_dependency(
+ link_with : _libmesa_util,
+ include_directories : inc_util,
+ dependencies : [dep_zlib, dep_clock, dep_thread, dep_atomic, dep_m],
+)
+
libxmlconfig = static_library(
'xmlconfig',
files_xmlconfig,
include_directories : inc_common,
- link_with : libmesa_util,
- dependencies : [dep_expat, dep_m],
+ dependencies : [idep_mesautil, dep_expat, dep_m],
c_args : [
c_msvc_compat_args, c_vis_args,
'-DSYSCONFDIR="@0@"'.format(
'u_atomic_test',
files('u_atomic_test.c'),
include_directories : inc_common,
- link_with : libmesa_util,
+ dependencies : idep_mesautil,
c_args : [c_msvc_compat_args],
),
suite : ['util'],
'mesa-sha1_test',
files('mesa-sha1_test.c'),
include_directories : inc_common,
- link_with : libmesa_util,
+ dependencies : idep_mesautil,
c_args : [c_msvc_compat_args],
),
suite : ['util'],
'bitset_test',
files('bitset_test.cpp'),
include_directories : inc_common,
- dependencies : [dep_thread, dep_dl, idep_gtest],
- link_with : libmesa_util,
+ dependencies : [idep_mesautil, dep_thread, dep_dl, idep_gtest],
),
suite : ['util'],
)
executable(
'fast_idiv_by_const_test',
'fast_idiv_by_const_test.cpp',
- dependencies : [dep_thread, dep_dl, idep_gtest],
+ dependencies : [dep_thread, dep_dl, idep_gtest, idep_mesautil],
include_directories : inc_common,
- link_with : [libmesa_util],
),
suite : ['util'],
)
executable(
'fast_urem_by_const_test',
'fast_urem_by_const_test.cpp',
- dependencies : [dep_thread, dep_dl, idep_gtest],
+ dependencies : [dep_thread, dep_dl, idep_gtest, idep_mesautil],
include_directories : inc_common,
- link_with : [libmesa_util],
),
suite : ['util'],
)
'@0@_test'.format(t),
files('@0@.c'.format(t)),
c_args : [c_msvc_compat_args],
- dependencies : [dep_thread, dep_dl],
+ dependencies : [dep_thread, dep_dl, idep_mesautil],
include_directories : [inc_include, inc_util],
- link_with : libmesa_util,
),
suite : ['util'],
)
executable(
'set_test',
'set_test.cpp',
- dependencies : [dep_thread, dep_dl, idep_gtest],
+ dependencies : [dep_thread, dep_dl, idep_gtest, idep_mesautil],
include_directories : inc_common,
- link_with : [libmesa_util],
),
suite : ['util'],
)
executable(
'string_buffer_test',
'string_buffer_test.cpp',
- dependencies : [dep_thread, dep_dl, idep_gtest],
+ dependencies : [dep_thread, dep_dl, idep_gtest, idep_mesautil],
include_directories : inc_common,
- link_with : [libmesa_util],
),
suite : ['util'],
)
executable(
'timespec_test',
'timespec_test.cpp',
- dependencies : [dep_thread, dep_dl, idep_gtest],
+ dependencies : [dep_thread, dep_dl, idep_gtest, idep_mesautil],
include_directories : inc_common,
- link_with : [libmesa_util],
),
suite : ['util'],
)
'vma_random_test',
'vma_random_test.cpp',
include_directories : [inc_include, inc_util],
- link_with : [libmesa_util],
+ dependencies : idep_mesautil,
),
suite : ['util'],
)
vklayer_files, overlay_spv,
c_args : [c_vis_args, no_override_init_args, vulkan_wsi_args],
cpp_args : [cpp_vis_args, vulkan_wsi_args],
- dependencies : [idep_vulkan_util, vulkan_wsi_deps, libimgui_core_dep, dep_dl],
+ dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, libimgui_core_dep, dep_dl],
include_directories : inc_common,
link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),
- link_with : libmesa_util,
install : true
)