[gnote/meson] Build readonly using meson



commit 9695f4d3396d73f2435d743ef1bb70435ba51949
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue Mar 30 22:37:35 2021 +0300

    Build readonly using meson

 src/addins/meson.build                     |  1 +
 src/addins/readonly/meson.build            | 28 ++++++++++++++++++++++++++++
 src/addins/readonly/readonly.desktop.in.in |  4 ++--
 3 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index 57a4ef56..117a6152 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -15,4 +15,5 @@ subdir('inserttimestamp')
 subdir('notedirectorywatcher')
 subdir('noteoftheday')
 subdir('printnotes')
+subdir('readonly')
 
diff --git a/src/addins/readonly/meson.build b/src/addins/readonly/meson.build
new file mode 100644
index 00000000..3781cdf2
--- /dev/null
+++ b/src/addins/readonly/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'readonly.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(
+  'readonly',
+  'readonlynoteaddin.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/readonly/readonly.desktop.in.in b/src/addins/readonly/readonly.desktop.in.in
index a1e5785a..f66ababf 100644
--- a/src/addins/readonly/readonly.desktop.in.in
+++ b/src/addins/readonly/readonly.desktop.in.in
@@ -7,8 +7,8 @@ Category=Tools
 Version=0.4
 DefaultEnabled=false
 Module=libreadonly
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
 [Actions]
 actions_bool=readonly-toggle
 non_modifying_actions=readonly-toggle


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