diff options
author | David Robillard <d@drobilla.net> | 2023-01-14 18:03:28 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-14 20:35:35 -0500 |
commit | ed48db0a47b5a41e9aa6ed8bb4b9c8e0bceeec4c (patch) | |
tree | 370dbe200e50d2c0f4efaa92ddf91c6e08a51ee7 /meson/library | |
parent | b9818bc8381dc34cb8b1a293e460d37645a3d3b1 (diff) | |
download | sord-ed48db0a47b5a41e9aa6ed8bb4b9c8e0bceeec4c.tar.gz sord-ed48db0a47b5a41e9aa6ed8bb4b9c8e0bceeec4c.tar.bz2 sord-ed48db0a47b5a41e9aa6ed8bb4b9c8e0bceeec4c.zip |
Fix and simplify library naming on Windows
Diffstat (limited to 'meson/library')
-rw-r--r-- | meson/library/meson.build | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/meson/library/meson.build b/meson/library/meson.build deleted file mode 100644 index 756a222..0000000 --- a/meson/library/meson.build +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2020-2022 David Robillard <d@drobilla.net> -# SPDX-License-Identifier: 0BSD OR ISC - -# General definitions for building libraries. -# -# These are essentially workarounds for Meson/Windows/MSVC. Unfortunately, -# Meson's default_library option doesn't support shared and static builds very -# well. In particular, it's often necessary to define different symbols for -# static and shared builds of libraries so that symbols can be exported. To -# work around this, default_library=both isn't supported on Windows. On other -# platforms with GCC-like compilers, we can support both because symbols can -# safely be exported in the same way (giving them default visibility) in both -# static and shared builds. - -default_library = get_option('default_library') -host_system = host_machine.system() - -# Abort on Windows with default_library=both -if host_system == 'windows' and default_library == 'both' - error('default_library=both is not supported on Windows') -endif - -# Set library_suffix to the suffix for libraries -if host_system == 'windows' and default_library == 'shared' - # Meson appends a version to the name only for DLLs, which leads to - # inconsistent library names, like `mylib-1-1`. So, provide no suffix to - # ultimately get the same name as on other platforms, like `mylib-1`. - library_suffix = '' -else - library_suffix = '-@0@'.format(meson.project_version().split('.')[0]) -endif |