diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-08-12 12:00:53 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-08-12 12:00:53 +0900 |
commit | 1d90c87334785cc73de2177c84aa669245f34a4a (patch) | |
tree | f650aa6d64f7c0a13aa027bb10712bb9ed3b4ed6 | |
parent | 94f3cc4a2a9a4593adbbd55aeb60480610765d32 (diff) | |
download | enlightenment-1d90c87334785cc73de2177c84aa669245f34a4a.tar.gz |
meson build - minimize teamwork meson build too like other modules
also simplify build if's...
-rw-r--r-- | src/modules/meson.build | 2 | ||||
-rw-r--r-- | src/modules/teamwork/meson.build | 40 | ||||
-rw-r--r-- | src/modules/teamwork/wl.c | 2 | ||||
-rw-r--r-- | src/modules/teamwork/x11.c | 2 |
4 files changed, 9 insertions, 37 deletions
diff --git a/src/modules/meson.build b/src/modules/meson.build index bc10d5b039..8cd57c7dd5 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 a673c5d3f1..af8a0aaba5 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 b92254ffa6..b6ffa2598c 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 8e7ecee169..e80e2f8ccc 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 |