Commit 189b6c66 authored by Christian Hergert's avatar Christian Hergert
Browse files

flatpak: propagate builddir:(true|false) to config

If the builddir attribute is set, we need to propagate it to the
build configuration so the build system can potentially override
the build directory that will be used.
parent 5d22feea
......@@ -419,6 +419,7 @@ gbp_flatpak_configuration_load_from_file (GbpFlatpakConfiguration *self,
const gchar *primary_module_name;
JsonObject *primary_module_object;
g_autofree gchar *config_opts = NULL;
IdeBuildLocality locality = IDE_BUILD_LOCALITY_IN_TREE;
primary_module_object = json_node_get_object (primary_module_node);
primary_module_name = json_object_get_string_member (primary_module_object, "name");
......@@ -427,6 +428,15 @@ gbp_flatpak_configuration_load_from_file (GbpFlatpakConfiguration *self,
config_opts = get_argv_from_member (primary_module_object, "config-opts");
ide_configuration_set_config_opts (IDE_CONFIGURATION (self), config_opts);
if (json_object_has_member (primary_module_object, "builddir"))
gboolean builddir = json_object_get_boolean_member (primary_module_object, "builddir");
/* Flatpak does in-tree builds by default unless "builddir": true */
ide_configuration_set_locality (IDE_CONFIGURATION (self), locality);
if (json_object_has_member (primary_module_object, "build-commands"))
JsonArray *build_commands_array;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment