summaryrefslogtreecommitdiffstats
path: root/meta-pipewire/recipes-multimedia/wireplumber/wireplumber/0001-Revert-wp-uninstalled-build-this-script-with-the-mes.patch
blob: 37b43571ddda928b0e64dd9f354169ab452e9dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From 1d39b68d88e967739d6beb3c9be7f4644b5d4077 Mon Sep 17 00:00:00 2001
From: Ashok Sidipotu <ashok.sidipotu@collabora.com>
Date: Thu, 2 Dec 2021 16:23:09 +0530
Subject: [PATCH] Revert "wp-uninstalled: build this script with the meson dirs
 filled in"

This reverts commit 52aaf96179584292f493c4b329bc2c409e6d3dee.
---
 meson.build       | 18 ------------------
 wp-uninstalled.sh | 11 ++---------
 2 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/meson.build b/meson.build
index 1affbc1..f2ca16c 100644
--- a/meson.build
+++ b/meson.build
@@ -120,21 +120,3 @@ subdir('src')
 if get_option('tests')
   subdir('tests')
 endif
-
-conf_uninstalled = configuration_data()
-conf_uninstalled.set('MESON', '')
-conf_uninstalled.set('MESON_SOURCE_ROOT', meson.project_source_root())
-conf_uninstalled.set('MESON_BUILD_ROOT', meson.project_build_root())
-
-wp_uninstalled = configure_file(
-  input : 'wp-uninstalled.sh',
-  output : 'wp-uninstalled.sh.in',
-  configuration : conf_uninstalled,
-)
-
-wireplumber_uninstalled = custom_target('wp-uninstalled',
-  output : 'wp-uninstalled.sh',
-  input : wp_uninstalled,
-  build_by_default : true,
-  command : ['cp', '@INPUT@', '@OUTPUT@'],
-)
diff --git a/wp-uninstalled.sh b/wp-uninstalled.sh
index 79e53f2..d6279ff 100755
--- a/wp-uninstalled.sh
+++ b/wp-uninstalled.sh
@@ -2,15 +2,8 @@
 
 set -e
 
-# This is unset by meson
-# shellcheck disable=SC2157
-if [ -z "@MESON@" ]; then
-  SOURCEDIR="@MESON_SOURCE_ROOT@"
-  BUILDDIR="@MESON_BUILD_ROOT@"
-else
-  SOURCEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
-  BUILDDIR=$(find "${SOURCEDIR}" -maxdepth 2 -name build.ninja -printf "%h\n" -quit 2>/dev/null || echo "${SOURCEDIR}/build")
-fi
+SOURCEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+BUILDDIR=${SOURCEDIR}/build
 CONFIGDIR=config
 
 while getopts ":b:c:" opt; do
-- 
2.33.1