[gnome-builder] build: add metadata back for Ide gir
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: add metadata back for Ide gir
- Date: Thu, 10 Jan 2019 04:46:44 +0000 (UTC)
commit 7a3b6dd5f6266a1a9527b4015101b258bbd71a2c
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 9 20:43:04 2019 -0800
build: add metadata back for Ide gir
src/Ide.metadata.in | 2 ++
src/meson.build | 31 ++++++++++++++++++++-----------
2 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/src/Ide.metadata.in b/src/Ide.metadata.in
new file mode 100644
index 000000000..f056f125d
--- /dev/null
+++ b/src/Ide.metadata.in
@@ -0,0 +1,2 @@
+*.ref unowned
+Task.new.callback type="GLib.TaskReadyCallback" scope="async"
diff --git a/src/meson.build b/src/meson.build
index 2f2f758b7..597595467 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -108,18 +108,27 @@ configure_file(
install_dir: pkgvapidir,
)
+configure_file(
+ input: 'Ide.metadata.in',
+ output: 'Ide-@0@.@1@.metadata'.format(MAJOR_VERSION, MINOR_VERSION),
+ copy: true,
+ install: true,
+ install_dir: plugindir,
+)
+
libide_vapi = gnome.generate_vapi('libide-' + libide_api_version,
- sources: libide_gir[0],
- install: true,
- install_dir: pkgvapidir,
- packages: [ 'gio-2.0',
- 'gtk+-3.0',
- 'gtksourceview-4',
- 'json-glib-1.0',
- 'libdazzle-1.0',
- 'libpeas-1.0',
- 'template-glib-1.0',
- 'vte-2.91' ],
+ sources: libide_gir[0],
+ install: true,
+ install_dir: pkgvapidir,
+ metadata_dirs: [meson.current_build_dir()],
+ packages: [ 'gio-2.0',
+ 'gtk+-3.0',
+ 'gtksourceview-4',
+ 'json-glib-1.0',
+ 'libdazzle-1.0',
+ 'libpeas-1.0',
+ 'template-glib-1.0',
+ 'vte-2.91' ],
)
# Must be after vapi generation
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]