aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/battery/meson.build
blob: b4af5acf766f9b4e0be94232534cb3a1638ffb0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
)