[gnote/meson] Build replace title using meson



commit 15f2c248500361b82c769f4a616c2907496d35c7
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue Mar 30 22:42:55 2021 +0300

    Build replace title using meson

 src/addins/meson.build                             |  1 +
 src/addins/replacetitle/meson.build                | 28 ++++++++++++++++++++++
 src/addins/replacetitle/replacetitle.desktop.in.in |  4 ++--
 3 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index 117a6152..8a51c0da 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -16,4 +16,5 @@ subdir('notedirectorywatcher')
 subdir('noteoftheday')
 subdir('printnotes')
 subdir('readonly')
+subdir('replacetitle')
 
diff --git a/src/addins/replacetitle/meson.build b/src/addins/replacetitle/meson.build
new file mode 100644
index 00000000..51d00286
--- /dev/null
+++ b/src/addins/replacetitle/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'replacetitle.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(
+  'replacetitle',
+  'replacetitlenoteaddin.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/replacetitle/replacetitle.desktop.in.in 
b/src/addins/replacetitle/replacetitle.desktop.in.in
index 6aef65ec..6d597b1a 100644
--- a/src/addins/replacetitle/replacetitle.desktop.in.in
+++ b/src/addins/replacetitle/replacetitle.desktop.in.in
@@ -7,7 +7,7 @@ Category=Tools
 Version=0.4
 DefaultEnabled=true
 Module=libreplacetitle
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
 [Actions]
 actions_void=replacetitle-replace


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