meson build generics - ooops. missed files. add now

This commit is contained in:
Carsten Haitzler 2017-07-27 18:32:43 +09:00
parent 822a0bcacb
commit ce3b72e371
2 changed files with 39 additions and 0 deletions

View File

@ -404,8 +404,10 @@ module_includes2 = [ '../..', '../bin', '../bin/efx' ]
module_deps = [deps_e, dep_dl]
subdir('src/modules')
#### the below now use the gneric build above
#subdir('src/modules/ibar')
#subdir('src/modules/clock')
subdir('src/modules/pager')
subdir('src/modules/pager_plain')
subdir('src/modules/battery')

37
src/modules/meson.build Normal file
View File

@ -0,0 +1,37 @@
mods = [
'clock',
'ibar'
]
foreach m: mods
subdir(m)
_module = m
_opt = m
_conf = 'USE_MODULE_' + m.to_upper()
_src = [ ]
foreach s: src
_src += [ join_paths(m, s) ]
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')
module_files += join_paths(_dir_bin, _module + '.so')
install_data(_icon, install_dir: _dir)
_inc = include_directories(module_includes2,
join_paths('.', m))
shared_module(_module, _src,
include_directories: _inc,
name_prefix : '',
dependencies : module_deps,
install_dir : _dir_bin,
install : true
)
endif
endforeach