[gnote/meson] Build tableofcontents using meson
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Build tableofcontents using meson
- Date: Tue, 30 Mar 2021 20:30:50 +0000 (UTC)
commit 7a4486929379ad74c9782a4f1fc9ce1860348b79
Author: Aurimas Černius <aurisc4 gmail com>
Date: Tue Mar 30 23:03:44 2021 +0300
Build tableofcontents using meson
src/addins/meson.build | 1 +
src/addins/tableofcontents/meson.build | 32 ++++++++++++++++++++++
.../tableofcontents/tableofcontents.desktop.in.in | 12 ++++----
3 files changed, 39 insertions(+), 6 deletions(-)
---
diff --git a/src/addins/meson.build b/src/addins/meson.build
index a9d069be..6aad502f 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -20,4 +20,5 @@ subdir('replacetitle')
subdir('specialnotes')
subdir('statistics')
subdir('stickynoteimport')
+subdir('tableofcontents')
diff --git a/src/addins/tableofcontents/meson.build b/src/addins/tableofcontents/meson.build
new file mode 100644
index 00000000..537e7a94
--- /dev/null
+++ b/src/addins/tableofcontents/meson.build
@@ -0,0 +1,32 @@
+desktop_file = 'tableofcontents.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(
+ 'tableofcontents',
+ [
+ 'tableofcontentsnoteaddin.cpp',
+ 'tableofcontentsmenuitem.cpp',
+ 'tableofcontentsutils.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/tableofcontents/tableofcontents.desktop.in.in
b/src/addins/tableofcontents/tableofcontents.desktop.in.in
index 06a2d5fa..1a7f2c75 100644
--- a/src/addins/tableofcontents/tableofcontents.desktop.in.in
+++ b/src/addins/tableofcontents/tableofcontents.desktop.in.in
@@ -1,15 +1,15 @@
[AddinInfo]
Id=TableofcontentsAddin
-_Name=Table of Contents
-_Description=Navigate long structured notes. Set section and subsection headings in your note, and the Table
of Contents will show in a menu.
-_Authors=Luc Pionchon
+Name=Table of Contents
+Description=Navigate long structured notes. Set section and subsection headings in your note, and the Table
of Contents will show in a menu.
+Authors=Luc Pionchon
Category=Tools
Version=1.3.1
DefaultEnabled=false
Module=libtableofcontents
-_Copyright=© 2013 Luc Pionchon
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+Copyright=© 2013 Luc Pionchon
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
[Actions]
actions_void=tableofcontents-heading1,tableofcontents-heading2,tableofcontents-help
actions_int=tableofcontents-goto-heading
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]