mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-27 09:31:03 +00:00
meson: Add wrap for libelf on Windows
Uses release from Lag Free Games GitHub, which applies Windows build fixes to FreeBSD libelf. The amd_common library uses libelf. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10202>
This commit is contained in:
parent
c93bd731f8
commit
e9254699a7
@ -1686,7 +1686,11 @@ 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 = cc.find_library('elf')
|
||||
endif
|
||||
|
6
subprojects/libelf.wrap
Normal file
6
subprojects/libelf.wrap
Normal file
@ -0,0 +1,6 @@
|
||||
[wrap-git]
|
||||
directory = libelf-lfg-win32-1.0.0-freebsd-12.1.0
|
||||
|
||||
url = https://github.com/LagFreeGames/libelf-lfg-win32.git
|
||||
revision = 1.0.0
|
||||
depth = 1
|
Loading…
Reference in New Issue
Block a user