summarylogtreecommitdiffstats
path: root/0001_add_option_to_use_system_yaml_cpp.patch
blob: db2ec11619ce318481b1362dfed33246dd0f5008 (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
--- ashuffle-3.13.0/meson.build.orig	2021-12-24 03:14:57.007444254 +0100
+++ ashuffle-3.13.0/meson.build	2021-12-24 03:18:28.724398808 +0100
@@ -80,9 +80,14 @@
   endforeach
 endif
 
-yaml_cpp = cmake.subproject('yaml-cpp', cmake_options: cmake_common_args + [
-  '-DYAML_BUILD_SHARED_LIBS=OFF',
-])
+if not get_option('unsupported_use_system_yaml_cpp')
+  yaml_sub = cmake.subproject('yaml-cpp', cmake_options: cmake_common_args + [
+    '-DYAML_BUILD_SHARED_LIBS=OFF',
+  ])
+  yaml_cpp = yaml_sub.dependency('yaml-cpp')
+else
+  yaml_cpp = dependency('yaml-cpp')
+endif
 
 libmpdclient = dependency('libmpdclient')
 
@@ -118,7 +123,7 @@
   sources,
   include_directories: src_inc,
   dependencies: absl_deps + [
-    yaml_cpp.dependency('yaml-cpp'),
+    yaml_cpp,
   ],
 )
 
--- ashuffle-3.13.0/meson_options.txt.orig	2021-12-24 03:18:53.958163738 +0100
+++ ashuffle-3.13.0/meson_options.txt	2021-12-24 03:19:21.361965784 +0100
@@ -1,3 +1,4 @@
 option('tests', type : 'feature', value : 'disabled')
 option('unsupported_use_system_absl', type : 'boolean', value : 'false')
 option('unsupported_use_system_gtest', type : 'boolean', value : 'false')
+option('unsupported_use_system_yaml_cpp', type : 'boolean', value : 'false')