forked from enlightenment/enlightenment
meson - clock and ibar - use same template as most modules now
This commit is contained in:
parent
30ed7e5f45
commit
f6d9eeb99a
|
@ -1,29 +1,32 @@
|
|||
clock_dist = [
|
||||
'e-module-clock.edj',
|
||||
'module.desktop',
|
||||
]
|
||||
module = 'clock'
|
||||
opt = 'clock'
|
||||
conf = 'USE_MODULE_CLOCK'
|
||||
|
||||
clock_src = [
|
||||
src = [
|
||||
'e_mod_main.c',
|
||||
'e_mod_config.c',
|
||||
'e_mod_main.c'
|
||||
'e_mod_main.h'
|
||||
]
|
||||
|
||||
clock_dir = join_paths(dir_module_e, 'clock', module_arch)
|
||||
if get_option('clock') == true
|
||||
config_h.set('USE_MODULE_CLOCK', '1')
|
||||
icon = [
|
||||
'e-module-' + module + '.edj',
|
||||
'module.desktop'
|
||||
]
|
||||
|
||||
install_data(clock_dist,
|
||||
install_dir: join_paths(dir_module_e, 'clock')
|
||||
)
|
||||
dir_mod = join_paths(dir_module_e, module)
|
||||
dir_mod_bin = join_paths(dir_mod, module_arch)
|
||||
|
||||
module_files += join_paths(clock_dir, 'clock.so')
|
||||
shared_module('clock',
|
||||
clock_src,
|
||||
if get_option(opt) == true
|
||||
config_h.set(conf, '1')
|
||||
module_files += join_paths(dir_mod_bin, module + '.so')
|
||||
|
||||
install_data(icon, install_dir: dir_mod)
|
||||
|
||||
shared_module(module, src,
|
||||
include_directories: include_directories(module_includes),
|
||||
name_prefix: '',
|
||||
dependencies: module_deps,
|
||||
install_dir: clock_dir,
|
||||
install: true
|
||||
name_prefix : '',
|
||||
dependencies : module_deps,
|
||||
install_dir : dir_mod_bin,
|
||||
install : true
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
|
@ -1,30 +1,32 @@
|
|||
ibar_dist = [
|
||||
'e-module-ibar.edj',
|
||||
'module.desktop',
|
||||
]
|
||||
module = 'ibar'
|
||||
opt = 'ibar'
|
||||
conf = 'USE_MODULE_IBAR'
|
||||
|
||||
ibar_src = [
|
||||
'e_mod_config.c',
|
||||
src = [
|
||||
'e_mod_main.c',
|
||||
'e_mod_main.h',
|
||||
'e_mod_config.c',
|
||||
'e_mod_main.h'
|
||||
]
|
||||
|
||||
ibar_dir = join_paths(dir_module_e, 'ibar', module_arch)
|
||||
if get_option('ibar') == true
|
||||
config_h.set('USE_MODULE_IBAR', '1')
|
||||
icon = [
|
||||
'e-module-' + module + '.edj',
|
||||
'module.desktop'
|
||||
]
|
||||
|
||||
install_data(ibar_dist,
|
||||
install_dir: join_paths(dir_module_e, 'ibar')
|
||||
)
|
||||
dir_mod = join_paths(dir_module_e, module)
|
||||
dir_mod_bin = join_paths(dir_mod, module_arch)
|
||||
|
||||
module_files += join_paths(ibar_dir, 'ibar.so')
|
||||
shared_module('ibar',
|
||||
ibar_src,
|
||||
if get_option(opt) == true
|
||||
config_h.set(conf, '1')
|
||||
module_files += join_paths(dir_mod_bin, module + '.so')
|
||||
|
||||
install_data(icon, install_dir: dir_mod)
|
||||
|
||||
shared_module(module, src,
|
||||
include_directories: include_directories(module_includes),
|
||||
name_prefix: '',
|
||||
dependencies: module_deps,
|
||||
install_dir: ibar_dir,
|
||||
install: true
|
||||
name_prefix : '',
|
||||
dependencies : module_deps,
|
||||
install_dir : dir_mod_bin,
|
||||
install : true
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue