Compare commits
1 Commits
master
...
devs/bu5hm
Author | SHA1 | Date |
---|---|---|
|
f31d840ad0 | 5 years ago |
50 changed files with 139 additions and 1014 deletions
@ -1,30 +1,7 @@ |
||||
backlight_dist = [ |
||||
'e-module-backlight.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
backlight_src = [ |
||||
'e_mod_main.c', |
||||
'gadget/backlight.c', |
||||
'gadget/mod.c' |
||||
] |
||||
|
||||
backlight_dir = join_paths(dir_module_e, 'backlight', module_arch) |
||||
if get_option('backlight') == true |
||||
config_h.set('USE_MODULE_BACKLIGHT', '1') |
||||
|
||||
install_data(backlight_dist, |
||||
install_dir: join_paths(dir_module_e, 'backlight') |
||||
) |
||||
|
||||
module_files += join_paths(backlight_dir, 'backlight.so') |
||||
shared_module('backlight', |
||||
backlight_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: backlight_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [backlight_src, 'e-module-backlight.edj'] |
||||
|
@ -1,30 +1,7 @@ |
||||
bluez4_dist = [ |
||||
'e-module-bluez4.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
bluez4_src = [ |
||||
'agent.c', |
||||
'ebluez4.c', |
||||
'e_mod_main.c' |
||||
] |
||||
|
||||
bluez4_dir = join_paths(dir_module_e, 'bluez4', module_arch) |
||||
if get_option('bluez4') == true |
||||
config_h.set('USE_MODULE_BLUEZ4', '1') |
||||
|
||||
install_data(bluez4_dist, |
||||
install_dir: join_paths(dir_module_e, 'bluez4') |
||||
) |
||||
|
||||
module_files += join_paths(bluez4_dir, 'bluez4.so') |
||||
shared_module('bluez4', |
||||
bluez4_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: bluez4_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [bluez4_src, 'e-module-bluez4.edj'] |
||||
|
@ -1,29 +1,6 @@ |
||||
clock_dist = [ |
||||
'e-module-clock.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
clock_src = [ |
||||
'e_mod_config.c', |
||||
'e_mod_main.c' |
||||
] |
||||
|
||||
clock_dir = join_paths(dir_module_e, 'clock', module_arch) |
||||
if get_option('clock') == true |
||||
config_h.set('USE_MODULE_CLOCK', '1') |
||||
|
||||
install_data(clock_dist, |
||||
install_dir: join_paths(dir_module_e, 'clock') |
||||
) |
||||
|
||||
module_files += join_paths(clock_dir, 'clock.so') |
||||
shared_module('clock', |
||||
clock_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: clock_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [clock_src, 'e-module-clock.edj'] |
||||
|
@ -1,30 +1,7 @@ |
||||
conf_dist = [ |
||||
'e-module-conf.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
conf_src = [ |
||||
'e_conf.c', |
||||
'e_mod_config.c', |
||||
'e_mod_main.c' |
||||
] |
||||
|
||||
conf_dir = join_paths(dir_module_e, 'conf', module_arch) |
||||
if get_option('conf') == true |
||||
config_h.set('USE_MODULE_CONF', '1') |
||||
|
||||
install_data(conf_dist, |
||||
install_dir: join_paths(dir_module_e, 'conf') |
||||
) |
||||
|
||||
module_files += join_paths(conf_dir, 'conf.so') |
||||
shared_module('conf', |
||||
conf_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: conf_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [conf_src, 'e-module-conf.edj'] |
||||
|
@ -1,30 +1,6 @@ |
||||
conf_menus_dist = [ |
||||
'e-module-conf_menus.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
conf_menus_src = [ |
||||
'e_int_config_menus.c', |
||||
'e_mod_main.c', |
||||
'e_mod_main.h', |
||||
] |
||||
|
||||
conf_menus_dir = join_paths(dir_module_e, 'conf_menus', module_arch) |
||||
if get_option('conf-menus') == true |
||||
config_h.set('USE_MODULE_CONF_MENUS', '1') |
||||
|
||||
install_data(conf_menus_dist, |
||||
install_dir: join_paths(dir_module_e, 'conf_menus') |
||||
) |
||||
|
||||
module_files += join_paths(conf_menus_dir, 'conf_menus.so') |
||||
shared_module('conf_menus', |
||||
conf_menus_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: conf_menus_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [conf_menus_src, 'e-module-conf_menus.edj'] |
||||
|
@ -1,28 +1,5 @@ |
||||
fileman_opinfo_dist = [ |
||||
'e-module-fileman_opinfo.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
fileman_opinfo_src = [ |
||||
'e_mod_main.c', |
||||
] |
||||
|
||||
fileman_opinfo_dir = join_paths(dir_module_e, 'fileman_opinfo', module_arch) |
||||
if get_option('fileman-opinfo') == true |
||||
config_h.set('USE_MODULE_FILEMAN_OPINFO', '1') |
||||
|
||||
install_data(fileman_opinfo_dist, |
||||
install_dir: join_paths(dir_module_e, 'fileman_opinfo') |
||||
) |
||||
|
||||
module_files += join_paths(fileman_opinfo_dir, 'fileman_opinfo.so') |
||||
shared_module('fileman_opinfo', |
||||
fileman_opinfo_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: fileman_opinfo_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [fileman_opinfo_src, 'e-module-fileman_opinfo.edj'] |
||||
|
@ -1,30 +1,7 @@ |
||||
ibar_dist = [ |
||||
'e-module-ibar.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
ibar_src = [ |
||||
'e_mod_config.c', |
||||
'e_mod_main.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') |
||||
|
||||
install_data(ibar_dist, |
||||
install_dir: join_paths(dir_module_e, 'ibar') |
||||
) |
||||
|
||||
module_files += join_paths(ibar_dir, 'ibar.so') |
||||
shared_module('ibar', |
||||
ibar_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: ibar_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [ibar_src, 'e-module-ibar.edj'] |
||||
|
@ -1,30 +1,7 @@ |
||||
ibox_dist = [ |
||||
'e-module-ibox.edj', |
||||
'module.desktop', |
||||
] |
||||
|
||||
ibox_src = [ |
||||
'e_mod_config.c', |
||||
'e_mod_main.c', |
||||
'e_mod_main.h', |
||||
] |
||||
|
||||
ibox_dir = join_paths(dir_module_e, 'ibox', module_arch) |
||||
if get_option('ibox') == true |
||||
config_h.set('USE_MODULE_IBOX', '1') |
||||
|
||||
install_data(ibox_dist, |
||||
install_dir: join_paths(dir_module_e, 'ibox') |
||||
) |
||||
|
||||
module_files += join_paths(ibox_dir, 'ibox.so') |
||||
shared_module('ibox', |
||||
ibox_src, |
||||
include_directories: include_directories(module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: ibox_dir, |
||||
install: true |
||||
) |
||||
endif |
||||
|
||||
module += [ibox_src, 'e-module-ibox.edj'] |
||||
|
@ -0,0 +1,55 @@ |
||||
easy_modules =['appmenu','backlight','battery','bluez4','clock','conf','conf_applications','conf_bindings','conf_dialogs','conf_display','conf_interaction','conf_intl','conf_menus','conf_paths','conf_performance','conf_randr','conf_shelves','conf_theme','conf_window_manipulation','conf_window_remembers','connman','cpufreq','everything','fileman','fileman_opinfo','gadman','ibar','ibox','luncher','msgbus','notification','packagekit','pager','pager_plain','quickaccess','shot','start','syscon','sysinfo','systray','tasks','teamwork','temperature','tiling','time','winlist','wireless','xkbswitch'] |
||||
custom_modules = ['geolocation','lokker','mixer','music-control','policy_mobile','wizard','wl_buffer','wl_desktop_shell','wl_drm','wl_text_input','wl_weekeyboard','wl_wl','wl_x11','xwayland'] |
||||
|
||||
foreach module_name : custom_modules |
||||
message('Configure module ' + module_name) |
||||
subdir(module_name) |
||||
endforeach |
||||
|
||||
foreach module_name : easy_modules |
||||
module_option_name = '-'.join(module_name.split('_')) |
||||
if get_option(module_option_name) == true |
||||
module = [] |
||||
config_h.set(''.join(['USE_MODULE_', module_name.to_upper()]), '1') |
||||
message('Configure module ' + module_name) |
||||
subdir(module_name) |
||||
|
||||
module_source_raw = module.get(0, '') |
||||
module_theme = module.get(1, '') |
||||
module_source = [] |
||||
|
||||
#convert the module sources to relative paths |
||||
foreach s : module_source_raw |
||||
module_source += join_paths([module_name, s]) |
||||
endforeach |
||||
|
||||
#generate the install dirs |
||||
module_object_install_dir = join_paths(dir_module_e, module_name, module_arch) |
||||
module_install_dir = join_paths(dir_module_e, module_name) |
||||
|
||||
#add the module files |
||||
module_files += join_paths(module_object_install_dir, ''.join([module_name, '.so'])) |
||||
|
||||
#set the module.so to be compiled |
||||
shared_module(module_name, |
||||
module_source, |
||||
include_directories: include_directories(general_module_includes), |
||||
name_prefix: '', |
||||
dependencies: module_deps, |
||||
install_dir: module_object_install_dir, |
||||
install: true |
||||
) |
||||
|
||||
#install theme if its there |
||||
if module_theme != '' |
||||
install_data(join_paths([module_name, module_theme]), |
||||
install_dir: module_install_dir, |
||||
install : true) |
||||
endif |
||||
|
||||
#install module.desktop |
||||
install_data(join_paths([module_name, 'module.desktop']), |
||||
install_dir: module_install_dir, |
||||
install : true) |
||||
endif |
||||
endforeach |