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
This commit is contained in:
Wonki Kim 2019-01-10 12:07:39 +00:00 committed by Marcel Hollerbach
parent 15620ecc7c
commit 3376e7cbd2
2 changed files with 7 additions and 1 deletions

View File

@ -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'
)

View File

@ -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')