[gnome-shell/gnome-41] build: Use multi-line string for embedded code
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-41] build: Use multi-line string for embedded code
- Date: Thu, 11 Aug 2022 13:03:55 +0000 (UTC)
commit 725d5c0960580e4387ede1707c2dea714b60e55a
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jun 28 18:59:05 2022 +0200
build: Use multi-line string for embedded code
Newer meson versions complain about newline characters in regular
strings, so switch to a proper multi-line string.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2350>
(cherry picked from commit 0f61af6b8585bdc412414a291e2efde8a9b312c2)
meson.build | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 808c1e0162..2beb12abca 100644
--- a/meson.build
+++ b/meson.build
@@ -171,9 +171,11 @@ cdata.set('HAVE_FDWALK',
)
polkit_has_autocleanup = cc.compiles(
- '#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
+'''
+ #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
#include <polkitagent/polkitagent.h>
- void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }',
+ void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }
+''',
dependencies: polkit_dep)
cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]