[gnote/meson] Build specialnotes using meson



commit df78e2ca7587744597317f2008a1c398aff65c87
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue Mar 30 22:46:38 2021 +0300

    Build specialnotes using meson

 src/addins/meson.build                             |  1 +
 src/addins/specialnotes/meson.build                | 28 ++++++++++++++++++++++
 src/addins/specialnotes/specialnotes.desktop.in.in | 10 ++++----
 3 files changed, 34 insertions(+), 5 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index 8a51c0da..84d22ad8 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -17,4 +17,5 @@ subdir('noteoftheday')
 subdir('printnotes')
 subdir('readonly')
 subdir('replacetitle')
+subdir('specialnotes')
 
diff --git a/src/addins/specialnotes/meson.build b/src/addins/specialnotes/meson.build
new file mode 100644
index 00000000..8c05cc98
--- /dev/null
+++ b/src/addins/specialnotes/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'specialnotes.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(
+  'specialnotes',
+  'specialnotesapplicationaddin.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/specialnotes/specialnotes.desktop.in.in 
b/src/addins/specialnotes/specialnotes.desktop.in.in
index 634b0d0e..05217543 100644
--- a/src/addins/specialnotes/specialnotes.desktop.in.in
+++ b/src/addins/specialnotes/specialnotes.desktop.in.in
@@ -1,11 +1,11 @@
 [AddinInfo]
 Id=SpecialNotesAddin
-_Name=Special Notes
-_Description=Show special notes, that are otherwise hidden
-_Authors=Aurimas Černius
+Name=Special Notes
+Description=Show special notes, that are otherwise hidden
+Authors=Aurimas Černius
 Category=Tools
 Version=0.2
 DefaultEnabled=false
 Module=libspecialnotes
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]