[gnote/meson] Build exporttogtg using meson
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Build exporttogtg using meson
- Date: Mon, 29 Mar 2021 20:40:52 +0000 (UTC)
commit bad8583e653ccda31fcfa16e01ce1bf9eeb8a387
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon Mar 29 23:07:59 2021 +0300
Build exporttogtg using meson
src/addins/exporttogtg/exporttogtg.desktop.in.in | 4 ++--
src/addins/exporttogtg/meson.build | 28 ++++++++++++++++++++++++
src/addins/meson.build | 1 +
3 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/exporttogtg/exporttogtg.desktop.in.in
b/src/addins/exporttogtg/exporttogtg.desktop.in.in
index f2dcd5e8..d4e9e46b 100644
--- a/src/addins/exporttogtg/exporttogtg.desktop.in.in
+++ b/src/addins/exporttogtg/exporttogtg.desktop.in.in
@@ -7,8 +7,8 @@ Category=Tools
Version=0.3
DefaultEnabled=false
Module=libexporttogtg
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
[Actions]
actions_void=exporttogtg-export
non_modifying_actions=exporttogtg-export
diff --git a/src/addins/exporttogtg/meson.build b/src/addins/exporttogtg/meson.build
new file mode 100644
index 00000000..2e0d1fb3
--- /dev/null
+++ b/src/addins/exporttogtg/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'exporttogtg.desktop'
+
+configured_desktop_file = configure_file(
+ input: desktop_file + '.in.in',
+ output: desktop_file + '.in',
+ configuration: addin_conf,
+)
+
+i18n.merge_file(
+ desktop_file,
+ type: 'desktop',
+ input: configured_desktop_file,
+ output: desktop_file,
+ po_dir: '../../../po',
+ install: true,
+ install_dir: addins_install_dir,
+)
+
+shared_library(
+ 'exporttogtg',
+ 'exporttogtgnoteaddin.cpp',
+ dependencies: dependencies,
+ include_directories: [root_include_dir, src_include_dir],
+ link_with: libgnote_shared_lib,
+ install: true,
+ install_dir: addins_install_dir,
+)
+
diff --git a/src/addins/meson.build b/src/addins/meson.build
index d17df2d4..1178e741 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -6,4 +6,5 @@ addin_conf.set('libgnote_version_info', libgnote_version_info)
subdir('backlinks')
subdir('bugzilla')
+subdir('exporttogtg')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]