[Mesa-dev] [PATCH v2 49/49] meson: maintain names of shared API libraries
Dylan Baker
dylan at pnwbakers.com
Tue Jul 10 23:18:17 UTC 2018
Mesa uses the lib prefix, and doesn't use a version for it's dynamic
libraries, which meson defaults to.
v2: - this patch
---
src/mapi/es1api/meson.build | 2 ++
src/mapi/es2api/meson.build | 2 ++
src/mapi/shared-glapi/meson.build | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/mapi/es1api/meson.build b/src/mapi/es1api/meson.build
index 448cf1c73d2..4e4f35df969 100644
--- a/src/mapi/es1api/meson.build
+++ b/src/mapi/es1api/meson.build
@@ -46,7 +46,9 @@ libglesv1_cm = shared_library(
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
dependencies : [dep_thread, dep_libdrm, dep_m, dep_dl],
+ soversion : host_machine.system() == 'windows' ? '' : '1',
version : '1.0.0',
+ name_prefix : 'lib',
install : true,
)
diff --git a/src/mapi/es2api/meson.build b/src/mapi/es2api/meson.build
index cb6a70a2e90..a8d032672e2 100644
--- a/src/mapi/es2api/meson.build
+++ b/src/mapi/es2api/meson.build
@@ -46,7 +46,9 @@ libgles2 = shared_library(
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
dependencies : [dep_thread, dep_libdrm, dep_m, dep_dl],
+ soversion : host_machine.system() == 'windows' ? '' : '2',
version : '2.0.0',
+ name_prefix : 'lib',
install : true,
)
diff --git a/src/mapi/shared-glapi/meson.build b/src/mapi/shared-glapi/meson.build
index e1f68691b48..05459a5116e 100644
--- a/src/mapi/shared-glapi/meson.build
+++ b/src/mapi/shared-glapi/meson.build
@@ -53,7 +53,9 @@ libglapi = shared_library(
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
dependencies : [dep_thread, dep_selinux],
+ soversion : host_machine.system() == 'windows' ? '' : '0',
version : '0.0.0',
+ name_prefix : 'lib',
install : true,
)
--
2.18.0
More information about the mesa-dev
mailing list