aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/cpufreq/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/cpufreq/meson.build')
-rw-r--r--src/modules/cpufreq/meson.build36
1 files changed, 10 insertions, 26 deletions
diff --git a/src/modules/cpufreq/meson.build b/src/modules/cpufreq/meson.build
index e69f255..23ddb28 100644
--- a/src/modules/cpufreq/meson.build
+++ b/src/modules/cpufreq/meson.build
@@ -10,31 +10,15 @@ cpufreq_src = [
'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 += [cpufreq_src, 'e-module-cpufreq.edj']
- 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
+cpufreq_dir = join_paths(dir_module_e, 'cpufreq', module_arch)
+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')