meson: add a option to config the base directory name for elm data 16/197416/1
authorWonki Kim <wonki_.kim@samsung.com>
Thu, 10 Jan 2019 12:01:08 +0000 (12:01 +0000)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 11 Jan 2019 05:18:42 +0000 (14:18 +0900)
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

Change-Id: I2dd218291eadbb93efb6d68368af8f2341c15372
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
meson_options.txt
src/lib/elementary/meson.build

index ad39659..47822c2 100644 (file)
@@ -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'
+)
index 89c1a5e..b05c838 100644 (file)
@@ -919,7 +919,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