[gnote/meson] Build print notes using meson
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Build print notes using meson
- Date: Tue, 30 Mar 2021 20:30:50 +0000 (UTC)
commit 8469c9abb18c8fd9ebf9533a7a48309ef64889e7
Author: Aurimas Černius <aurisc4 gmail com>
Date: Tue Mar 30 22:32:40 2021 +0300
Build print notes using meson
src/addins/meson.build | 1 +
src/addins/printnotes/meson.build | 28 ++++++++++++++++++++++++++
src/addins/printnotes/printnotes.desktop.in.in | 4 ++--
3 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index b26c26c6..57a4ef56 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -14,4 +14,5 @@ subdir('gvfssyncservice')
subdir('inserttimestamp')
subdir('notedirectorywatcher')
subdir('noteoftheday')
+subdir('printnotes')
diff --git a/src/addins/printnotes/meson.build b/src/addins/printnotes/meson.build
new file mode 100644
index 00000000..b4f297a8
--- /dev/null
+++ b/src/addins/printnotes/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'printnotes.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(
+ 'printnotes',
+ 'printnotesnoteaddin.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/printnotes/printnotes.desktop.in.in b/src/addins/printnotes/printnotes.desktop.in.in
index bbed4c01..4e1df9d3 100644
--- a/src/addins/printnotes/printnotes.desktop.in.in
+++ b/src/addins/printnotes/printnotes.desktop.in.in
@@ -7,8 +7,8 @@ Category=DesktopIntegration
Version=0.10
DefaultEnabled=true
Module=libprintnotes
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
[Actions]
actions_void=printnotes-print
non_modifying_actions=printnotes-print
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]