diff options
author | David Robillard <d@drobilla.net> | 2023-01-14 21:34:23 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-14 21:34:23 -0500 |
commit | f33d936ce99f9c175ed1171e93b0217258537bb1 (patch) | |
tree | 4885251b1614800b11592b60bbcf5032f84b8149 /meson.build | |
parent | 819fba38eb5fb2f9671471f7b967d696688a1807 (diff) | |
download | ingen-f33d936ce99f9c175ed1171e93b0217258537bb1.tar.gz ingen-f33d936ce99f9c175ed1171e93b0217258537bb1.tar.bz2 ingen-f33d936ce99f9c175ed1171e93b0217258537bb1.zip |
Fix and simplify library naming on Windows
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 7a1ca3a2..c6572e32 100644 --- a/meson.build +++ b/meson.build @@ -58,6 +58,16 @@ endif ingen_data_dir = get_option('prefix') / get_option('datadir') / 'ingen' # / versioned_name ingen_module_dir = get_option('prefix') / get_option('libdir') # / versioned_name +# Use versioned name everywhere to support parallel major version installations +if host_machine.system() == 'windows' + if get_option('default_library') == 'both' + error('default_library=both is not supported on Windows') + endif + soversion = '' +else + soversion = meson.project_version().split('.')[0] +endif + platform_defines = [ '-DINGEN_DATA_DIR="@0@"'.format(ingen_data_dir), '-DINGEN_MODULE_DIR="@0@"'.format(ingen_module_dir), @@ -153,7 +163,6 @@ platform_defines += '-DHAVE_JACK_PORT_RENAME=@0@'.format( ############# # Set appropriate arguments for building against the library type -subdir('meson/library') if get_option('default_library') == 'static' add_project_arguments(['-DINGEN_STATIC'], language: ['cpp']) endif |