From 3376e7cbd275504dcf8350d5cf360a559a0684a9 Mon Sep 17 00:00:00 2001 From: Wonki Kim Date: Thu, 10 Jan 2019 12:07:39 +0000 Subject: [PATCH] meson: Add a option for hyphen dictionaries directory this patch provides a way to config hyphen dictionaries dir on meson. Differential Revision: https://phab.enlightenment.org/D7581 --- meson_options.txt | 6 ++++++ src/lib/evas/meson.build | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meson_options.txt b/meson_options.txt index 563794e6a4..a359154836 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -335,3 +335,9 @@ option('windows-version', value : 'win7', description : 'When host_machine is windows, compile the efl with the specified version of Windows' ) + +option('dictionaries-hyphen-dir', + type : 'string', + value : '/usr/share/hyphen/', + description : 'Put the path to hyphen dictionaries directory' +) \ No newline at end of file diff --git a/src/lib/evas/meson.build b/src/lib/evas/meson.build index 10b6fcd920..1b306c363e 100644 --- a/src/lib/evas/meson.build +++ b/src/lib/evas/meson.build @@ -139,7 +139,7 @@ if (get_option('hyphen')) evas_deps += cc.find_library('hyphen') endif evas_deps += hyphen - config_h.set_quoted('EVAS_DICTS_HYPHEN_DIR', '/usr/share/hyphen') + config_h.set_quoted('EVAS_DICTS_HYPHEN_DIR', get_option('dictionaries-hyphen-dir')) endif subdir('include')