Skip to content

Commit

Permalink
Bump minimum wxWidgets version to 3.2.2
Browse files Browse the repository at this point in the history
This is what Debian stable currently ships. Bumping to 3.2.2 in
particular brings a lot of improvements for high DPI support, which will
be necessary for upcoming commits.
  • Loading branch information
arch1t3cht committed Feb 2, 2025
1 parent 190f0b3 commit 820eb25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ endif

deps += dependency('zlib')

wx_minver = '>=' + get_option('wx_version')
if host_machine.system() == 'darwin'
wx_minver = '>=3.1.0'
endif
wx_dep = dependency('wxWidgets', version: wx_minver,
wx_dep = dependency('wxWidgets', version: '>=' + get_option('wx_version'),
required: false,
modules: ['std', 'stc', 'gl'])

Expand All @@ -148,10 +144,10 @@ else
endif

opt_var = cmake.subproject_options()
opt_var.set_override_option('cpp_std', 'c++14')
opt_var.set_override_option('cpp_std', 'c++20')
opt_var.add_cmake_defines({
'wxBUILD_INSTALL': false,
'wxBUILD_PRECOMP': false, # otherwise breaks project generation w/ meson
'wxBUILD_PRECOMP': 'OFF', # otherwise breaks project generation w/ meson
'wxBUILD_SHARED': build_shared,

'wxUSE_WEBVIEW': false, # breaks build on linux
Expand Down Expand Up @@ -263,7 +259,7 @@ if host_machine.system() == 'windows' and cc.has_header('dwrite_3.h')
endif

if host_machine.system() == 'darwin'
frameworks_dep = dependency('appleframeworks', modules : ['CoreText', 'CoreFoundation', 'AppKit', 'Carbon', 'IOKit'])
frameworks_dep = dependency('appleframeworks', modules : ['CoreText', 'CoreFoundation', 'AppKit', 'Carbon', 'IOKit', 'QuartzCore'])
deps += frameworks_dep
endif

Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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('wx_version', type: 'string', value: '3.2.2', description: 'The minimum wxWidgets version to use')

option('credit', type: 'string', value: '', description: 'Build credit shown in program title')
option('official_release', type: 'boolean', value: false, description: 'Set on official builds')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/wxWidgets.wrap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[wrap-git]
directory = wxWidgets
url = https://github.com/wxWidgets/wxWidgets.git
revision = v3.1.4
revision = v3.2.2
clone-recursive = true

0 comments on commit 820eb25

Please sign in to comment.