[balsa/wip/gtk4: 130/351] Meson build system changes
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4: 130/351] Meson build system changes
- Date: Wed, 23 May 2018 21:27:52 +0000 (UTC)
commit 1885ab09127710f01da3945c1ce4889b5147bc6c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jan 21 14:56:51 2018 -0500
Meson build system changes
Meson build system changes to mirror the autotools changes in
the previous commit
* meson.build: check if the selected conversion tool
accepts “--unicode-snob”.
ChangeLog | 8 ++++++++
meson.build | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b20dff4..c280465 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-01-21 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Meson build system changes to mirror the autotools changes in
+ the previous commit
+
+ * meson.build: check if the selected conversion tool
+ accepts “--unicode-snob”.
+
2018-01-20 Albrecht Dreß <albrecht dress arcor de>
Improve replying to html-only messages
diff --git a/meson.build b/meson.build
index 613d8e7..38d8ddf 100644
--- a/meson.build
+++ b/meson.build
@@ -206,6 +206,14 @@ elif html_widget == 'webkit' or html_widget == 'webkit2'
if html2text.found()
conf.set_quoted('HTML2TEXT', html2text.path(),
description : 'Path to html2text program.')
+ conftest_htm = join_paths(meson.current_build_dir(), 'conftest.htm')
+ run_command('sh', '-c', 'echo "<html/>" > ' + conftest_htm)
+ unicode_snob = run_command(html2text.path(), '--unicode-snob', conftest_htm)
+ if unicode_snob.returncode() == 0
+ conf.set('HTML2TEXT_UCOPT', 1,
+ description : 'Defined when HTML2TEXT accepts the --unicode-snob option.')
+ endif
+ run_command('rm', '-f', conftest_htm)
else
message('You cannot properly quote html-only messags.')
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]