1From 9b88f816ffbe3dd35d0260974e246f6694983500 Mon Sep 17 00:00:00 2001 2From: Markus Volk <f_l_k@t-online.de> 3Date: Mon, 18 Mar 2024 05:50:21 +0100 4Subject: [PATCH] Add meson option to pass sysroot 5 6Signed-off-by: Markus Volk <f_l_k@t-online.de> 7 8Upstream-Status: Inappropriate [OE specific] 9--- 10 meson_options.txt | 1 + 11 panels/background/meson.build | 2 +- 12 panels/system/meson.build | 2 +- 13 3 files changed, 3 insertions(+), 2 deletions(-) 14 15diff --git a/meson_options.txt b/meson_options.txt 16index b2302bf..5b9baf5 100644 17--- a/meson_options.txt 18+++ b/meson_options.txt 19@@ -1,3 +1,4 @@ 20+option('oe_sysroot', type: 'string', value: '', description: 'Directory for OE-sysroot') 21 option('deprecated-declarations', type: 'feature', value: 'disabled', description: 'build with deprecated declaration warnings') 22 option('documentation', type: 'boolean', value: false, description: 'build documentation') 23 option('location-services', type: 'feature', value: 'enabled', description: 'build with location services') 24diff --git a/panels/background/meson.build b/panels/background/meson.build 25index 6ced050..df1f808 100644 26--- a/panels/background/meson.build 27+++ b/panels/background/meson.build 28@@ -24,7 +24,7 @@ common_sources += gnome.mkenums_simple( 29 30 enums = 'gdesktop-enums-types' 31 enums_header = files( 32- gsettings_desktop_dep.get_variable(pkgconfig: 'prefix') + '/include/gsettings-desktop-schemas/gdesktop-enums.h' 33+ get_option('oe_sysroot') + gsettings_desktop_dep.get_variable(pkgconfig: 'prefix') + '/include/gsettings-desktop-schemas/gdesktop-enums.h' 34 ) 35 36 common_sources += gnome.mkenums( 37diff --git a/panels/system/meson.build b/panels/system/meson.build 38index 4fee822..979332a 100644 39--- a/panels/system/meson.build 40+++ b/panels/system/meson.build 41@@ -73,7 +73,7 @@ sources += gnome.compile_resources( 42 ) 43 44 enums_header = files( 45- gsettings_desktop_dep.get_variable(pkgconfig: 'prefix') + '/include/gsettings-desktop-schemas/gdesktop-enums.h', 46+ get_option('oe_sysroot') + gsettings_desktop_dep.get_variable(pkgconfig: 'prefix') + '/include/gsettings-desktop-schemas/gdesktop-enums.h', 47 'datetime/cc-datetime-page.h' 48 ) 49 50