forked from enlightenment/enlightenment
26 lines
607 B
Meson
26 lines
607 B
Meson
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
|
|
|
|
module += [battery_src, 'e-module-battery.edj']
|
|
|
|
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
|
|
)
|