[gnote/meson] Build fixedwidth using meson
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/meson] Build fixedwidth using meson
- Date: Mon, 29 Mar 2021 20:40:52 +0000 (UTC)
commit c352e26817d615b6892c4a751b49d8f9577919d5
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon Mar 29 23:26:20 2021 +0300
Build fixedwidth using meson
src/addins/fixedwidth/fixedwidth.desktop.in.in | 4 ++--
src/addins/fixedwidth/meson.build | 28 ++++++++++++++++++++++++++
src/addins/meson.build | 1 +
3 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/fixedwidth/fixedwidth.desktop.in.in b/src/addins/fixedwidth/fixedwidth.desktop.in.in
index 6d8cdac0..13b2d342 100644
--- a/src/addins/fixedwidth/fixedwidth.desktop.in.in
+++ b/src/addins/fixedwidth/fixedwidth.desktop.in.in
@@ -7,7 +7,7 @@ Category=Formatting
Version=0.4
DefaultEnabled=true
Module=libfixedwidth
-LibgnoteRelease=@LIBGNOTE_RELEASE@
-LibgnoteVersionInfo=@LIBGNOTE_VERSION_INFO@
+LibgnoteRelease=@libgnote_release@
+LibgnoteVersionInfo=@libgnote_version_info@
[Actions]
actions_bool=fixedwidth-enable
diff --git a/src/addins/fixedwidth/meson.build b/src/addins/fixedwidth/meson.build
new file mode 100644
index 00000000..c48ecd11
--- /dev/null
+++ b/src/addins/fixedwidth/meson.build
@@ -0,0 +1,28 @@
+desktop_file = 'fixedwidth.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(
+ 'fixedwidth',
+ 'fixedwidthnoteaddin.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/meson.build b/src/addins/meson.build
index a7f4b907..41c63529 100644
--- a/src/addins/meson.build
+++ b/src/addins/meson.build
@@ -9,4 +9,5 @@ subdir('bugzilla')
subdir('exporttogtg')
subdir('exporttohtml')
subdir('filesystemsyncservice')
+subdir('fixedwidth')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]