aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2019-01-10 12:01:08 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-10 19:44:01 +0100
commitb73a5ed704283d95edceb551341902df2b8a9b58 (patch)
tree60bd0ca204ee5175770286e8b33f00d530271320
parentmeson: Add a option for hyphen dictionaries directory (diff)
downloadefl-b73a5ed704283d95edceb551341902df2b8a9b58.tar.gz
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
-rw-r--r--meson_options.txt8
-rw-r--r--src/lib/elementary/meson.build2
2 files changed, 8 insertions, 2 deletions
diff --git a/meson_options.txt b/meson_options.txt
index a359154836..913f49bb5d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -340,4 +340,10 @@ option('dictionaries-hyphen-dir',
type : 'string',
value : '/usr/share/hyphen/',
description : 'Put the path to hyphen dictionaries directory'
-) \ No newline at end of file
+)
+
+option('elementary-base-dir',
+ type : 'string',
+ value : '.elementary',
+ description : 'Put the name of a base directory for elementary data'
+)
diff --git a/src/lib/elementary/meson.build b/src/lib/elementary/meson.build
index 5e92402c06..b88a3ac52b 100644
--- a/src/lib/elementary/meson.build
+++ b/src/lib/elementary/meson.build
@@ -916,7 +916,7 @@ elm_options = configuration_data()
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('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'))
if sys_windows == false