File: 02_meson-deprecations.patch

package info (click to toggle)
glib-d 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 456 kB
  • sloc: makefile: 5
file content (33 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
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
From de46c1224115d824f34b49823b60b3a0b13ae84b Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <matthias@tenstral.net>
Date: Fri, 2 Sep 2022 18:58:16 +0200
Subject: [PATCH] meson: Fix a few deprecation warnings

---
 meson.build | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meson.build b/meson.build
index 8d494a5..5203e88 100644
--- a/meson.build
+++ b/meson.build
@@ -1,14 +1,16 @@
 project('GlibD', 'd',
+    meson_version : '>=0.56',
+
     license: 'LGPL-3.0',
-    version: '2.2.0'
+    version: '2.4.0'
 )
 
 project_soversion = 0
 
 pkg_conf = import('pkgconfig')
 
-source_root = meson.current_source_dir()
-build_root = meson.current_build_dir()
+source_root = meson.project_source_root()
+build_root = meson.project_build_root()
 gen_dir = 'generated'
 
 #