aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/cpufreq/meson.build
blob: e69f255b0ab1443427556c0d6ab6164dce211e6a (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
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