Skip to content

Commit

Permalink
meson: remove depracation warnings in newer Meson versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tfuxu committed Nov 11, 2022
1 parent 07ecf60 commit e7975d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
install:
sudo meson builddir --prefix=/usr/local --wipe
sudo meson setup builddir --prefix=/usr/local --wipe
sudo ninja -C builddir install

global:
sudo meson builddir --prefix=/usr --wipe
sudo meson setup builddir --prefix=/usr --wipe
sudo ninja -C builddir install

release:
sudo meson builddir --prefix=/usr --Dbuildtype=release --wipe
sudo meson setup builddir --prefix=/usr --Dbuildtype=release --wipe
sudo ninja -C builddir install

user:
meson builddir --prefix="$(shell pwd)/builddir" --buildtype=debug --wipe
meson setup builddir --prefix="$(shell pwd)/builddir" --buildtype=debug --wipe
ninja -C builddir install
ninja -C builddir run
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PROJECT_RDNN_NAME = 'com.github.GradienceTeam.Gradience'

# Set APPLICATION_ID and VERSION_SUFFIX
if get_option('buildtype') == 'debug'
VCS_TAG = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
VCS_TAG = run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip()
if VCS_TAG == ''
VERSION_SUFFIX = '-devel'
else
Expand Down

0 comments on commit e7975d7

Please sign in to comment.