meson: use the same workaround for setting 'lib' on windows

Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20752>
This commit is contained in:
Dylan Baker 2023-01-17 10:11:13 -08:00 committed by Marge Bot
parent 7aca37fc28
commit bab3e2fbd9
4 changed files with 4 additions and 4 deletions

View File

@ -208,7 +208,7 @@ libegl = shared_library(
install : true, install : true,
version : egl_lib_version, version : egl_lib_version,
soversion : egl_lib_soversion, soversion : egl_lib_soversion,
name_prefix : 'lib', # even on windows name_prefix : host_machine.system() == 'windows' ? 'lib' : [], # always use lib, but avoid warnings on !windows
vs_module_defs : egl_def vs_module_defs : egl_def
) )

View File

@ -58,7 +58,7 @@ libglesv1_cm = shared_library(
soversion : host_machine.system() == 'windows' ? '' : '1', soversion : host_machine.system() == 'windows' ? '' : '1',
version : '1.1.0', version : '1.1.0',
darwin_versions : '3.0.0', darwin_versions : '3.0.0',
name_prefix : 'lib', name_prefix : host_machine.system() == 'windows' ? 'lib' : [], # always use lib, but avoid warnings on !windows
install : true, install : true,
) )

View File

@ -58,7 +58,7 @@ libgles2 = shared_library(
soversion : host_machine.system() == 'windows' ? '' : '2', soversion : host_machine.system() == 'windows' ? '' : '2',
version : '2.0.0', version : '2.0.0',
darwin_versions : '3.0.0', darwin_versions : '3.0.0',
name_prefix : 'lib', name_prefix : host_machine.system() == 'windows' ? 'lib' : [], # always use lib, but avoid warnings on !windows
install : true, install : true,
) )

View File

@ -57,7 +57,7 @@ libglapi = shared_library(
dependencies : [dep_thread, dep_selinux, idep_mesautil], dependencies : [dep_thread, dep_selinux, idep_mesautil],
soversion : host_machine.system() == 'windows' ? '' : '0', soversion : host_machine.system() == 'windows' ? '' : '0',
version : '0.0.0', version : '0.0.0',
name_prefix : 'lib', name_prefix : host_machine.system() == 'windows' ? 'lib' : [], # always use lib, but avoid warnings on !windows
install : true, install : true,
) )
libglapi_build_dir = meson.current_build_dir() libglapi_build_dir = meson.current_build_dir()