[gnote/meson] Build statittics using meson



commit 9711ce8c8c77746c839a10bf4462ee2e2834465c
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue Mar 30 22:52:30 2021 +0300

    Build statittics using meson

 src/addins/meson.build                         |  1 +
 src/addins/statistics/meson.build              | 31 ++++++++++++++++++++++++++
 src/addins/statistics/statistics.desktop.in.in | 10 ++++-----
 3 files changed, 37 insertions(+), 5 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index 84d22ad8..991eab10 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -18,4 +18,5 @@ subdir('printnotes')
 subdir('readonly')
 subdir('replacetitle')
 subdir('specialnotes')
+subdir('statistics')
 
diff --git a/src/addins/statistics/meson.build b/src/addins/statistics/meson.build
new file mode 100644
index 00000000..700175ae
--- /dev/null
+++ b/src/addins/statistics/meson.build
@@ -0,0 +1,31 @@
+desktop_file = 'statistics.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(
+  'statistics',
+  [
+    'statisticsapplicationaddin.cpp',
+    'statisticswidget.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/statistics/statistics.desktop.in.in b/src/addins/statistics/statistics.desktop.in.in
index f74e7d93..2f462533 100644
--- a/src/addins/statistics/statistics.desktop.in.in
+++ b/src/addins/statistics/statistics.desktop.in.in
@@ -1,13 +1,13 @@
 [AddinInfo]
 Id=Statistics
-_Name=Statistics
-_Description=Show various statistics about notes.
-_Authors=Aurimas Černius
+Name=Statistics
+Description=Show various statistics about notes.
+Authors=Aurimas Černius
 Category=Tools
 Version=0.6
 DefaultEnabled=false
 Module=libstatistics
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
 [Actions]
 actions_void=statistics-show


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