forked from enlightenment/efl
meson: add a option to config the base directory name for elm data
There is a option(--with-elementary-base-dir) on autotools this patch provides the exactly same thing that autotools does on meson Differential Revision: https://phab.enlightenment.org/D7580
This commit is contained in:
parent
3376e7cbd2
commit
b73a5ed704
|
@ -340,4 +340,10 @@ option('dictionaries-hyphen-dir',
|
||||||
type : 'string',
|
type : 'string',
|
||||||
value : '/usr/share/hyphen/',
|
value : '/usr/share/hyphen/',
|
||||||
description : 'Put the path to hyphen dictionaries directory'
|
description : 'Put the path to hyphen dictionaries directory'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
option('elementary-base-dir',
|
||||||
|
type : 'string',
|
||||||
|
value : '.elementary',
|
||||||
|
description : 'Put the name of a base directory for elementary data'
|
||||||
|
)
|
||||||
|
|
|
@ -916,7 +916,7 @@ elm_options = configuration_data()
|
||||||
|
|
||||||
config_h.set_quoted('ELM_TOP_BUILD_DIR', meson.build_root())
|
config_h.set_quoted('ELM_TOP_BUILD_DIR', meson.build_root())
|
||||||
config_h.set_quoted('MODULES_PATH', join_paths(dir_lib, 'modules'))
|
config_h.set_quoted('MODULES_PATH', join_paths(dir_lib, 'modules'))
|
||||||
config_h.set_quoted('ELEMENTARY_BASE_DIR', '.elementary')
|
config_h.set_quoted('ELEMENTARY_BASE_DIR', get_option('elementary-base-dir'))
|
||||||
config_h.set_quoted('ICON_DIR', join_paths(dir_lib, 'icons'))
|
config_h.set_quoted('ICON_DIR', join_paths(dir_lib, 'icons'))
|
||||||
|
|
||||||
if sys_windows == false
|
if sys_windows == false
|
||||||
|
|
Loading…
Reference in New Issue