aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/sysinfo/meson.build
blob: c5f8235811fd30b0052d81e74d2d167096f946f8 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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

module += [sysinfo_src, 'e-module-sysinfo.edj']

sysinfo_dir = join_paths(dir_module_e, 'sysinfo', module_arch)

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')