aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/battery/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/battery/meson.build')
-rw-r--r--src/modules/battery/meson.build44
1 files changed, 12 insertions, 32 deletions
diff --git a/src/modules/battery/meson.build b/src/modules/battery/meson.build
index 4d138a099..b4af5acf7 100644
--- a/src/modules/battery/meson.build
+++ b/src/modules/battery/meson.build
@@ -1,8 +1,3 @@
-battery_dist = [
- 'e-module-battery.edj',
- 'module.desktop',
-]
-
battery_src = [
'e_mod_config.c',
'e_mod_main.c',
@@ -10,36 +5,21 @@ battery_src = [
]
if config_h.has('HAVE_EEZE') == true
- battery_src += 'e_mod_udev.c'
+ battery_src += 'e_mod_udev.c'
elif host_machine.system().contains('bsd') == true
- battery_src += 'e_mod_sysctl.c'
+ battery_src += 'e_mod_sysctl.c'
else
- battery_src += 'e_mod_upower.c'
+ 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 += [battery_src, 'e-module-battery.edj']
- 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
- )
+battery_dir = join_paths(dir_module_e, 'battery', module_arch)
- 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
+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
+)