diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-21 16:20:03 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-20 17:18:33 -0400 |
commit | e8dc71cd4828ce8ccf791b27326f75b5d5ec8ab8 (patch) | |
tree | 14ecd21fda244cfa38132157ec4210ee8d696d91 /src/modules | |
parent | 4d3e157b30269276772806ddb0283ca20198ff8e (diff) | |
download | enlightenment-e8dc71cd4828ce8ccf791b27326f75b5d5ec8ab8.tar.gz |
meson.
Diffstat (limited to 'src/modules')
63 files changed, 1940 insertions, 0 deletions
diff --git a/src/modules/appmenu/meson.build b/src/modules/appmenu/meson.build new file mode 100644 index 0000000000..40b7e093bb --- /dev/null +++ b/src/modules/appmenu/meson.build @@ -0,0 +1,28 @@ +appmenu_dist = [ + 'e-module-appmenu.edj', + 'module.desktop', +] + +appmenu_src = [ + 'e_mod_main.c', +] + +appmenu_dir = join_paths(dir_module_e, 'appmenu', module_arch) +if get_option('appmenu') == true + config_h.set('USE_MODULE_APPMENU', '1') + + install_data(appmenu_dist, + install_dir: join_paths(dir_module_e, 'appmenu') + ) + + module_files += join_paths(appmenu_dir, 'appmenu.so') + shared_module('appmenu', + appmenu_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: appmenu_dir, + install: true + ) +endif + diff --git a/src/modules/backlight/meson.build b/src/modules/backlight/meson.build new file mode 100644 index 0000000000..939090420d --- /dev/null +++ b/src/modules/backlight/meson.build @@ -0,0 +1,30 @@ +backlight_dist = [ + 'e-module-backlight.edj', + 'module.desktop', +] + +backlight_src = [ + 'e_mod_main.c', + 'gadget/backlight.c', + 'gadget/mod.c' +] + +backlight_dir = join_paths(dir_module_e, 'backlight', module_arch) +if get_option('backlight') == true + config_h.set('USE_MODULE_BACKLIGHT', '1') + + install_data(backlight_dist, + install_dir: join_paths(dir_module_e, 'backlight') + ) + + module_files += join_paths(backlight_dir, 'backlight.so') + shared_module('backlight', + backlight_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: backlight_dir, + install: true + ) +endif + diff --git a/src/modules/battery/meson.build b/src/modules/battery/meson.build new file mode 100644 index 0000000000..4d138a099c --- /dev/null +++ b/src/modules/battery/meson.build @@ -0,0 +1,45 @@ +battery_dist = [ + 'e-module-battery.edj', + 'module.desktop', +] + +battery_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +if config_h.has('HAVE_EEZE') == true + battery_src += 'e_mod_udev.c' +elif host_machine.system().contains('bsd') == true + battery_src += 'e_mod_sysctl.c' +else + battery_src += 'e_mod_upower.c' +endif + +battery_dir = join_paths(dir_module_e, 'battery', module_arch) +if get_option('battery') == true + config_h.set('USE_MODULE_BATTERY', '1') + + install_data(battery_dist, + install_dir: join_paths(dir_module_e, 'battery') + ) + + module_files += join_paths(battery_dir, 'battery.so') + shared_module('battery', + battery_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: battery_dir, + install: true + ) + + executable('batget', + 'batget.c', + include_directories: include_directories(module_includes), + dependencies: [dep_eina, dep_ecore, dep_ecore_con, dep_ecore_file], + install_dir: battery_dir, + install: true + ) +endif diff --git a/src/modules/bluez4/meson.build b/src/modules/bluez4/meson.build new file mode 100644 index 0000000000..7c6e107ea5 --- /dev/null +++ b/src/modules/bluez4/meson.build @@ -0,0 +1,30 @@ +bluez4_dist = [ + 'e-module-bluez4.edj', + 'module.desktop', +] + +bluez4_src = [ + 'agent.c', + 'ebluez4.c', + 'e_mod_main.c' +] + +bluez4_dir = join_paths(dir_module_e, 'bluez4', module_arch) +if get_option('bluez4') == true + config_h.set('USE_MODULE_BLUEZ4', '1') + + install_data(bluez4_dist, + install_dir: join_paths(dir_module_e, 'bluez4') + ) + + module_files += join_paths(bluez4_dir, 'bluez4.so') + shared_module('bluez4', + bluez4_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: bluez4_dir, + install: true + ) +endif + diff --git a/src/modules/clock/meson.build b/src/modules/clock/meson.build new file mode 100644 index 0000000000..8fc7302442 --- /dev/null +++ b/src/modules/clock/meson.build @@ -0,0 +1,29 @@ +clock_dist = [ + 'e-module-clock.edj', + 'module.desktop', +] + +clock_src = [ + 'e_mod_config.c', + 'e_mod_main.c' +] + +clock_dir = join_paths(dir_module_e, 'clock', module_arch) +if get_option('clock') == true + config_h.set('USE_MODULE_CLOCK', '1') + + install_data(clock_dist, + install_dir: join_paths(dir_module_e, 'clock') + ) + + module_files += join_paths(clock_dir, 'clock.so') + shared_module('clock', + clock_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: clock_dir, + install: true + ) +endif + diff --git a/src/modules/conf/meson.build b/src/modules/conf/meson.build new file mode 100644 index 0000000000..75e02d4d92 --- /dev/null +++ b/src/modules/conf/meson.build @@ -0,0 +1,30 @@ +conf_dist = [ + 'e-module-conf.edj', + 'module.desktop', +] + +conf_src = [ + 'e_conf.c', + 'e_mod_config.c', + 'e_mod_main.c' +] + +conf_dir = join_paths(dir_module_e, 'conf', module_arch) +if get_option('conf') == true + config_h.set('USE_MODULE_CONF', '1') + + install_data(conf_dist, + install_dir: join_paths(dir_module_e, 'conf') + ) + + module_files += join_paths(conf_dir, 'conf.so') + shared_module('conf', + conf_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_dir, + install: true + ) +endif + diff --git a/src/modules/conf_applications/meson.build b/src/modules/conf_applications/meson.build new file mode 100644 index 0000000000..3975a93970 --- /dev/null +++ b/src/modules/conf_applications/meson.build @@ -0,0 +1,33 @@ +conf_applications_dist = [ + 'e-module-conf_applications.edj', + 'module.desktop', +] + +conf_applications_src = [ + 'e_int_config_apps.c', + 'e_int_config_apps_personal.c', + 'e_int_config_defapps.c', + 'e_int_config_deskenv.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_applications_dir = join_paths(dir_module_e, 'conf_applications', module_arch) +if get_option('conf-applications') == true + config_h.set('USE_MODULE_CONF_APPLICATIONS', '1') + + install_data(conf_applications_dist, + install_dir: join_paths(dir_module_e, 'conf_applications') + ) + + module_files += join_paths(conf_applications_dir, 'conf_applications.so') + shared_module('conf_applications', + conf_applications_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_applications_dir, + install: true + ) +endif + diff --git a/src/modules/conf_bindings/meson.build b/src/modules/conf_bindings/meson.build new file mode 100644 index 0000000000..c6507f68dc --- /dev/null +++ b/src/modules/conf_bindings/meson.build @@ -0,0 +1,33 @@ +conf_bindings_dist = [ + 'module.desktop', +] + +conf_bindings_src = [ + 'e_int_config_acpibindings.c', + 'e_int_config_edgebindings.c', + 'e_int_config_keybindings.c', + 'e_int_config_mousebindings.c', + 'e_int_config_signalbindings.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_bindings_dir = join_paths(dir_module_e, 'conf_bindings', module_arch) +if get_option('conf-bindings') == true + config_h.set('USE_MODULE_CONF_BINDINGS', '1') + + install_data(conf_bindings_dist, + install_dir: join_paths(dir_module_e, 'conf_bindings') + ) + + module_files += join_paths(conf_bindings_dir, 'conf_bindings.so') + shared_module('conf_bindings', + conf_bindings_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_bindings_dir, + install: true + ) +endif + diff --git a/src/modules/conf_dialogs/meson.build b/src/modules/conf_dialogs/meson.build new file mode 100644 index 0000000000..6ef8e8c3b3 --- /dev/null +++ b/src/modules/conf_dialogs/meson.build @@ -0,0 +1,31 @@ +conf_dialogs_dist = [ + 'e-module-conf_dialogs.edj', + 'module.desktop', +] + +conf_dialogs_src = [ + 'e_int_config_dialogs.c', + 'e_int_config_profiles.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_dialogs_dir = join_paths(dir_module_e, 'conf_dialogs', module_arch) +if get_option('conf-dialogs') == true + config_h.set('USE_MODULE_CONF_DIALOGS', '1') + + install_data(conf_dialogs_dist, + install_dir: join_paths(dir_module_e, 'conf_dialogs') + ) + + module_files += join_paths(conf_dialogs_dir, 'conf_dialogs.so') + shared_module('conf_dialogs', + conf_dialogs_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_dialogs_dir, + install: true + ) +endif + diff --git a/src/modules/conf_display/meson.build b/src/modules/conf_display/meson.build new file mode 100644 index 0000000000..d6d3dd47ea --- /dev/null +++ b/src/modules/conf_display/meson.build @@ -0,0 +1,34 @@ +conf_display_dist = [ + 'module.desktop', +] + +conf_display_src = [ + 'e_int_config_desk.c', + 'e_int_config_desklock.c', + 'e_int_config_desklock_fsel.c', + 'e_int_config_desks.c', + 'e_int_config_dpms.c', + 'e_int_config_screensaver.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_display_dir = join_paths(dir_module_e, 'conf_display', module_arch) +if get_option('conf-display') == true + config_h.set('USE_MODULE_CONF_DISPLAY', '1') + + install_data(conf_display_dist, + install_dir: join_paths(dir_module_e, 'conf_display') + ) + + module_files += join_paths(conf_display_dir, 'conf_display.so') + shared_module('conf_display', + conf_display_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_display_dir, + install: true + ) +endif + diff --git a/src/modules/conf_interaction/meson.build b/src/modules/conf_interaction/meson.build new file mode 100644 index 0000000000..f33026f356 --- /dev/null +++ b/src/modules/conf_interaction/meson.build @@ -0,0 +1,31 @@ +conf_interaction_dist = [ + 'e-module-conf_interaction.edj', + 'module.desktop', +] + +conf_interaction_src = [ + 'e_int_config_interaction.c', + 'e_int_config_mouse.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_interaction_dir = join_paths(dir_module_e, 'conf_interaction', module_arch) +if get_option('conf-interaction') == true + config_h.set('USE_MODULE_CONF_INTERACTION', '1') + + install_data(conf_interaction_dist, + install_dir: join_paths(dir_module_e, 'conf_interaction') + ) + + module_files += join_paths(conf_interaction_dir, 'conf_interaction.so') + shared_module('conf_interaction', + conf_interaction_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_interaction_dir, + install: true + ) +endif + diff --git a/src/modules/conf_intl/meson.build b/src/modules/conf_intl/meson.build new file mode 100644 index 0000000000..bffa6cbc90 --- /dev/null +++ b/src/modules/conf_intl/meson.build @@ -0,0 +1,31 @@ +conf_intl_dist = [ + 'module.desktop', +] + +conf_intl_src = [ + 'e_int_config_imc.c', + 'e_int_config_imc_import.c', + 'e_int_config_intl.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_intl_dir = join_paths(dir_module_e, 'conf_intl', module_arch) +if get_option('conf-intl') == true + config_h.set('USE_MODULE_CONF_INTL', '1') + + install_data(conf_intl_dist, + install_dir: join_paths(dir_module_e, 'conf_intl') + ) + + module_files += join_paths(conf_intl_dir, 'conf_intl.so') + shared_module('conf_intl', + conf_intl_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_intl_dir, + install: true + ) +endif + diff --git a/src/modules/conf_menus/meson.build b/src/modules/conf_menus/meson.build new file mode 100644 index 0000000000..d699b8a30c --- /dev/null +++ b/src/modules/conf_menus/meson.build @@ -0,0 +1,30 @@ +conf_menus_dist = [ + 'e-module-conf_menus.edj', + 'module.desktop', +] + +conf_menus_src = [ + 'e_int_config_menus.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_menus_dir = join_paths(dir_module_e, 'conf_menus', module_arch) +if get_option('conf-menus') == true + config_h.set('USE_MODULE_CONF_MENUS', '1') + + install_data(conf_menus_dist, + install_dir: join_paths(dir_module_e, 'conf_menus') + ) + + module_files += join_paths(conf_menus_dir, 'conf_menus.so') + shared_module('conf_menus', + conf_menus_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_menus_dir, + install: true + ) +endif + diff --git a/src/modules/conf_paths/meson.build b/src/modules/conf_paths/meson.build new file mode 100644 index 0000000000..0e62e776b0 --- /dev/null +++ b/src/modules/conf_paths/meson.build @@ -0,0 +1,31 @@ +conf_paths_dist = [ + 'e-module-conf_paths.edj', + 'module.desktop', +] + +conf_paths_src = [ + 'e_int_config_env.c', + 'e_int_config_paths.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_paths_dir = join_paths(dir_module_e, 'conf_paths', module_arch) +if get_option('conf-paths') == true + config_h.set('USE_MODULE_CONF_PATHS', '1') + + install_data(conf_paths_dist, + install_dir: join_paths(dir_module_e, 'conf_paths') + ) + + module_files += join_paths(conf_paths_dir, 'conf_paths.so') + shared_module('conf_paths', + conf_paths_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_paths_dir, + install: true + ) +endif + diff --git a/src/modules/conf_performance/meson.build b/src/modules/conf_performance/meson.build new file mode 100644 index 0000000000..85c122c3f7 --- /dev/null +++ b/src/modules/conf_performance/meson.build @@ -0,0 +1,31 @@ +conf_performance_dist = [ + 'e-module-conf_performance.edj', + 'module.desktop', +] + +conf_performance_src = [ + 'e_int_config_performance.c', + 'e_int_config_powermanagement.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_performance_dir = join_paths(dir_module_e, 'conf_performance', module_arch) +if get_option('conf-performance') == true + config_h.set('USE_MODULE_CONF_PERFORMANCE', '1') + + install_data(conf_performance_dist, + install_dir: join_paths(dir_module_e, 'conf_performance') + ) + + module_files += join_paths(conf_performance_dir, 'conf_performance.so') + shared_module('conf_performance', + conf_performance_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_performance_dir, + install: true + ) +endif + diff --git a/src/modules/conf_randr/meson.build b/src/modules/conf_randr/meson.build new file mode 100644 index 0000000000..2ce882dbad --- /dev/null +++ b/src/modules/conf_randr/meson.build @@ -0,0 +1,31 @@ +conf_randr_dist = [ + 'e-module-conf_randr.edj', + 'module.desktop', +] + +conf_randr_src = [ + 'e_int_config_randr2.c', + 'e_mod_main.c', + 'e_int_config_randr2.h', + 'e_mod_main.h', +] + +conf_randr_dir = join_paths(dir_module_e, 'conf_randr', module_arch) +if get_option('conf-randr') == true + config_h.set('USE_MODULE_CONF_RANDR', '1') + + install_data(conf_randr_dist, + install_dir: join_paths(dir_module_e, 'conf_randr') + ) + + module_files += join_paths(conf_randr_dir, 'conf_randr.so') + shared_module('conf_randr', + conf_randr_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_randr_dir, + install: true + ) +endif + diff --git a/src/modules/conf_shelves/meson.build b/src/modules/conf_shelves/meson.build new file mode 100644 index 0000000000..387aeec86f --- /dev/null +++ b/src/modules/conf_shelves/meson.build @@ -0,0 +1,31 @@ +conf_shelves_dist = [ + 'e-module-conf_shelves.edj', + 'module.desktop', +] + +conf_shelves_src = [ + 'e_int_config_shelf.c', + 'e_mod_main.c', + 'e_int_config_shelf.h', + 'e_mod_main.h', +] + +conf_shelves_dir = join_paths(dir_module_e, 'conf_shelves', module_arch) +if get_option('conf-shelves') == true + config_h.set('USE_MODULE_CONF_SHELVES', '1') + + install_data(conf_shelves_dist, + install_dir: join_paths(dir_module_e, 'conf_shelves') + ) + + module_files += join_paths(conf_shelves_dir, 'conf_shelves.so') + shared_module('conf_shelves', + conf_shelves_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_shelves_dir, + install: true + ) +endif + diff --git a/src/modules/conf_theme/meson.build b/src/modules/conf_theme/meson.build new file mode 100644 index 0000000000..28ff663c47 --- /dev/null +++ b/src/modules/conf_theme/meson.build @@ -0,0 +1,37 @@ +conf_theme_dist = [ + 'module.desktop', +] + +conf_theme_src = [ + 'e_int_config_borders.c', + 'e_int_config_color_classes.c', + 'e_int_config_fonts.c', + 'e_int_config_scale.c', + 'e_int_config_theme.c', + 'e_int_config_theme_import.c', + 'e_int_config_transitions.c', + 'e_int_config_wallpaper.c', + 'e_int_config_xsettings.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_theme_dir = join_paths(dir_module_e, 'conf_theme', module_arch) +if get_option('conf-theme') == true + config_h.set('USE_MODULE_CONF_THEME', '1') + + install_data(conf_theme_dist, + install_dir: join_paths(dir_module_e, 'conf_theme') + ) + + module_files += join_paths(conf_theme_dir, 'conf_theme.so') + shared_module('conf_theme', + conf_theme_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_theme_dir, + install: true + ) +endif + diff --git a/src/modules/conf_window_manipulation/meson.build b/src/modules/conf_window_manipulation/meson.build new file mode 100644 index 0000000000..e404b3c839 --- /dev/null +++ b/src/modules/conf_window_manipulation/meson.build @@ -0,0 +1,34 @@ +conf_window_manipulation_dist = [ + 'e-module-conf_winmanip.edj', + 'module.desktop', +] + +conf_window_manipulation_src = [ + 'e_int_config_clientlist.c', + 'e_int_config_focus.c', + 'e_int_config_window_display.c', + 'e_int_config_window_geometry.c', + 'e_int_config_window_process.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_window_manipulation_dir = join_paths(dir_module_e, 'conf_window_manipulation', module_arch) +if get_option('conf-window-manipulation') == true + config_h.set('USE_MODULE_CONF_WINDOW_MANIPULATION', '1') + + install_data(conf_window_manipulation_dist, + install_dir: join_paths(dir_module_e, 'conf_window_manipulation') + ) + + module_files += join_paths(conf_window_manipulation_dir, 'conf_window_manipulation.so') + shared_module('conf_window_manipulation', + conf_window_manipulation_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_window_manipulation_dir, + install: true + ) +endif + diff --git a/src/modules/conf_window_remembers/meson.build b/src/modules/conf_window_remembers/meson.build new file mode 100644 index 0000000000..ed4f1bc8db --- /dev/null +++ b/src/modules/conf_window_remembers/meson.build @@ -0,0 +1,30 @@ +conf_window_remembers_dist = [ + 'e-module-conf_window_remembers.edj', + 'module.desktop', +] + +conf_window_remembers_src = [ + 'e_int_config_remembers.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +conf_window_remembers_dir = join_paths(dir_module_e, 'conf_window_remembers', module_arch) +if get_option('conf-window-remembers') == true + config_h.set('USE_MODULE_CONF_WINDOW_REMEMBERS', '1') + + install_data(conf_window_remembers_dist, + install_dir: join_paths(dir_module_e, 'conf_window_remembers') + ) + + module_files += join_paths(conf_window_remembers_dir, 'conf_window_remembers.so') + shared_module('conf_window_remembers', + conf_window_remembers_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: conf_window_remembers_dir, + install: true + ) +endif + diff --git a/src/modules/connman/meson.build b/src/modules/connman/meson.build new file mode 100644 index 0000000000..7d1327a883 --- /dev/null +++ b/src/modules/connman/meson.build @@ -0,0 +1,33 @@ +connman_dist = [ + 'e-module-connman.edj', + 'module.desktop', +] + +connman_src = [ + 'agent.c', + 'e_connman.c', + 'e_mod_config.c', + 'e_mod_main.c', + 'E_Connman.h', + 'e_mod_main.h', +] + +connman_dir = join_paths(dir_module_e, 'connman', module_arch) +if get_option('connman') == true + config_h.set('USE_MODULE_CONNMAN', '1') + + install_data(connman_dist, + install_dir: join_paths(dir_module_e, 'connman') + ) + + module_files += join_paths(connman_dir, 'connman.so') + shared_module('connman', + connman_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: connman_dir, + install: true + ) +endif + diff --git a/src/modules/cpufreq/meson.build b/src/modules/cpufreq/meson.build new file mode 100644 index 0000000000..e69f255b0a --- /dev/null +++ b/src/modules/cpufreq/meson.build @@ -0,0 +1,40 @@ +cpufreq_dist = [ + 'e-module-cpufreq.edj', + 'module.desktop', +] + +cpufreq_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'freqset.c', + 'e_mod_main.h', +] + +cpufreq_dir = join_paths(dir_module_e, 'cpufreq', module_arch) +if get_option('cpufreq') == true + config_h.set('USE_MODULE_CPUFREQ', '1') + + install_data(cpufreq_dist, + install_dir: join_paths(dir_module_e, 'cpufreq') + ) + + module_files += join_paths(cpufreq_dir, 'cpufreq.so') + shared_module('cpufreq', + cpufreq_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: cpufreq_dir, + install: true + ) + + executable('freqset', + 'freqset.c', + c_args: suid_cflags, + link_args: suid_ldflags, + install_dir: cpufreq_dir, + install: true + ) + suid_exes += join_paths(cpufreq_dir, 'freqset') +endif + diff --git a/src/modules/everything/meson.build b/src/modules/everything/meson.build new file mode 100644 index 0000000000..15f8619c29 --- /dev/null +++ b/src/modules/everything/meson.build @@ -0,0 +1,70 @@ +everything_dist = [ + 'e-module-everything.edj', + 'e-module-everything-start.edj', + 'module.desktop', +] + +everything_src = [ + '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('everything') == true + config_h.set('USE_MODULE_EVERYTHING', '1') + + install_data(everything_dist, + install_dir: join_paths(dir_module_e, 'everything') + ) + + module_files += join_paths(everything_dir, 'everything.so') + shared_module('everything', + everything_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + 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 + diff --git a/src/modules/fileman/meson.build b/src/modules/fileman/meson.build new file mode 100644 index 0000000000..629d9527f2 --- /dev/null +++ b/src/modules/fileman/meson.build @@ -0,0 +1,36 @@ +fileman_dist = [ + 'e-module-fileman.edj', + 'module.desktop', +] + +fileman_src = [ + 'e_fwin.c', + 'e_fwin_nav.c', + 'e_int_config_mime.c', + 'e_int_config_mime_edit.c', + 'e_mod_config.c', + 'e_mod_dbus.c', + 'e_mod_main.c', + 'e_mod_menu.c', + 'e_mod_main.h', +] + +fileman_dir = join_paths(dir_module_e, 'fileman', module_arch) +if get_option('fileman') == true + config_h.set('USE_MODULE_FILEMAN', '1') + + install_data(fileman_dist, + install_dir: join_paths(dir_module_e, 'fileman') + ) + + module_files += join_paths(fileman_dir, 'fileman.so') + shared_module('fileman', + fileman_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: fileman_dir, + install: true + ) +endif + diff --git a/src/modules/fileman_opinfo/meson.build b/src/modules/fileman_opinfo/meson.build new file mode 100644 index 0000000000..b726b4f14b --- /dev/null +++ b/src/modules/fileman_opinfo/meson.build @@ -0,0 +1,28 @@ +fileman_opinfo_dist = [ + 'e-module-fileman_opinfo.edj', + 'module.desktop', +] + +fileman_opinfo_src = [ + 'e_mod_main.c', +] + +fileman_opinfo_dir = join_paths(dir_module_e, 'fileman_opinfo', module_arch) +if get_option('fileman-opinfo') == true + config_h.set('USE_MODULE_FILEMAN_OPINFO', '1') + + install_data(fileman_opinfo_dist, + install_dir: join_paths(dir_module_e, 'fileman_opinfo') + ) + + module_files += join_paths(fileman_opinfo_dir, 'fileman_opinfo.so') + shared_module('fileman_opinfo', + fileman_opinfo_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: fileman_opinfo_dir, + install: true + ) +endif + diff --git a/src/modules/gadman/meson.build b/src/modules/gadman/meson.build new file mode 100644 index 0000000000..d6e4d61da3 --- /dev/null +++ b/src/modules/gadman/meson.build @@ -0,0 +1,31 @@ +gadman_dist = [ + 'e-module-gadman.edj', + 'module.desktop', +] + +gadman_src = [ + 'e_mod_config.c', + 'e_mod_gadman.c', + 'e_mod_main.c', + 'e_mod_gadman.h', +] + +gadman_dir = join_paths(dir_module_e, 'gadman', module_arch) +if get_option('gadman') == true + config_h.set('USE_MODULE_GADMAN', '1') + + install_data(gadman_dist, + install_dir: join_paths(dir_module_e, 'gadman') + ) + + module_files += join_paths(gadman_dir, 'gadman.so') + shared_module('gadman', + gadman_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: gadman_dir, + install: true + ) +endif + diff --git a/src/modules/geolocation/meson.build b/src/modules/geolocation/meson.build new file mode 100644 index 0000000000..21c4132001 --- /dev/null +++ b/src/modules/geolocation/meson.build @@ -0,0 +1,42 @@ +geolocation_dist = [ + 'e-module-geolocation.edj', + 'module.desktop', +] + +geolocation_src = [ + 'e_mod_main.c' +] + +geolocation_dir = join_paths(dir_module_e, 'geolocation', module_arch) +if get_option('geolocation') == true + config_h.set('USE_MODULE_GEOLOCATION', '1') + + install_data(geolocation_dist, + install_dir: join_paths(dir_module_e, 'geolocation') + ) + + gen_geo = custom_target('geolocation_gen', + input: 'org.freedesktop.GeoClue2.xml', + command: [eldbus_codegen, '@INPUT@', '-O', '@OUTDIR@'], + output: [ + 'eldbus_geo_clue2_client.c', + 'eldbus_geo_clue2_client.h', + 'eldbus_geo_clue2_location.c', + 'eldbus_geo_clue2_location.h', + 'eldbus_geo_clue2_manager.c', + 'eldbus_geo_clue2_manager.h', + 'eldbus_utils.h' + ] + ) + + module_files += join_paths(geolocation_dir, 'geolocation.so') + shared_module('geolocation', + [geolocation_src, gen_geo], + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: geolocation_dir, + install: true + ) +endif + diff --git a/src/modules/ibar/meson.build b/src/modules/ibar/meson.build new file mode 100644 index 0000000000..f5bffbffec --- /dev/null +++ b/src/modules/ibar/meson.build @@ -0,0 +1,30 @@ +ibar_dist = [ + 'e-module-ibar.edj', + 'module.desktop', +] + +ibar_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +ibar_dir = join_paths(dir_module_e, 'ibar', module_arch) +if get_option('ibar') == true + config_h.set('USE_MODULE_IBAR', '1') + + install_data(ibar_dist, + install_dir: join_paths(dir_module_e, 'ibar') + ) + + module_files += join_paths(ibar_dir, 'ibar.so') + shared_module('ibar', + ibar_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: ibar_dir, + install: true + ) +endif + diff --git a/src/modules/ibox/meson.build b/src/modules/ibox/meson.build new file mode 100644 index 0000000000..0a9c40468e --- /dev/null +++ b/src/modules/ibox/meson.build @@ -0,0 +1,30 @@ +ibox_dist = [ + 'e-module-ibox.edj', + 'module.desktop', +] + +ibox_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +ibox_dir = join_paths(dir_module_e, 'ibox', module_arch) +if get_option('ibox') == true + config_h.set('USE_MODULE_IBOX', '1') + + install_data(ibox_dist, + install_dir: join_paths(dir_module_e, 'ibox') + ) + + module_files += join_paths(ibox_dir, 'ibox.so') + shared_module('ibox', + ibox_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: ibox_dir, + install: true + ) +endif + diff --git a/src/modules/lokker/meson.build b/src/modules/lokker/meson.build new file mode 100644 index 0000000000..c9acbfcc50 --- /dev/null +++ b/src/modules/lokker/meson.build @@ -0,0 +1,21 @@ +lokker_src = [ + 'e_mod_main.c', + 'lokker.c', + 'e_mod_main.h', +] + +lokker_dir = join_paths(dir_module_e, 'lokker', module_arch) +if get_option('lokker') == true + config_h.set('USE_MODULE_LOKKER', '1') + + module_files += join_paths(lokker_dir, 'lokker.so') + shared_module('lokker', + lokker_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: lokker_dir, + install: true + ) +endif + diff --git a/src/modules/luncher/meson.build b/src/modules/luncher/meson.build new file mode 100644 index 0000000000..62c89bc729 --- /dev/null +++ b/src/modules/luncher/meson.build @@ -0,0 +1,23 @@ +luncher_src = [ + 'bar.c', + 'config.c', + 'grid.c', + 'mod.c', + 'luncher.h', +] + +luncher_dir = join_paths(dir_module_e, 'luncher', module_arch) +if get_option('luncher') == true + config_h.set('USE_MODULE_LUNCHER', '1') + + module_files += join_paths(luncher_dir, 'luncher.so') + shared_module('luncher', + luncher_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: luncher_dir, + install: true + ) +endif + diff --git a/src/modules/mixer/meson.build b/src/modules/mixer/meson.build new file mode 100644 index 0000000000..e427701f06 --- /dev/null +++ b/src/modules/mixer/meson.build @@ -0,0 +1,73 @@ +mixer_dist = [ + 'e-module-mixer.edj', + 'module.desktop', +] + +mixer_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_config.h', + 'e_mod_main.h', + 'gadget/mixer.h', + 'gadget/mixer.c', + 'gadget/mod.c', +] + +mixer_lib = [ + 'lib/emix.c', + 'lib/emix.h' +] + +mixer_dir = join_paths(dir_module_e, 'mixer', module_arch) +if get_option('mixer') == true + config_h.set('USE_MODULE_MIXER', '1') + + dep_alsa = dependency('alsa', version: '>= 1.0.8', required: false) + config_h.set10('HAVE_ALSA', dep_alsa.found()) + dep_pulse = dependency('libpulse', required: false) + dep_pulse_simple = dependency('libpulse-simple', required: false) + config_h.set10('HAVE_PULSE', dep_pulse.found() and dep_pulse_simple.found()) + if config_h.has('HAVE_ALSA') == true + mixer_lib += ['lib/backends/alsa/alsa.c'] + endif + if config_h.has('HAVE_PULSE') == true + mixer_lib += [ + 'lib/backends/pulseaudio/pulse_ml.c', + 'lib/backends/pulseaudio/pulse.c' + ] + endif + if config_h.has('HAVE_PULSE') == false and config_h.has('HAVE_ALSA') == false + error('mixer support requested, but no backends found!') + endif + + install_data(mixer_dist, + install_dir: join_paths(dir_module_e, 'mixer') + ) + install_data('emixer.desktop', + install_dir: join_paths(dir_data, 'applications') + ) + install_data('emixer.png', + install_dir: join_paths(dir_data, 'pixmaps') + ) + + module_files += join_paths(mixer_dir, 'mixer.so') + shared_module('mixer', + mixer_src, mixer_lib, + include_directories: include_directories(module_includes, '.', 'lib'), + name_prefix: '', + dependencies: [module_deps, dep_alsa, dep_pulse, dep_pulse_simple], + install_dir: mixer_dir, + install: true + ) + + executable('emixer', + ['emixer.c', mixer_lib], + include_directories: include_directories(module_includes, '.', 'lib'), + dependencies: [ + dep_elementary, dep_alsa, dep_pulse, dep_pulse_simple + ], + c_args: '-DEMIXER_BUILD', + install_dir: dir_bin, + install: true + ) +endif diff --git a/src/modules/msgbus/meson.build b/src/modules/msgbus/meson.build new file mode 100644 index 0000000000..a2c52ed814 --- /dev/null +++ b/src/modules/msgbus/meson.build @@ -0,0 +1,26 @@ +msgbus_src = [ + 'e_mod_main.c', + 'msgbus_audit.c', + 'msgbus_desktop.c', + 'msgbus_lang.c', + 'msgbus_module.c', + 'msgbus_profile.c', + 'msgbus_window.c', + 'e_mod_main.h', +] + +msgbus_dir = join_paths(dir_module_e, 'msgbus', module_arch) +if get_option('msgbus') == true + config_h.set('USE_MODULE_MSGBUS', '1') + + module_files += join_paths(msgbus_dir, 'msgbus.so') + shared_module('msgbus', + msgbus_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: msgbus_dir, + install: true + ) +endif + diff --git a/src/modules/music-control/meson.build b/src/modules/music-control/meson.build new file mode 100644 index 0000000000..b62bac1423 --- /dev/null +++ b/src/modules/music-control/meson.build @@ -0,0 +1,34 @@ +music_control_src = [ + 'e_mod_main.c', + 'ui.c', + 'e_mod_main.h', + 'private.h', +] + +music_control_dir = join_paths(dir_module_e, 'music-control', module_arch) +if get_option('music-control') == true + config_h.set('USE_MODULE_MUSIC_CONTROL', '1') + + gen_music_control = custom_target('music_control_gen', + input: 'introspect.xml', + command: [eldbus_codegen, '@INPUT@', '-O', '@OUTDIR@'], + output: [ + 'eldbus_media_player2_player.c', + 'eldbus_mpris_media_player2.c', + 'eldbus_media_player2_player.h', + 'eldbus_mpris_media_player2.h', + 'eldbus_utils.h', + ], + ) + + module_files += join_paths(music_control_dir, 'music-control.so') + shared_module('music-control', + [music_control_src, gen_music_control], + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: music_control_dir, + install: true + ) +endif + diff --git a/src/modules/notification/meson.build b/src/modules/notification/meson.build new file mode 100644 index 0000000000..75f3ee37ab --- /dev/null +++ b/src/modules/notification/meson.build @@ -0,0 +1,22 @@ +notification_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_popup.c', + 'e_mod_main.h', +] + +notification_dir = join_paths(dir_module_e, 'notification', module_arch) +if get_option('notification') == true + config_h.set('USE_MODULE_NOTIFICATION', '1') + + module_files += join_paths(notification_dir, 'notification.so') + shared_module('notification', + notification_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: notification_dir, + install: true + ) +endif + diff --git a/src/modules/packagekit/meson.build b/src/modules/packagekit/meson.build new file mode 100644 index 0000000000..2fdb959887 --- /dev/null +++ b/src/modules/packagekit/meson.build @@ -0,0 +1,24 @@ +packagekit_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_packagekit.c', + 'e_mod_config.h', + 'e_mod_main.h', + 'e_mod_packagekit.h', +] + +packagekit_dir = join_paths(dir_module_e, 'packagekit', module_arch) +if get_option('packagekit') == true + config_h.set('USE_MODULE_PACKAGEKIT', '1') + + module_files += join_paths(packagekit_dir, 'packagekit.so') + shared_module('packagekit', + packagekit_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: packagekit_dir, + install: true + ) +endif + diff --git a/src/modules/pager/meson.build b/src/modules/pager/meson.build new file mode 100644 index 0000000000..93a5921dee --- /dev/null +++ b/src/modules/pager/meson.build @@ -0,0 +1,25 @@ +pager_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_main.h', + 'gadget/pager.h', + 'gadget/pager.c', + 'gadget/mod.c', + 'gadget/config.c' +] + +pager_dir = join_paths(dir_module_e, 'pager', module_arch) +if get_option('pager') == true + config_h.set('USE_MODULE_PAGER', '1') + + module_files += join_paths(pager_dir, 'pager.so') + shared_module('pager', + pager_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: pager_dir, + install: true + ) +endif + diff --git a/src/modules/pager_plain/meson.build b/src/modules/pager_plain/meson.build new file mode 100644 index 0000000000..0475791b1c --- /dev/null +++ b/src/modules/pager_plain/meson.build @@ -0,0 +1,21 @@ +pager_plain_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +pager_plain_dir = join_paths(dir_module_e, 'pager_plain', module_arch) +if get_option('pager-plain') == true + config_h.set('USE_MODULE_PAGER_PLAIN', '1') + + module_files += join_paths(pager_plain_dir, 'pager_plain.so') + shared_module('pager_plain', + pager_plain_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: pager_plain_dir, + install: true + ) +endif + diff --git a/src/modules/policy_mobile/meson.build b/src/modules/policy_mobile/meson.build new file mode 100644 index 0000000000..34b15ea5ad --- /dev/null +++ b/src/modules/policy_mobile/meson.build @@ -0,0 +1,22 @@ +policy_mobile_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_softkey.c', + 'e_mod_main.h', +] + +policy_mobile_dir = join_paths(dir_module_e, 'policy_mobile', module_arch) +if get_option('policy-mobile') == true + config_h.set('USE_MODULE_POLICY_MOBILE', '1') + + module_files += join_paths(policy_mobile_dir, 'policy_mobile.so') + shared_module('policy_mobile', + policy_mobile_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: policy_mobile_dir, + install: true + ) +endif + diff --git a/src/modules/quickaccess/meson.build b/src/modules/quickaccess/meson.build new file mode 100644 index 0000000000..fcda28f4b6 --- /dev/null +++ b/src/modules/quickaccess/meson.build @@ -0,0 +1,24 @@ +quickaccess_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_quickaccess.c', + 'e_quickaccess_bindings.c', + 'e_quickaccess_db.c', + 'e_mod_main.h', +] + +quickaccess_dir = join_paths(dir_module_e, 'quickaccess', module_arch) +if get_option('quickaccess') == true + config_h.set('USE_MODULE_QUICKACCESS', '1') + + module_files += join_paths(quickaccess_dir, 'quickaccess.so') + shared_module('quickaccess', + quickaccess_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: quickaccess_dir, + install: true + ) +endif + diff --git a/src/modules/shot/meson.build b/src/modules/shot/meson.build new file mode 100644 index 0000000000..ba2b0d1650 --- /dev/null +++ b/src/modules/shot/meson.build @@ -0,0 +1,19 @@ +shot_src = [ + 'e_mod_main.c', +] + +shot_dir = join_paths(dir_module_e, 'shot', module_arch) +if get_option('shot') == true + config_h.set('USE_MODULE_SHOT', '1') + + module_files += join_paths(shot_dir, 'shot.so') + shared_module('shot', + shot_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: shot_dir, + install: true + ) +endif + diff --git a/src/modules/start/meson.build b/src/modules/start/meson.build new file mode 100644 index 0000000000..57eab69f81 --- /dev/null +++ b/src/modules/start/meson.build @@ -0,0 +1,20 @@ +start_src = [ + 'e_mod_main.c', + 'start.c', +] + +start_dir = join_paths(dir_module_e, 'start', module_arch) +if get_option('start') == true + config_h.set('USE_MODULE_START', '1') + + module_files += join_paths(start_dir, 'start.so') + shared_module('start', + start_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: start_dir, + install: true + ) +endif + diff --git a/src/modules/syscon/meson.build b/src/modules/syscon/meson.build new file mode 100644 index 0000000000..b21ed37ec6 --- /dev/null +++ b/src/modules/syscon/meson.build @@ -0,0 +1,23 @@ +syscon_src = [ + 'e_int_config_syscon.c', + 'e_mod_main.c', + 'e_syscon.c', + 'e_syscon_gadget.c', + 'e_mod_main.h', +] + +syscon_dir = join_paths(dir_module_e, 'syscon', module_arch) +if get_option('syscon') == true + config_h.set('USE_MODULE_SYSCON', '1') + + module_files += join_paths(syscon_dir, 'syscon.so') + shared_module('syscon', + syscon_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: syscon_dir, + install: true + ) +endif + diff --git a/src/modules/sysinfo/meson.build b/src/modules/sysinfo/meson.build new file mode 100644 index 0000000000..0a349f8071 --- /dev/null +++ b/src/modules/sysinfo/meson.build @@ -0,0 +1,72 @@ +sysinfo_src = [ + 'mod.c', + 'sysinfo.c', + 'sysinfo.h', + 'batman/batman.h', + 'batman/batman.c', + 'batman/batman_fallback.c', + 'batman/batman_config.c', + 'thermal/thermal.h', + 'thermal/thermal.c', + 'thermal/thermal_config.c', + 'thermal/thermal_fallback.c', + 'cpuclock/cpuclock.h', + 'cpuclock/cpuclock.c', + 'cpuclock/cpuclock_config.c', + 'cpumonitor/cpumonitor.h', + 'cpumonitor/cpumonitor.c', + 'cpumonitor/cpumonitor_config.c', + 'cpumonitor/cpumonitor_proc.c', + 'memusage/memusage.h', + 'memusage/memusage.c', + 'memusage/memusage_config.c', + 'memusage/memusage_proc.c', + 'netstatus/netstatus.h', + 'netstatus/netstatus.c', + 'netstatus/netstatus_config.c', + 'netstatus/netstatus_proc.c', +] + +if config_h.has('HAVE_EEZE') == true + sysinfo_src += ['batman/batman_udev.c', 'thermal/thermal_udev.c'] +elif host_machine.system().contains('bsd') == true + sysinfo_src += ['batman/batman_sysctl.c', + 'thermal/thermal_sysctl.c', + 'cpuclock/cpuclock_sysctl.c', + 'netstatus/netstatus_sysctl.c', + 'cpumonitor/cpumonitor_sysctl.c', + 'memusage/memusage_sysctl.c' + ] +else + sysinfo_src += ['batman/batman_upower.c', + 'thermal/thermal_sysctl.c', + 'cpuclock/cpuclock_sysctl.c' + ] +endif + +sysinfo_dir = join_paths(dir_module_e, 'sysinfo', module_arch) +if get_option('sysinfo') == true + config_h.set('USE_MODULE_SYSINFO', '1') + + module_files += join_paths(sysinfo_dir, 'sysinfo.so') + shared_module('sysinfo', + sysinfo_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: sysinfo_dir, + install: true + ) + + executable('cpuclock_sysfs', + 'cpuclock/cpuclock_sysfs.c', + include_directories: include_directories(module_includes), + dependencies: dep_crypt, + c_args: suid_cflags, + link_args: suid_ldflags, + install_dir: join_paths(dir_module_e, 'sysinfo'), + install: true + ) + suid_exes == join_paths(sysinfo_dir, 'cpuclock_sysfs') +endif + diff --git a/src/modules/systray/meson.build b/src/modules/systray/meson.build new file mode 100644 index 0000000000..224598108d --- /dev/null +++ b/src/modules/systray/meson.build @@ -0,0 +1,24 @@ +systray_src = [ + 'e_mod_main.c', + 'e_mod_notifier_host.c', + 'e_mod_notifier_host_dbus.c', + 'e_mod_notifier_watcher.c', + 'e_mod_main.h', + 'e_mod_notifier_host_private.h', +] + +systray_dir = join_paths(dir_module_e, 'systray', module_arch) +if get_option('systray') == true + config_h.set('USE_MODULE_SYSTRAY', '1') + + module_files += join_paths(systray_dir, 'systray.so') + shared_module('systray', + systray_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: systray_dir, + install: true + ) +endif + diff --git a/src/modules/tasks/meson.build b/src/modules/tasks/meson.build new file mode 100644 index 0000000000..81fd90074d --- /dev/null +++ b/src/modules/tasks/meson.build @@ -0,0 +1,21 @@ +tasks_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_main.h', +] + +tasks_dir = join_paths(dir_module_e, 'tasks', module_arch) +if get_option('tasks') == true + config_h.set('USE_MODULE_TASKS', '1') + + module_files += join_paths(tasks_dir, 'tasks.so') + shared_module('tasks', + tasks_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: tasks_dir, + install: true + ) +endif + diff --git a/src/modules/teamwork/meson.build b/src/modules/teamwork/meson.build new file mode 100644 index 0000000000..d031447fc8 --- /dev/null +++ b/src/modules/teamwork/meson.build @@ -0,0 +1,35 @@ +teamwork_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_tw.c', + 'e_mod_main.h', +] + +if config_h.has('HAVE_WAYLAND') == true + teamwork_src += [ + 'wl.c', + 'wl_teamwork.c', + 'wl_teamwork.h' + ] +endif +if config_h.has('HAVE_WAYLAND_ONLY') == false + teamwork_src += [ + 'x11.c' + ] +endif + +teamwork_dir = join_paths(dir_module_e, 'teamwork', module_arch) +if get_option('teamwork') == true + config_h.set('USE_MODULE_TEAMWORK', '1') + + module_files += join_paths(teamwork_dir, 'teamwork.so') + shared_module('teamwork', + teamwork_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: teamwork_dir, + install: true + ) +endif + diff --git a/src/modules/temperature/meson.build b/src/modules/temperature/meson.build new file mode 100644 index 0000000000..d90d881d59 --- /dev/null +++ b/src/modules/temperature/meson.build @@ -0,0 +1,23 @@ +temperature_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_tempget.c', + 'e_mod_udev.c', + 'e_mod_main.h', +] + +temperature_dir = join_paths(dir_module_e, 'temperature', module_arch) +if get_option('temperature') == true + config_h.set('USE_MODULE_TEMPERATURE', '1') + + module_files += join_paths(temperature_dir, 'temperature.so') + shared_module('temperature', + temperature_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: temperature_dir, + install: true + ) +endif + diff --git a/src/modules/tiling/meson.build b/src/modules/tiling/meson.build new file mode 100644 index 0000000000..dd0a66f141 --- /dev/null +++ b/src/modules/tiling/meson.build @@ -0,0 +1,23 @@ +tiling_src = [ + 'e_mod_config.c', + 'e_mod_tiling.c', + 'window_tree.c', + 'e_mod_tiling.h', + 'window_tree.h', +] + +tiling_dir = join_paths(dir_module_e, 'tiling', module_arch) +if get_option('tiling') == true + config_h.set('USE_MODULE_TILING', '1') + + module_files += join_paths(tiling_dir, 'tiling.so') + shared_module('tiling', + tiling_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: tiling_dir, + install: true + ) +endif + diff --git a/src/modules/time/meson.build b/src/modules/time/meson.build new file mode 100644 index 0000000000..97ee6f34ef --- /dev/null +++ b/src/modules/time/meson.build @@ -0,0 +1,23 @@ +time_src = [ + 'clock.c', + 'config.c', + 'mod.c', + 'time.c', + 'clock.h', +] + +time_dir = join_paths(dir_module_e, 'time', module_arch) +if get_option('time') == true + config_h.set('USE_MODULE_TIME', '1') + + module_files += join_paths(time_dir, 'time.so') + shared_module('time', + time_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: time_dir, + install: true + ) +endif + diff --git a/src/modules/winlist/meson.build b/src/modules/winlist/meson.build new file mode 100644 index 0000000000..82d68274d6 --- /dev/null +++ b/src/modules/winlist/meson.build @@ -0,0 +1,23 @@ +winlist_src = [ + 'e_int_config_winlist.c', + 'e_mod_main.c', + 'e_winlist.c', + 'e_mod_main.h', + 'e_winlist.h', +] + +winlist_dir = join_paths(dir_module_e, 'winlist', module_arch) +if get_option('winlist') == true + config_h.set('USE_MODULE_WINLIST', '1') + + module_files += join_paths(winlist_dir, 'winlist.so') + shared_module('winlist', + winlist_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: winlist_dir, + install: true + ) +endif + diff --git a/src/modules/wireless/meson.build b/src/modules/wireless/meson.build new file mode 100644 index 0000000000..7b3df0ed56 --- /dev/null +++ b/src/modules/wireless/meson.build @@ -0,0 +1,22 @@ +wireless_src = [ + 'connman.c', + 'mod.c', + 'wireless.c', + 'wireless.h', +] + +wireless_dir = join_paths(dir_module_e, 'wireless', module_arch) +if get_option('wireless') == true + config_h.set('USE_MODULE_WIRELESS', '1') + + module_files += join_paths(wireless_dir, 'wireless.so') + shared_module('wireless', + wireless_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wireless_dir, + install: true + ) +endif + diff --git a/src/modules/wizard/meson.build b/src/modules/wizard/meson.build new file mode 100644 index 0000000000..2ca9d038ac --- /dev/null +++ b/src/modules/wizard/meson.build @@ -0,0 +1,67 @@ +wizard_dist = [ + 'data/def-ibar.txt', + 'data/desktop/home.desktop', + 'data/desktop/root.desktop', + 'data/desktop/tmp.desktop' +] + +wizard_src = [ + 'e_mod_main.c', + 'e_wizard.c', + 'e_wizard.h', +] + +wizard_mods = [ + 'page_000', + 'page_010', + 'page_011', + 'page_020', + 'page_030', + 'page_040', + 'page_050', + 'page_060', + 'page_065', + 'page_070', + 'page_080', + 'page_090', + 'page_100', + 'page_110', + 'page_120', + 'page_130', + 'page_150', + 'page_160', + 'page_170', + 'page_180', + 'page_200', +] + +wizard_dir = join_paths(dir_module_e, 'wizard', module_arch) +if get_option('wizard') == true + config_h.set('USE_MODULE_WIZARD', '1') + + install_data(wizard_dist, + install_dir: join_paths(dir_module_e, 'wizard') + ) + + module_files += join_paths(wizard_dir, 'wizard.so') + shared_module('wizard', + wizard_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wizard_dir, + install: true + ) + + foreach wizard_mod: wizard_mods + shared_module(wizard_mod, + '@0@.c'.format(wizard_mod), + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wizard_dir, + install: true + ) + endforeach +endif + diff --git a/src/modules/wl_buffer/meson.build b/src/modules/wl_buffer/meson.build new file mode 100644 index 0000000000..b301b57eb0 --- /dev/null +++ b/src/modules/wl_buffer/meson.build @@ -0,0 +1,19 @@ +wl_buffer_src = [ + 'e_mod_main.c', +] + +wl_buffer_dir = join_paths(dir_module_e, 'wl_buffer', module_arch) +if get_option('wl-buffer') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_BUFFER', '1') + + module_files += join_paths(wl_buffer_dir, 'wl_buffer.so') + shared_module('wl_buffer', + wl_buffer_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_buffer_dir, + install: true + ) +endif + diff --git a/src/modules/wl_desktop_shell/meson.build b/src/modules/wl_desktop_shell/meson.build new file mode 100644 index 0000000000..255c92adaf --- /dev/null +++ b/src/modules/wl_desktop_shell/meson.build @@ -0,0 +1,35 @@ +wl_desktop_shell_src = [ + 'e_mod_input_panel.c', + 'e_mod_main.c', + 'wl_shell.c', + 'xdg5.c', + 'xdg6.c', + 'e_mod_main.h', +] + +wl_desktop_shell_dir = join_paths(dir_module_e, 'wl_desktop_shell', module_arch) +if get_option('wl-desktop-shell') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_DESKTOP_SHELL', '1') + + protos = [ + '@0@/unstable/xdg-shell/xdg-shell-unstable-v5.xml'.format(dir_wayland_protocols), + '@0@/unstable/xdg-shell/xdg-shell-unstable-v6.xml'.format(dir_wayland_protocols), + '@0@/unstable/input-method/input-method-unstable-v1.xml'.format(dir_wayland_protocols), + ] + + foreach proto: protos + wl_desktop_shell_src += gen_scanner_server.process(proto) + wl_desktop_shell_src += gen_scanner_impl.process(proto) + endforeach + + module_files += join_paths(wl_desktop_shell_dir, 'wl_desktop_shell.so') + shared_module('wl_desktop_shell', + wl_desktop_shell_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_desktop_shell_dir, + install: true + ) +endif + diff --git a/src/modules/wl_drm/meson.build b/src/modules/wl_drm/meson.build new file mode 100644 index 0000000000..f1db1fec67 --- /dev/null +++ b/src/modules/wl_drm/meson.build @@ -0,0 +1,19 @@ +wl_drm_src = [ + 'e_mod_main.c', +] + +wl_drm_dir = join_paths(dir_module_e, 'wl_drm', module_arch) +if get_option('wl-drm') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_DRM', '1') + + module_files += join_paths(wl_drm_dir, 'wl_drm.so') + shared_module('wl_drm', + wl_drm_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_drm_dir, + install: true + ) +endif + diff --git a/src/modules/wl_fb/meson.build b/src/modules/wl_fb/meson.build new file mode 100644 index 0000000000..4406e85f4a --- /dev/null +++ b/src/modules/wl_fb/meson.build @@ -0,0 +1,19 @@ +wl_fb_src = [ + 'e_mod_main.c', +] + +wl_fb_dir = join_paths(dir_module_e, 'wl_fb', module_arch) +if get_option('wl-fb') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_FB', '1') + + module_files += join_paths(wl_fb_dir, 'wl_fb.so') + shared_module('wl_fb', + wl_fb_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_fb_dir, + install: true + ) +endif + diff --git a/src/modules/wl_text_input/meson.build b/src/modules/wl_text_input/meson.build new file mode 100644 index 0000000000..7178bf5771 --- /dev/null +++ b/src/modules/wl_text_input/meson.build @@ -0,0 +1,30 @@ +wl_text_input_src = [ + 'e_mod_main.c', +] + + +wl_text_input_dir = join_paths(dir_module_e, 'wl_text_input', module_arch) +if get_option('wl-text-input') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_TEXT_INPUT', '1') + + protos = [ + '@0@/unstable/input-method/input-method-unstable-v1.xml'.format(dir_wayland_protocols), + '@0@/unstable/text-input/text-input-unstable-v1.xml'.format(dir_wayland_protocols), + ] + + foreach proto: protos + wl_text_input_src += gen_scanner_server.process(proto) + wl_text_input_src += gen_scanner_impl.process(proto) + endforeach + + module_files += join_paths(wl_text_input_dir, 'wl_text_input.so') + shared_module('wl_text_input', + wl_text_input_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_text_input_dir, + install: true + ) +endif + diff --git a/src/modules/wl_weekeyboard/meson.build b/src/modules/wl_weekeyboard/meson.build new file mode 100644 index 0000000000..032f8d0cf6 --- /dev/null +++ b/src/modules/wl_weekeyboard/meson.build @@ -0,0 +1,42 @@ +wl_weekeyboard_dist = [ + 'themes/default/default_600.edj', + 'themes/default/default_720.edj', + 'themes/default/default_1080.edj' +] + +wl_weekeyboard_src = [ + 'e_mod_main.c', + 'wkb-log.c', + 'wkb-log.h', +] + +wl_weekeyboard_dir = join_paths(dir_module_e, 'wl_weekeyboard', module_arch) +if get_option('wl-weekeyboard') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_WEEKEYBOARD', '1') + + protos = [ + '@0@/unstable/input-method/input-method-unstable-v1.xml'.format(dir_wayland_protocols), + '@0@/unstable/text-input/text-input-unstable-v1.xml'.format(dir_wayland_protocols), + ] + + foreach proto: protos + wl_weekeyboard_src += gen_scanner_server.process(proto) + wl_weekeyboard_src += gen_scanner_client.process(proto) + wl_weekeyboard_src += gen_scanner_impl.process(proto) + endforeach + + install_data(wl_weekeyboard_dist, + install_dir: join_paths(dir_module_e, 'wl_weekeyboard') + ) + + module_files += join_paths(wl_weekeyboard_dir, 'wl_weekeyboard.so') + shared_module('wl_weekeyboard', + wl_weekeyboard_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_weekeyboard_dir, + install: true + ) +endif + diff --git a/src/modules/wl_wl/meson.build b/src/modules/wl_wl/meson.build new file mode 100644 index 0000000000..e5b2a3a21a --- /dev/null +++ b/src/modules/wl_wl/meson.build @@ -0,0 +1,19 @@ +wl_wl_src = [ + 'e_mod_main.c', +] + +wl_wl_dir = join_paths(dir_module_e, 'wl_wl', module_arch) +if get_option('wl-wl') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_WL', '1') + + module_files += join_paths(wl_wl_dir, 'wl_wl.so') + shared_module('wl_wl', + wl_wl_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_wl_dir, + install: true + ) +endif + diff --git a/src/modules/wl_x11/meson.build b/src/modules/wl_x11/meson.build new file mode 100644 index 0000000000..812f8880b2 --- /dev/null +++ b/src/modules/wl_x11/meson.build @@ -0,0 +1,19 @@ +wl_x11_src = [ + 'e_mod_main.c', +] + +wl_x11_dir = join_paths(dir_module_e, 'wl_x11', module_arch) +if get_option('wl-x11') == true and get_option('wayland') == true + config_h.set('USE_MODULE_WL_X11', '1') + + module_files += join_paths(wl_x11_dir, 'wl_x11.so') + shared_module('wl_x11', + wl_x11_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: wl_x11_dir, + install: true + ) +endif + diff --git a/src/modules/xkbswitch/meson.build b/src/modules/xkbswitch/meson.build new file mode 100644 index 0000000000..ac682c50b1 --- /dev/null +++ b/src/modules/xkbswitch/meson.build @@ -0,0 +1,26 @@ +xkbswitch_src = [ + 'e_mod_config.c', + 'e_mod_main.c', + 'e_mod_parse.c', + 'e_mod_main.h', + 'e_mod_parse.h', + 'gadget/xkbswitch.h', + 'gadget/xkbswitch.c', + 'gadget/mod.c' +] + +xkbswitch_dir = join_paths(dir_module_e, 'xkbswitch', module_arch) +if get_option('xkbswitch') == true + config_h.set('USE_MODULE_XKBSWITCH', '1') + + module_files += join_paths(xkbswitch_dir, 'xkbswitch.so') + shared_module('xkbswitch', + xkbswitch_src, + include_directories: include_directories(module_includes), + name_prefix: '', + dependencies: module_deps, + install_dir: xkbswitch_dir, + install: true + ) +endif + diff --git a/src/modules/xwayland/meson.build b/src/modules/xwayland/meson.build new file mode 100644 index 0000000000..3a2512b488 --- /dev/null +++ b/src/modules/xwayland/meson.build @@ -0,0 +1,22 @@ +xwayland_src = [ + 'dnd.c', + 'e_mod_main.c', +] + +xwayland_dir = join_paths(dir_module_e, 'xwayland', module_arch) +if get_option('xwayland') == true and get_option('wayland') == true + config_h.set('USE_MODULE_XWAYLAND', '1') + + xwayland = find_program('Xwayland') + module_files += join_paths(xwayland_dir, 'xwayland.so') + shared_module('xwayland', + xwayland_src, + include_directories: include_directories(module_includes), + c_args: '-DXWAYLAND_BIN="@0@"'.format(xwayland.path()), + name_prefix: '', + dependencies: module_deps, + install_dir: xwayland_dir, + install: true + ) +endif + |