From b00f5dd58eb36cc87109ca3529ad52a789a8db03 Mon Sep 17 00:00:00 2001 From: Myaamori Date: Fri, 9 Apr 2021 21:51:14 +0100 Subject: [PATCH] meson: add option to specify wxWidgets version --- meson.build | 2 +- meson_options.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 470eb81d4..17ca77b56 100644 --- a/meson.build +++ b/meson.build @@ -111,7 +111,7 @@ endif deps += dependency('zlib') -wx_minver = '>=3.0.0' +wx_minver = '>=' + get_option('wx_version') if host_machine.system() == 'darwin' wx_minver = '>=3.1.0' endif diff --git a/meson_options.txt b/meson_options.txt index 5212635fb..3bc0461cd 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -16,6 +16,8 @@ option('csri', type: 'feature', description: 'CSRI support') option('system_luajit', type: 'boolean', value: false, description: 'Force using system luajit') option('local_boost', type: 'boolean', value: false, description: 'Force using locally compiled Boost') +option('wx_version', type: 'string', value: '3.0.0', description: 'The minimum wxWidgets version to use') + option('credit', type: 'string', value: '', description: 'Build credit shown in program title') option('enable_update_checker', type: 'boolean', value: false, description: 'Enable the update checker')