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',
|
|
|
|
'wireless',
|
|
|
|
'time',
|
2017-07-30 01:03:46 -07:00
|
|
|
'luncher',
|
2017-08-11 20:00:53 -07:00
|
|
|
'teamwork',
|
2017-08-14 03:48:40 -07:00
|
|
|
'vkbd',
|
2017-08-11 20:25:53 -07:00
|
|
|
# modules have a custom binary as well
|
|
|
|
'battery',
|
|
|
|
'cpufreq',
|
|
|
|
'clock',
|
|
|
|
'sysinfo',
|
|
|
|
# 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-12-03 05:14:39 -08: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
|