Skip to content

Commit

Permalink
Fix meson deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
llyyr authored and ammen99 committed Jan 2, 2023
1 parent 1cd0cba commit bb3ed36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(
'cpp',
version: '0.3.0',
license: 'MIT',
meson_version: '>=0.47.0',
meson_version: '>=0.54.0',
default_options: [
'cpp_std=c++11',
'c_std=c11',
Expand All @@ -24,8 +24,8 @@ conf_data.set('fallback_audio_sample_fmt', get_option('fallback_audio_sample_fmt
version = '"@0@"'.format(meson.project_version())
git = find_program('git', native: true, required: false)
if git.found()
git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'])
git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'])
git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check: true)
git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: true)
if git_commit.returncode() == 0 and git_branch.returncode() == 0
version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format(
meson.project_version(),
Expand Down
2 changes: 1 addition & 1 deletion proto/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')
wl_protocol_dir = wayland_protos.get_variable(pkgconfig: 'pkgdatadir', internal: 'pkgdatadir')
wayland_scanner = find_program('wayland-scanner')

wayland_scanner_code = generator(
Expand Down

0 comments on commit bb3ed36

Please sign in to comment.