diff --git a/src/modules/meson.build b/src/modules/meson.build index bc10d5b03..8cd57c7dd 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -7,7 +7,6 @@ module_deps = [ deps_e, dep_dl ] subdir('wizard') subdir('mixer') subdir('everything') -subdir('teamwork') mods = [ # standard run of the mill modules with cion and desktop @@ -55,6 +54,7 @@ mods = [ 'wireless', 'time', 'luncher', + 'teamwork', # also standard modules, just with only a desktop file using a generic icon 'conf_theme', 'conf_intl', diff --git a/src/modules/teamwork/meson.build b/src/modules/teamwork/meson.build index a673c5d3f..af8a0aaba 100644 --- a/src/modules/teamwork/meson.build +++ b/src/modules/teamwork/meson.build @@ -1,47 +1,15 @@ -module = 'teamwork' -opt = 'teamwork' -conf = 'USE_MODULE_TEAMWORK' - src = files( 'e_mod_main.c', 'e_mod_config.c', 'e_mod_tw.c', + 'wl.c', + 'x11.c', 'e_mod_main.h' ) if config_h.has('HAVE_WAYLAND') == true - src += [ - 'wl.c', + src += files( 'wl_teamwork.c', 'wl_teamwork.h' - ] -endif - -if config_h.has('HAVE_WAYLAND_ONLY') == false - src += [ - 'x11.c' - ] -endif - -icon = [ - 'e-module-' + module + '.edj', - 'module.desktop' -] - -dir_mod = join_paths(dir_module_e, module) -dir_mod_bin = join_paths(dir_mod, module_arch) - -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 : dir_mod_bin, - install : true - ) + ) endif diff --git a/src/modules/teamwork/wl.c b/src/modules/teamwork/wl.c index b92254ffa..b6ffa2598 100644 --- a/src/modules/teamwork/wl.c +++ b/src/modules/teamwork/wl.c @@ -1,5 +1,6 @@ #define E_COMP_WL #include "e_mod_main.h" +#ifdef HAVE_WAYLAND #include "wl_teamwork.h" static struct wl_resource *tw_resource; @@ -134,3 +135,4 @@ wl_tw_shutdown(void) tw_signal_link_progress[E_PIXMAP_TYPE_WL] = NULL; tw_signal_link_downloading[E_PIXMAP_TYPE_WL] = NULL; } +#endif diff --git a/src/modules/teamwork/x11.c b/src/modules/teamwork/x11.c index 8e7ecee16..e80e2f8cc 100644 --- a/src/modules/teamwork/x11.c +++ b/src/modules/teamwork/x11.c @@ -1,6 +1,7 @@ #define E_COMP_X #include "e_mod_main.h" +#ifndef HAVE_WAYLAND_ONLY enum { TEAMWORK_PRELOAD, @@ -139,3 +140,4 @@ x11_tw_shutdown(void) tw_signal_link_progress[E_PIXMAP_TYPE_X] = NULL; tw_signal_link_downloading[E_PIXMAP_TYPE_X] = NULL; } +#endif