2017-08-10 04:22:55 -07:00
|
|
|
module_files = []
|
|
|
|
module_ldflags = '-module -avoid-version'
|
|
|
|
module_includes = [ '../../..', '../../bin', '../../bin/efx' ]
|
|
|
|
module_includes2 = [ '../..' , '../bin' , '../bin/efx' ]
|
|
|
|
module_deps = [ deps_e, dep_dl ]
|
|
|
|
|
2017-07-27 02:32:43 -07:00
|
|
|
mods = [
|
2017-07-30 01:03:46 -07:00
|
|
|
# standard run of the mill modules with cion and desktop
|
2017-07-28 03:41:03 -07:00
|
|
|
'ibar',
|
|
|
|
'pager',
|
2017-07-30 01:03:46 -07:00
|
|
|
'temperature',
|
2017-08-11 21:10:52 -07:00
|
|
|
'mixer',
|
2017-07-28 03:41:03 -07:00
|
|
|
'notification',
|
2017-08-11 21:32:20 -07:00
|
|
|
'everything',
|
2017-07-28 03:41:03 -07:00
|
|
|
'ibox',
|
|
|
|
'start',
|
|
|
|
'winlist',
|
|
|
|
'fileman',
|
|
|
|
'fileman_opinfo',
|
|
|
|
'conf',
|
|
|
|
'msgbus',
|
2017-08-08 09:21:04 -07:00
|
|
|
'music-control',
|
2017-07-28 03:41:03 -07:00
|
|
|
'conf_applications',
|
|
|
|
'conf_shelves',
|
|
|
|
'conf_window_remembers',
|
2017-07-30 01:03:46 -07:00
|
|
|
'conf_window_manipulation',
|
2017-07-28 03:41:03 -07:00
|
|
|
'conf_menus',
|
|
|
|
'conf_dialogs',
|
|
|
|
'conf_performance',
|
|
|
|
'conf_paths',
|
|
|
|
'conf_interaction',
|
|
|
|
'gadman',
|
2017-08-08 09:33:11 -07:00
|
|
|
'geolocation',
|
2017-07-28 03:41:03 -07:00
|
|
|
'connman',
|
2018-05-09 21:52:06 -07:00
|
|
|
'bluez5',
|
2017-07-28 03:41:03 -07:00
|
|
|
'syscon',
|
|
|
|
'systray',
|
|
|
|
'appmenu',
|
|
|
|
'quickaccess',
|
|
|
|
'shot',
|
|
|
|
'backlight',
|
|
|
|
'tasks',
|
|
|
|
'conf_randr',
|
|
|
|
'xkbswitch',
|
|
|
|
'tiling',
|
|
|
|
'packagekit',
|
2017-08-14 03:48:40 -07:00
|
|
|
'vkbd',
|
Introduce gesture recognition
This is currently using libinputs gesture recognition. And offers a
config screen to setup new gestures.
1. No default gesture bindings are setup
2. When libinput is not available the module is not going to be loaded,
and nothing is recognited.+
3. Only swipe gestures are recognized yet.
4. For now, you are required to be part of the input group, otherwise we cannot
get the libinput events. (See Todo 1)
5. The visual representation is not really good. In terms of UI, it is
visually showing a value coming from left to right, which is
indicating a direction, which is not always the direction of the
gesture, which is kind of bad. More improvements needed here.
Some things that still can be done:
1. The whole libinput things should be handled by elput, either with the
input group hack, or logind, or simply by root. The ideal idea would
be that e_sys is creating the elput context, which also listens for new
devices etc.. When all this is done, and it recognizes a new device, it
can simply sent a message from e_sys to e, that there is some new
device, with a opened fd. (However, this all needs to be locked up in a
way that e_sys cannot be abused)
2020-07-02 03:18:42 -07:00
|
|
|
'gesture_recognition',
|
2017-08-11 20:25:53 -07:00
|
|
|
# modules have a custom binary as well
|
|
|
|
'battery',
|
|
|
|
'cpufreq',
|
|
|
|
'clock',
|
|
|
|
# custyom sub modules and custom data
|
|
|
|
'wizard',
|
2017-07-30 01:03:46 -07:00
|
|
|
# also standard modules, just with only a desktop file using a generic icon
|
|
|
|
'conf_theme',
|
|
|
|
'conf_intl',
|
|
|
|
'conf_display',
|
|
|
|
'conf_bindings',
|
|
|
|
# also standard modules with no icon or desktop file
|
2017-08-11 21:32:20 -07:00
|
|
|
'xwayland',
|
2017-07-30 01:03:46 -07:00
|
|
|
'lokker',
|
2019-10-07 17:29:24 -07:00
|
|
|
'polkit',
|
2017-07-30 01:03:46 -07:00
|
|
|
'wl_x11',
|
|
|
|
'wl_wl',
|
|
|
|
'wl_buffer',
|
|
|
|
'wl_drm',
|
2017-08-11 04:44:38 -07:00
|
|
|
'wl_text_input',
|
|
|
|
'wl_desktop_shell',
|
|
|
|
'wl_weekeyboard',
|
2017-08-11 19:10:45 -07:00
|
|
|
### XXX: disabled for now
|
2017-08-11 21:32:20 -07:00
|
|
|
# 'wl_fb'
|
2017-07-27 02:32:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
foreach m: mods
|
2017-07-30 01:03:46 -07:00
|
|
|
desktop_only = false
|
2017-11-06 03:32:19 -08:00
|
|
|
disable = false
|
2017-07-30 01:03:46 -07:00
|
|
|
no_icon = false
|
|
|
|
cargs = ''
|
2017-08-11 04:44:38 -07:00
|
|
|
data = []
|
2017-12-03 05:14:39 -08:00
|
|
|
deps = deps_e
|
2017-08-11 21:10:52 -07:00
|
|
|
inc = []
|
2017-08-11 03:50:48 -07:00
|
|
|
_dir = join_paths(dir_module_e, m)
|
|
|
|
_dir_bin = join_paths(_dir, module_arch)
|
2017-08-11 04:44:38 -07:00
|
|
|
|
2017-07-27 04:29:46 -07:00
|
|
|
opt = '-'.join(m.split('_'))
|
2017-11-03 11:35:43 -07:00
|
|
|
|
2017-11-06 03:32:19 -08:00
|
|
|
if get_option(opt) == true
|
2017-11-03 11:35:43 -07:00
|
|
|
subdir(m)
|
2017-11-06 03:32:19 -08:00
|
|
|
else
|
|
|
|
disable = true
|
2017-11-03 11:35:43 -07:00
|
|
|
endif
|
2017-07-27 04:29:46 -07:00
|
|
|
|
2017-11-06 03:32:19 -08:00
|
|
|
if disable == false
|
2017-07-30 01:03:46 -07:00
|
|
|
|
2017-08-11 21:10:52 -07:00
|
|
|
_inc2 = []
|
|
|
|
foreach i: inc
|
|
|
|
_inc2 += join_paths('.', m, i)
|
|
|
|
endforeach
|
|
|
|
_inc = include_directories(module_includes2,
|
|
|
|
join_paths('.', m),
|
|
|
|
_inc2)
|
2017-08-08 17:24:55 -07:00
|
|
|
_conf = 'USE_MODULE_' + m.underscorify().to_upper()
|
2017-07-27 04:29:46 -07:00
|
|
|
module_files += join_paths(_dir_bin, m + '.so')
|
|
|
|
|
2017-07-30 01:03:46 -07:00
|
|
|
if desktop_only == true
|
2017-08-11 04:44:38 -07:00
|
|
|
_data = [ join_paths(m, 'module.desktop') ]
|
2017-07-30 01:03:46 -07:00
|
|
|
elif no_icon == true
|
2017-08-11 04:44:38 -07:00
|
|
|
_data = []
|
2017-07-30 01:03:46 -07:00
|
|
|
else
|
2017-08-11 04:44:38 -07:00
|
|
|
_data = [ join_paths(m, 'e-module-' + m + '.edj'),
|
|
|
|
join_paths(m, 'module.desktop') ]
|
|
|
|
endif
|
|
|
|
|
|
|
|
foreach d: data
|
|
|
|
_data += join_paths(m, d)
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
if _data.length() > 0
|
|
|
|
install_data(_data,
|
2017-07-30 01:03:46 -07:00
|
|
|
install_dir: _dir)
|
|
|
|
endif
|
|
|
|
|
2017-07-27 02:32:43 -07:00
|
|
|
config_h.set(_conf, '1')
|
2017-07-30 01:03:46 -07:00
|
|
|
if cargs == ''
|
2017-08-08 09:19:11 -07:00
|
|
|
shared_module(m, src,
|
2017-07-30 01:03:46 -07:00
|
|
|
include_directories: _inc,
|
|
|
|
name_prefix : '',
|
2017-08-11 21:10:52 -07:00
|
|
|
dependencies : [ module_deps, deps ],
|
2017-07-30 01:03:46 -07:00
|
|
|
install_dir : _dir_bin,
|
2017-09-18 02:15:07 -07:00
|
|
|
install : true,
|
2017-12-11 06:49:07 -08:00
|
|
|
link_args : '-Wl,--unresolved-symbols=ignore-all'
|
2017-07-30 01:03:46 -07:00
|
|
|
)
|
|
|
|
else
|
2017-08-08 09:19:11 -07:00
|
|
|
shared_module(m, src,
|
2017-07-30 01:03:46 -07:00
|
|
|
include_directories: _inc,
|
|
|
|
c_args : cargs,
|
|
|
|
name_prefix : '',
|
2017-08-11 21:10:52 -07:00
|
|
|
dependencies : [ module_deps, deps ],
|
2017-07-30 01:03:46 -07:00
|
|
|
install_dir : _dir_bin,
|
2017-09-18 02:15:07 -07:00
|
|
|
install : true,
|
2017-12-11 06:49:07 -08:00
|
|
|
link_args : '-Wl,--unresolved-symbols=ignore-all'
|
2017-07-30 01:03:46 -07:00
|
|
|
)
|
|
|
|
endif
|
2017-07-27 02:32:43 -07:00
|
|
|
endif
|
|
|
|
endforeach
|