From 434af658162b91f795e8a869e5c3c97772600ce4 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 27 Jun 2022 12:15:37 +0200 Subject: [PATCH] Replace hardcoded 'share/' by datadir variable Meson defines a variable for the data directory. PR #3351 --- app/meson.build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/meson.build b/app/meson.build index f5d76c61dd..64459bfd29 100644 --- a/app/meson.build +++ b/app/meson.build @@ -223,14 +223,17 @@ executable('scrcpy', src, install: true, c_args: []) +# +datadir = get_option('datadir') # by default 'share' + install_man('scrcpy.1') install_data('data/icon.png', rename: 'scrcpy.png', - install_dir: 'share/icons/hicolor/256x256/apps') + install_dir: join_paths(datadir, 'icons/hicolor/256x256/apps')) install_data('data/zsh-completion/_scrcpy', - install_dir: 'share/zsh/site-functions') + install_dir: join_paths(datadir, 'zsh/site-functions')) install_data('data/bash-completion/scrcpy', - install_dir: 'share/bash-completion/completions') + install_dir: join_paths(datadir, 'bash-completion/completions')) ### TESTS