1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017 Intel Corporation 3 4if is_windows 5 build = false 6 reason = 'not supported on Windows' 7 subdir_done() 8endif 9 10if not is_linux 11 build = false 12 reason = 'only supported on Linux' 13endif 14sources = files( 15 'guest_channel.c', 16 'power_acpi_cpufreq.c', 17 'power_common.c', 18 'power_cppc_cpufreq.c', 19 'power_kvm_vm.c', 20 'power_pstate_cpufreq.c', 21 'rte_power.c', 22 'rte_power_empty_poll.c', 23 'rte_power_pmd_mgmt.c', 24) 25headers = files( 26 'rte_power.h', 27 'rte_power_empty_poll.h', 28 'rte_power_pmd_mgmt.h', 29 'rte_power_guest_channel.h', 30) 31if cc.has_argument('-Wno-cast-qual') 32 cflags += '-Wno-cast-qual' 33endif 34deps += ['timer', 'ethdev'] 35