meson/megadriver: support various lib suffixes

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32333>
(cherry picked from commit ffd02b8ad8)

Conflicts:
	bin/install_megadrivers.py
This commit is contained in:
Eric Engestrom
2024-11-25 18:16:11 +01:00
committed by Dylan Baker
parent 6865204891
commit 95dd4c1992
8 changed files with 19 additions and 8 deletions

View File

@@ -20,6 +20,11 @@ project(
if host_machine.system() == 'darwin'
add_languages('objc', native : false)
add_project_arguments('-fobjc-arc', language : 'objc')
libname_suffix = 'dylib'
elif host_machine.system() == 'windows'
libname_suffix = 'dll'
else
libname_suffix = 'so'
endif
cc = meson.get_compiler('c')