Commit 1a058119 authored by Prodea Alexandru-Liviu's avatar Prodea Alexandru-Liviu Committed by Eric Engestrom
Browse files

Meson: Remove lib prefix from graw and osmesa when building with Mingw.


Also remove version sufix from osmesa swrast on Windows.

v2: Make sure we don't remove lib prefix on *nix platforms.
Signed-off-by: Prodea Alexandru-Liviu's avatarProdea Alexandru-Liviu <liviuprodea@yahoo.com>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>

Cc: "19.3" <mesa-stable@lists.freedesktop.org>
parent 0b3111ed
Pipeline #77262 passed with stages
in 33 minutes and 39 seconds
......@@ -32,6 +32,7 @@ libgraw_gdi = shared_library(
dependencies : [
dep_ws2_32, idep_mesautil, driver_swrast,
],
name_prefix : host_machine.system() == 'windows' ? '' : 'lib', # otherwise mingw will create libgraw.dll
)
libgraw = libgraw_gdi
......@@ -32,6 +32,7 @@ libgraw_null = shared_library(
include_directories : inc_common,
link_with : libgallium,
dependencies : idep_mesautil,
name_prefix : host_machine.system() == 'windows' ? '' : 'lib', # otherwise mingw will create libgraw_null.dll
)
libgraw = libgraw_null
......@@ -58,6 +58,7 @@ libosmesa = shared_library(
dep_ws2_32, dep_selinux, dep_thread, dep_clock, dep_unwind,
driver_swrast, driver_swr,
],
name_prefix : host_machine.system() == 'windows' ? '' : 'lib', # otherwise mingw will create libosmesa.dll
soversion : host_machine.system() == 'windows' ? '' : '8',
version : '8.0.0',
install : true,
......
......@@ -36,6 +36,8 @@ libosmesa = shared_library(
link_whole : libglapi_static,
link_with : [libmesa_classic, osmesa_link_with],
dependencies : [dep_thread, dep_selinux],
name_prefix : host_machine.system() == 'windows' ? '' : 'lib', # otherwise mingw will create libosmesa.dll
soversion : host_machine.system() == 'windows' ? '' : '8',
version : '8.0.0',
install : true,
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment