From 3a66b5fd01f23ea24c1c540267fdd86a68a958a8 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 17 Aug 2022 00:15:25 +0200 Subject: [PATCH] Remove deprecated meson.source_root() This method is deprecated since Meson 0.56.0: We could replace it with meson.project_source_root(), but this would make Meson 0.56 or above mandatory. Since the path in always computed from the server/ directory, just add '..' to reference the root project directory. Refs c456e3826470753bdaefcffc93e9ae1bf25b12f7 --- server/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/meson.build b/server/meson.build index 984daf3b..42b97981 100644 --- a/server/meson.build +++ b/server/meson.build @@ -13,8 +13,8 @@ if prebuilt_server == '' install_dir: 'share/scrcpy') else if not prebuilt_server.startswith('/') - # relative path needs some trick - prebuilt_server = meson.source_root() + '/' + prebuilt_server + # prebuilt server path is relative to the root scrcpy directory + prebuilt_server = '../' + prebuilt_server endif custom_target('scrcpy-server-prebuilt', input: prebuilt_server,