summaryrefslogtreecommitdiffstats
path: root/meta-pipewire/recipes-multimedia/pipewire/pipewire/0005-Revert-treewide-meson.build-get-SPA_PLUGIN_DIR-from-.patch
blob: f2a9d0d095a1a64654191db03a6223537b00fd23 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
From cf7b3a0db10cf0bcd140800ef547199703fdf16e Mon Sep 17 00:00:00 2001
From: Ashok Sidipotu <ashok.sidipotu@collabora.com>
Date: Thu, 24 Feb 2022 11:54:54 +0530
Subject: [PATCH 05/12] Revert "treewide: meson.build: get SPA_PLUGIN_DIR from
 dependency"

This reverts commit 26eb66fb5b56bb5534745a8e223bd099cf5fe4fa.
Upstream-Status: Inappropriate[meson version dependent]
---
 meson.build                          |  4 ++--
 spa/plugins/audioconvert/meson.build |  4 ++--
 spa/tests/meson.build                |  2 +-
 src/modules/meson.build              | 13 +++----------
 src/tests/meson.build                |  6 +++---
 5 files changed, 11 insertions(+), 18 deletions(-)

diff --git a/meson.build b/meson.build
index 7040e39ac..1b87bd004 100644
--- a/meson.build
+++ b/meson.build
@@ -448,8 +448,8 @@ srcdir = meson.project_source_root()
 devenv.set('PIPEWIRE_CONFIG_DIR', pipewire_dep.get_variable(internal: 'confdatadir'))
 devenv.set('PIPEWIRE_MODULE_DIR', pipewire_dep.get_variable(internal: 'moduledir'))
 
-devenv.set('SPA_PLUGIN_DIR', spa_dep.get_variable(internal: 'plugindir'))
-devenv.set('SPA_DATA_DIR', spa_dep.get_variable(internal: 'datadir'))
+  devenv.set('SPA_PLUGIN_DIR', builddir / 'spa' / 'plugins')
+  devenv.set('SPA_DATA_DIR', srcdir / 'spa' / 'plugins')
 
 devenv.set('GST_PLUGIN_PATH', builddir / 'src'/ 'gst')
 
diff --git a/spa/plugins/audioconvert/meson.build b/spa/plugins/audioconvert/meson.build
index 42332a538..3aa0f3846 100644
--- a/spa/plugins/audioconvert/meson.build
+++ b/spa/plugins/audioconvert/meson.build
@@ -140,7 +140,7 @@ foreach a : test_apps
       install : installed_tests_enabled,
       install_dir : installed_tests_execdir / 'audioconvert'),
       env : [
-        'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable(internal: 'plugindir')),
+        'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
         ])
 
     if installed_tests_enabled
@@ -170,7 +170,7 @@ foreach a : benchmark_apps
       install : installed_tests_enabled,
       install_dir : installed_tests_execdir / 'audioconvert'),
       env : [
-        'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable(internal: 'plugindir')),
+        'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
         ])
 
     if installed_tests_enabled
diff --git a/spa/tests/meson.build b/spa/tests/meson.build
index 0b26fdf02..d995cfaa4 100644
--- a/spa/tests/meson.build
+++ b/spa/tests/meson.build
@@ -42,7 +42,7 @@ foreach a : benchmark_apps
       install_dir : installed_tests_execdir,
     ),
     env : [
-      'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable(internal: 'plugindir')),
+      'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
     ]
   )
 
diff --git a/src/modules/meson.build b/src/modules/meson.build
index c1225e3e0..bd7d3f711 100644
--- a/src/modules/meson.build
+++ b/src/modules/meson.build
@@ -140,12 +140,6 @@ pipewire_module_rt = shared_library('pipewire-module-rt', [ 'module-rt.c' ],
   install_rpath: modules_install_dir,
   dependencies : [dbus_dep, mathlib, dl_lib, pipewire_dep],
 )
-<<<<<<< HEAD
-# TODO: This serves as a temporary alias to prevent breaking existing setups
-#       while `module-rtkit` is being migrated to `module-rt`
-pipewire_module_rtkit = shared_library('pipewire-module-rtkit', [ 'module-rt.c' ],
-  include_directories : [configinc],
-=======
 endif
 summary({'rt': build_module_rt}, bool_yn: true, section: 'Optional Modules')
 
@@ -153,7 +147,6 @@ build_module_rtkit = dbus_dep.found()
 if build_module_rtkit
 pipewire_module_rtkit = shared_library('pipewire-module-rtkit', [ 'module-rtkit.c' ],
   include_directories : [configinc, spa_inc],
->>>>>>> Revert "treewide: meson.build: use dependency variable for SPA"
   install : true,
   install_dir : modules_install_dir,
   install_rpath: modules_install_dir,
@@ -372,9 +365,9 @@ test('pw-test-protocol-native',
     install_dir : installed_tests_execdir,
   ),
   env : [
-    'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable(internal: 'plugindir')),
-    'PIPEWIRE_CONFIG_DIR=@0@'.format(pipewire_dep.get_variable(internal: 'confdatadir')),
-    'PIPEWIRE_MODULE_DIR=@0@'.format(pipewire_dep.get_variable(internal: 'moduledir')),
+    'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
+    'PIPEWIRE_CONFIG_DIR=@0@/src/daemon/'.format(meson.project_build_root()),
+    'PIPEWIRE_MODULE_DIR=@0@/src/modules/'.format(meson.project_build_root())
   ]
 )
 
diff --git a/src/tests/meson.build b/src/tests/meson.build
index 3e8d05012..9a595d431 100644
--- a/src/tests/meson.build
+++ b/src/tests/meson.build
@@ -13,9 +13,9 @@ foreach a : test_apps
       install : installed_tests_enabled,
       install_dir : installed_tests_execdir),
     env : [
-      'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable(internal: 'plugindir')),
-      'PIPEWIRE_CONFIG_DIR=@0@'.format(pipewire_dep.get_variable(internal: 'confdatadir')),
-      'PIPEWIRE_MODULE_DIR=@0@'.format(pipewire_dep.get_variable(internal: 'moduledir')),
+      'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
+      'PIPEWIRE_CONFIG_DIR=@0@/src/daemon/'.format(meson.project_build_root()),
+      'PIPEWIRE_MODULE_DIR=@0@/src/modules/'.format(meson.project_build_root())
       ])
 
   if installed_tests_enabled
-- 
2.35.1