[gnome-builder] flatpak: parse append-path from build-options
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: parse append-path from build-options
- Date: Tue, 16 Jan 2018 08:50:18 +0000 (UTC)
commit b12bdfc67514f7a7721fd514282557aacddc8849
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 15 20:52:53 2018 -0800
flatpak: parse append-path from build-options
src/plugins/flatpak/gbp-flatpak-configuration.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-configuration.c b/src/plugins/flatpak/gbp-flatpak-configuration.c
index be2c9b5f0..bb9bd76ba 100644
--- a/src/plugins/flatpak/gbp-flatpak-configuration.c
+++ b/src/plugins/flatpak/gbp-flatpak-configuration.c
@@ -297,6 +297,7 @@ gbp_flatpak_configuration_load_from_file (GbpFlatpakConfiguration *self,
{
JsonObject *build_options = NULL;
IdeEnvironment *environment;
+ JsonNode *node;
build_options = json_object_get_object_member (root_object, "build-options");
@@ -343,6 +344,14 @@ gbp_flatpak_configuration_load_from_file (GbpFlatpakConfiguration *self,
}
}
ide_configuration_set_environment (IDE_CONFIGURATION (self), environment);
+
+ if (json_object_has_member (build_options, "append-path") &&
+ NULL != (node = json_object_get_member (build_options, "append-path")) &&
+ JSON_NODE_HOLDS_VALUE (node))
+ {
+ const gchar *str = json_node_get_string (node);
+ ide_configuration_set_append_path (IDE_CONFIGURATION (self), str);
+ }
}
if (dzl_str_empty0 (prefix))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]