Replace meson join_paths() by '/'
A new '/' operator was introduced in Meson 0.49 to replace join_paths(): - <https://mesonbuild.com/Reference-manual_functions.html#join_paths> - <https://mesonbuild.com/Syntax.html#string-path-building> Refs #5658 <https://github.com/Genymobile/scrcpy/pull/5658>
This commit is contained in:
parent
f751274b17
commit
17e205e54f
@ -192,19 +192,19 @@ datadir = get_option('datadir') # by default 'share'
|
|||||||
install_man('scrcpy.1')
|
install_man('scrcpy.1')
|
||||||
install_data('data/icon.png',
|
install_data('data/icon.png',
|
||||||
rename: 'scrcpy.png',
|
rename: 'scrcpy.png',
|
||||||
install_dir: join_paths(datadir, 'icons/hicolor/256x256/apps'))
|
install_dir: datadir / 'icons/hicolor/256x256/apps')
|
||||||
install_data('data/zsh-completion/_scrcpy',
|
install_data('data/zsh-completion/_scrcpy',
|
||||||
install_dir: join_paths(datadir, 'zsh/site-functions'))
|
install_dir: datadir / 'zsh/site-functions')
|
||||||
install_data('data/bash-completion/scrcpy',
|
install_data('data/bash-completion/scrcpy',
|
||||||
install_dir: join_paths(datadir, 'bash-completion/completions'))
|
install_dir: datadir / 'bash-completion/completions')
|
||||||
|
|
||||||
# Desktop entry file for application launchers
|
# Desktop entry file for application launchers
|
||||||
if host_machine.system() == 'linux'
|
if host_machine.system() == 'linux'
|
||||||
# Install a launcher (ex: /usr/local/share/applications/scrcpy.desktop)
|
# Install a launcher (ex: /usr/local/share/applications/scrcpy.desktop)
|
||||||
install_data('data/scrcpy.desktop',
|
install_data('data/scrcpy.desktop',
|
||||||
install_dir: join_paths(datadir, 'applications'))
|
install_dir: datadir / 'applications')
|
||||||
install_data('data/scrcpy-console.desktop',
|
install_data('data/scrcpy-console.desktop',
|
||||||
install_dir: join_paths(datadir, 'applications'))
|
install_dir: datadir / 'applications')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
project('scrcpy', 'c',
|
project('scrcpy', 'c',
|
||||||
version: '3.1',
|
version: '3.1',
|
||||||
meson_version: '>= 0.48',
|
meson_version: '>= 0.49',
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'warning_level=2',
|
'warning_level=2',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user