meson,amd: Remove Windows libelf wrap

Functionality isn't worth the maintenance cost.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18797>
This commit is contained in:
James Park
2022-09-08 09:15:00 -07:00
committed by Yonggang Luo
parent 3da8d29132
commit f297f05c67
7 changed files with 37 additions and 15 deletions

View File

@@ -1903,12 +1903,8 @@ with_opencl_native = _opencl != 'disabled' and get_option('opencl-native')
if (with_amd_vk or with_gallium_radeonsi or
(with_gallium_opencl and with_opencl_native) or
(with_gallium_r600 and with_llvm))
if with_platform_windows
dep_elf = dependency('libelf', required : false, fallback : ['libelf', 'libelf_dep'])
else
dep_elf = dependency('libelf', required : false)
endif
if not dep_elf.found()
dep_elf = dependency('libelf', required : false)
if not with_platform_windows and not dep_elf.found()
dep_elf = cc.find_library('elf')
endif
else