forked from enlightenment/enlightenment
move option if further out in generic module build foreach
do less work if module not enabled... also make it a bit simpler and cleaner in the generic foreach
This commit is contained in:
parent
ab328c6512
commit
380739756c
|
@ -6,27 +6,27 @@ mods = [
|
||||||
foreach m: mods
|
foreach m: mods
|
||||||
subdir(m)
|
subdir(m)
|
||||||
|
|
||||||
_module = m
|
opt = '-'.join(m.split('_'))
|
||||||
_opt = '-'.join(m.split('_'))
|
|
||||||
|
if get_option(opt) == true
|
||||||
|
_icon = [
|
||||||
|
join_paths(m, 'e-module-' + m + '.edj'),
|
||||||
|
join_paths(m, 'module.desktop')
|
||||||
|
]
|
||||||
_conf = 'USE_MODULE_' + m.to_upper()
|
_conf = 'USE_MODULE_' + m.to_upper()
|
||||||
|
_dir = join_paths(dir_module_e, m)
|
||||||
|
_dir_bin = join_paths(_dir, module_arch)
|
||||||
|
_inc = include_directories(module_includes2, join_paths('.', m))
|
||||||
|
module_files += join_paths(_dir_bin, m + '.so')
|
||||||
|
|
||||||
_src = [ ]
|
_src = [ ]
|
||||||
foreach s: src
|
foreach s: src
|
||||||
_src += [ join_paths(m, s) ]
|
_src += [ join_paths(m, s) ]
|
||||||
endforeach
|
endforeach
|
||||||
_icon = [
|
|
||||||
join_paths(m, 'e-module-' + _module + '.edj'),
|
|
||||||
join_paths(m, 'module.desktop')
|
|
||||||
]
|
|
||||||
_dir = join_paths(dir_module_e, _module)
|
|
||||||
_dir_bin = join_paths(_dir, module_arch)
|
|
||||||
|
|
||||||
if get_option(_opt) == true
|
|
||||||
config_h.set(_conf, '1')
|
config_h.set(_conf, '1')
|
||||||
module_files += join_paths(_dir_bin, _module + '.so')
|
|
||||||
install_data(_icon, install_dir: _dir)
|
install_data(_icon, install_dir: _dir)
|
||||||
_inc = include_directories(module_includes2,
|
shared_module(m, _src,
|
||||||
join_paths('.', m))
|
|
||||||
shared_module(_module, _src,
|
|
||||||
include_directories: _inc,
|
include_directories: _inc,
|
||||||
name_prefix : '',
|
name_prefix : '',
|
||||||
dependencies : module_deps,
|
dependencies : module_deps,
|
||||||
|
|
Loading…
Reference in New Issue