Skip to content

Commit

Permalink
build: Require meson >= 0.58
Browse files Browse the repository at this point in the history
This will enable f-strings and allow us to simplify the build file.
  • Loading branch information
wismill committed Jul 16, 2024
1 parent b5d3fa9 commit f50e4ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions changes/build/+meson_bump.breaking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Raised minimal meson version requirement to 0.58.
14 changes: 4 additions & 10 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project(
'warning_level=2',
'b_lundef=true',
],
meson_version : '>= 0.52.0',
meson_version : '>= 0.58.0', # Released on May 2021
)
pkgconfig = import('pkgconfig')
cc = meson.get_compiler('c')
Expand Down Expand Up @@ -270,9 +270,7 @@ dep_libxkbcommon = declare_dependency(
link_with: libxkbcommon,
include_directories: include_directories('include'),
)
if meson.version().version_compare('>= 0.54.0')
meson.override_dependency('xkbcommon', dep_libxkbcommon)
endif
meson.override_dependency('xkbcommon', dep_libxkbcommon)
pkgconfig.generate(
libxkbcommon,
name: 'xkbcommon',
Expand Down Expand Up @@ -341,9 +339,7 @@ You can disable X11 support with -Denable-x11=false.''')
link_with: libxkbcommon_x11,
include_directories: include_directories('include'),
)
if meson.version().version_compare('>= 0.54.0')
meson.override_dependency('xkbcommon-x11', dep_libxkbcommon_x11)
endif
meson.override_dependency('xkbcommon-x11', dep_libxkbcommon_x11)
pkgconfig.generate(
libxkbcommon_x11,
name: 'xkbcommon-x11',
Expand Down Expand Up @@ -409,9 +405,7 @@ if get_option('enable-xkbregistry')
link_with: libxkbregistry,
include_directories: include_directories('include'),
)
if meson.version().version_compare('>= 0.54.0')
meson.override_dependency('xkbregistry', dep_libxkbregistry)
endif
meson.override_dependency('xkbregistry', dep_libxkbregistry)
endif

man_pages = []
Expand Down

0 comments on commit f50e4ac

Please sign in to comment.