meson build - simplify and cleanup evrything module

all done now! :)
This commit is contained in:
Carsten Haitzler 2017-08-12 13:32:20 +09:00
parent 5e59869a62
commit 7660a6aabc
2 changed files with 47 additions and 70 deletions

View File

@ -1,70 +1,48 @@
everything_dist = [ src = files(
'e-module-everything.edj', 'e_mod_main.c',
'e-module-everything-start.edj', 'evry.c',
'module.desktop', 'evry_config.c',
] 'evry_gadget.c',
'evry_history.c',
'evry_plug_actions.c',
'evry_plug_aggregator.c',
'evry_plug_apps.c',
'evry_plug_calc.c',
'evry_plug_clipboard.c',
'evry_plug_collection.c',
'evry_plug_files.c',
'evry_plugin.c',
'evry_plug_settings.c',
'evry_plug_text.c',
'evry_plug_windows.c',
'evry_util.c',
'evry_view.c',
'evry_view_help.c',
'evry_view_tabs.c',
'md5.c',
'e_mod_main.h',
'evry_api.h',
'evry_types.h',
'md5.h'
)
everything_src = [ data = [ 'e-module-everything-start.edj' ]
'e_mod_main.c',
'evry.c',
'evry_config.c',
'evry_gadget.c',
'evry_history.c',
'evry_plug_actions.c',
'evry_plug_aggregator.c',
'evry_plug_apps.c',
'evry_plug_calc.c',
'evry_plug_clipboard.c',
'evry_plug_collection.c',
'evry_plug_files.c',
'evry_plugin.c',
'evry_plug_settings.c',
'evry_plug_text.c',
'evry_plug_windows.c',
'evry_util.c',
'evry_view.c',
'evry_view_help.c',
'evry_view_tabs.c',
'md5.c',
'e_mod_main.h',
'evry_api.h',
'evry_types.h',
'md5.h',
]
everything_dir = join_paths(dir_module_e, 'everything', module_arch) if get_option(m) == true
if get_option('everything') == true install_headers([ 'evry_api.h', 'evry_types.h' ],
config_h.set('USE_MODULE_EVERYTHING', '1') subdir: 'enlightenment'
)
install_data(everything_dist, pkgconfig.generate(name: 'e17-everything',
install_dir: join_paths(dir_module_e, 'everything') description: 'Everything module for Enlightenment',
) filebase : 'everything',
subdirs : 'enlightenment',
module_files += join_paths(everything_dir, 'everything.so') requires : 'enlightenment',
shared_module('everything', version : e_version_rev,
everything_src, install_dir: dir_pkgconfig,
include_directories: include_directories(module_includes), variables : [
name_prefix: '', 'exec_prefix=${prefix}',
dependencies: module_deps, 'plugindir=${libdir}/enlightenment/modules/everything/plugins'
install_dir: everything_dir, ]
install: true )
)
install_headers(['evry_api.h', 'evry_types.h'],
subdir: 'enlightenment'
)
pkgconfig.generate(
name: 'e17-everything',
description: 'Everything module for Enlightenment',
filebase: 'everything',
subdirs: 'enlightenment',
requires: 'enlightenment',
version: e_version_rev,
install_dir: dir_pkgconfig,
variables: [
'exec_prefix=${prefix}',
'plugindir=${libdir}/enlightenment/modules/everything/plugins'
]
)
endif endif

View File

@ -4,8 +4,6 @@ module_includes = [ '../../..', '../../bin', '../../bin/efx' ]
module_includes2 = [ '../..' , '../bin' , '../bin/efx' ] module_includes2 = [ '../..' , '../bin' , '../bin/efx' ]
module_deps = [ deps_e, dep_dl ] module_deps = [ deps_e, dep_dl ]
subdir('everything')
mods = [ mods = [
# standard run of the mill modules with cion and desktop # standard run of the mill modules with cion and desktop
'ibar', 'ibar',
@ -14,6 +12,7 @@ mods = [
'temperature', 'temperature',
'mixer', 'mixer',
'notification', 'notification',
'everything',
'ibox', 'ibox',
'start', 'start',
'winlist', 'winlist',
@ -63,6 +62,7 @@ mods = [
'conf_display', 'conf_display',
'conf_bindings', 'conf_bindings',
# also standard modules with no icon or desktop file # also standard modules with no icon or desktop file
'xwayland',
'lokker', 'lokker',
'wl_x11', 'wl_x11',
'wl_wl', 'wl_wl',
@ -72,8 +72,7 @@ mods = [
'wl_desktop_shell', 'wl_desktop_shell',
'wl_weekeyboard', 'wl_weekeyboard',
### XXX: disabled for now ### XXX: disabled for now
# 'wl_fb', # 'wl_fb'
'xwayland'
] ]
foreach m: mods foreach m: mods