[gnome-builder/wip/gtk4-port: 1426/1774] plugins/meson-templates: add COPYING file to project
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1426/1774] plugins/meson-templates: add COPYING file to project
- Date: Mon, 11 Jul 2022 22:31:45 +0000 (UTC)
commit c132af32d6b641bde4e86f0c93514aaac023ccff
Author: Christian Hergert <chergert redhat com>
Date: Wed Jun 8 13:55:21 2022 -0700
plugins/meson-templates: add COPYING file to project
src/plugins/meson-templates/gbp-meson-template.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/plugins/meson-templates/gbp-meson-template.c
b/src/plugins/meson-templates/gbp-meson-template.c
index 656904aac..10e6e7ed0 100644
--- a/src/plugins/meson-templates/gbp-meson-template.c
+++ b/src/plugins/meson-templates/gbp-meson-template.c
@@ -131,6 +131,7 @@ gbp_meson_template_expand_async (IdeProjectTemplate *template,
gpointer user_data)
{
GbpMesonTemplate *self = (GbpMesonTemplate *)template;
+ g_autofree char *license_path = NULL;
g_autoptr(IdeTask) task = NULL;
g_autoptr(GFile) destdir = NULL;
const char *language;
@@ -158,6 +159,14 @@ gbp_meson_template_expand_async (IdeProjectTemplate *template,
IDE_EXIT;
}
+ /* Setup our license for the project */
+ if ((license_path = ide_template_input_get_license_path (input)))
+ {
+ g_autoptr(GFile) copying = g_file_get_child (destdir, "COPYING");
+ ide_template_base_add_resource (IDE_TEMPLATE_BASE (self),
+ license_path, copying, scope, 0);
+ }
+
/* First setup some defaults for our scope */
tmpl_scope_set_boolean (scope, "is_adwaita", FALSE);
tmpl_scope_set_boolean (scope, "is_gtk4", FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]