[gnote/meson] Build noteofthe day using meson



commit c9adc8cc3b8bdebd1640eecdac9f20ce76a27163
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue Mar 30 22:24:36 2021 +0300

    Build noteofthe day using meson

 src/addins/meson.build                             |  1 +
 src/addins/noteoftheday/meson.build                | 32 ++++++++++++++++++++++
 src/addins/noteoftheday/noteoftheday.desktop.in.in |  4 +--
 3 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index d7275b98..b26c26c6 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -13,4 +13,5 @@ subdir('fixedwidth')
 subdir('gvfssyncservice')
 subdir('inserttimestamp')
 subdir('notedirectorywatcher')
+subdir('noteoftheday')
 
diff --git a/src/addins/noteoftheday/meson.build b/src/addins/noteoftheday/meson.build
new file mode 100644
index 00000000..9cf9c39f
--- /dev/null
+++ b/src/addins/noteoftheday/meson.build
@@ -0,0 +1,32 @@
+desktop_file = 'noteoftheday.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(
+  'noteoftheday',
+  [
+    'noteoftheday.cpp',
+    'noteofthedayapplicationaddin.cpp',
+    'noteofthedaypreferences.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/noteoftheday/noteoftheday.desktop.in.in 
b/src/addins/noteoftheday/noteoftheday.desktop.in.in
index aef3dc15..36b03b4d 100644
--- a/src/addins/noteoftheday/noteoftheday.desktop.in.in
+++ b/src/addins/noteoftheday/noteoftheday.desktop.in.in
@@ -7,5 +7,5 @@ Category=Tools
 Version=0.4
 DefaultEnabled=false
 Module=libnoteoftheday
-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]