diff options
author | David Robillard <d@drobilla.net> | 2023-01-14 11:59:35 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-14 14:11:54 -0500 |
commit | 3e9009a09513bbdaf542890d37d98179f268b9eb (patch) | |
tree | 6aab6471b8767d3b012c27ef98d5c13cf5c47102 | |
parent | 77ef9a73fcc7a4db07a5472d20b56232a8c818d8 (diff) | |
download | pugl-3e9009a09513bbdaf542890d37d98179f268b9eb.tar.gz pugl-3e9009a09513bbdaf542890d37d98179f268b9eb.tar.bz2 pugl-3e9009a09513bbdaf542890d37d98179f268b9eb.zip |
Fix library naming on Windows
-rw-r--r-- | meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build index fd3406c..006939d 100644 --- a/meson.build +++ b/meson.build @@ -67,6 +67,7 @@ if host_machine.system() == 'darwin' platform_sources = files('src/mac.m') core_deps = [framework_deps] extension = '.m' + soversion = meson.project_version().split('.')[0] platform_suppressions = [ '-DGL_SILENCE_DEPRECATION', @@ -156,6 +157,7 @@ elif host_machine.system() == 'windows' platform_sources = files('src/win.c') core_deps = [user32_dep, shlwapi_dep, dwmapi_dep] extension = '.c' + soversion = '' else # X11 x11_dep = cc.find_library('X11') @@ -194,6 +196,7 @@ else # X11 platform_sources = files('src/x11.c') core_deps = [x11_dep, xcursor_dep, xrandr_dep, xext_dep] extension = '.c' + soversion = meson.project_version().split('.')[0] endif ################ @@ -226,6 +229,7 @@ libpugl = build_target( gnu_symbol_visibility: 'hidden', include_directories: includes, install: true, + soversion: soversion, target_type: library_type, version: meson.project_version(), ) @@ -264,6 +268,7 @@ if get_option('stub') gnu_symbol_visibility: 'hidden', include_directories: includes, install: true, + soversion: soversion, target_type: library_type, version: meson.project_version(), ) @@ -305,6 +310,7 @@ if opengl_dep.found() gnu_symbol_visibility: 'hidden', include_directories: includes, install: true, + soversion: soversion, target_type: library_type, version: meson.project_version(), ) @@ -358,6 +364,7 @@ if cairo_dep.found() include_directories: includes, install: true, objc_args: library_args + cairo_args, + soversion: soversion, target_type: library_type, version: meson.project_version(), ) @@ -411,6 +418,7 @@ if vulkan_dep.found() gnu_symbol_visibility: 'hidden', include_directories: includes, install: true, + soversion: soversion, target_type: library_type, version: meson.project_version(), ) |