[gnote/meson] Build underline using meson
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Build underline using meson
- Date: Tue, 30 Mar 2021 20:30:50 +0000 (UTC)
commit 4db8d3fedc4cbc39c9c2ba0282cccf7457cfb83f
Author: Aurimas Černius <aurisc4 gmail com>
Date: Tue Mar 30 23:14:33 2021 +0300
Build underline using meson
src/addins/meson.build | 1 +
src/addins/underline/meson.build | 28 ++++++++++++++++++++++++++++
src/addins/underline/underline.desktop.in.in | 10 +++++-----
3 files changed, 34 insertions(+), 5 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index e6070fed..4003a86d 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -23,4 +23,5 @@ subdir('stickynoteimport')
subdir('tableofcontents')
subdir('todo')
subdir('tomboyimport')
+subdir('underline')
diff --git a/src/addins/underline/meson.build b/src/addins/underline/meson.build
new file mode 100644
index 00000000..41d3f20e
--- /dev/null
+++ b/src/addins/underline/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'underline.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(
+ 'underline',
+ 'underlinenoteaddin.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/underline/underline.desktop.in.in b/src/addins/underline/underline.desktop.in.in
index e36d2f54..554b9ff7 100644
--- a/src/addins/underline/underline.desktop.in.in
+++ b/src/addins/underline/underline.desktop.in.in
@@ -1,13 +1,13 @@
[AddinInfo]
Id=UnderlineAddin
-_Name=Underline
-_Description=Adds ability to underline text.
-_Authors=Hubert Figuière and the Tomboy Project
+Name=Underline
+Description=Adds ability to underline text.
+Authors=Hubert Figuière and the Tomboy Project
Category=Formatting
Version=0.3
DefaultEnabled=true
Module=libunderline
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
[Actions]
actions_bool=underline-enable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]