meson: default to create default binary symlinks only in stable versions

This commit is contained in:
Michael Natterer 2023-05-23 10:34:47 +02:00
parent 514042d57d
commit 37dfa24def
2 changed files with 9 additions and 2 deletions

View File

@ -1289,7 +1289,14 @@ conf.set_quoted('COLOR_PROFILE_DIRECTORY', icc_directory)
# endif
enable_default_bin = get_option('enable-default-bin')
if get_option('enable-default-bin').auto()
enable_default_bin = stable
elif get_option('enable-default-bin').enabled()
enable_default_bin = true
else
enable_default_bin = false
endif
enable_console_bin = get_option('enable-console-bin')
if enable_default_bin and meson.version().version_compare('<0.61.0')

View File

@ -2,7 +2,6 @@
option('ansi', type: 'boolean', value: false, description: 'Turn on strict ansi')
option('enable-console-bin',type: 'boolean', value: true, description: 'Build a console-only binary which does not link GTK')
option('win32-debug-console',type:'boolean', value: true, description: 'Open a console when starting the program')
option('enable-default-bin',type: 'boolean', value: true, description: 'Install unversioned symlinks pointing to versioned executables')
option('enable-multiproc', type: 'boolean', value: true, description: 'Support for multiple processors')
option('profiling', type: 'boolean', value: false, description: 'Enable profiling')
option('windows-installer', type: 'boolean', value: false, description: 'Generate files needed for the Windows installer')
@ -32,6 +31,7 @@ option('libbacktrace', type: 'boolean', value: true, description: 'Build wi
# Features
option('enable-default-bin',type: 'feature', value: 'auto', description: 'Install unversioned symlinks pointing to versioned executables')
option('aa', type: 'feature', value: 'auto', description: 'AA plugin')
option('alsa', type: 'feature', value: 'auto', description: 'Alsa support in midi input controller')
option('appdata-test', type: 'feature', value: 'auto', description: 'Validate the appdata file')