xref: /dpdk/lib/power/meson.build (revision b462f2737eb08b07b84da4204fbd1c9b9ba00b2d)
199a2dd95SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
299a2dd95SBruce Richardson# Copyright(c) 2017 Intel Corporation
399a2dd95SBruce Richardson
4b1094939SBruce Richardsonif is_windows
5b1094939SBruce Richardson    build = false
6b1094939SBruce Richardson    reason = 'not supported on Windows'
7b1094939SBruce Richardson    subdir_done()
8b1094939SBruce Richardsonendif
9b1094939SBruce Richardson
1099a2dd95SBruce Richardsonif not is_linux
1199a2dd95SBruce Richardson    build = false
1299a2dd95SBruce Richardson    reason = 'only supported on Linux'
1399a2dd95SBruce Richardsonendif
1499a2dd95SBruce Richardsonsources = files(
1599a2dd95SBruce Richardson        'power_common.c',
16f30a1bbdSSivaprasad Tummala        'rte_power_cpufreq.c',
1799a2dd95SBruce Richardson        'rte_power_pmd_mgmt.c',
18*dd6fd75bSHuisong Li        'rte_power_qos.c',
19*dd6fd75bSHuisong Li        'rte_power_uncore.c',
2099a2dd95SBruce Richardson)
2199a2dd95SBruce Richardsonheaders = files(
226f987b59SSivaprasad Tummala        'power_cpufreq.h',
23ebe99d35SSivaprasad Tummala        'power_uncore_ops.h',
24f30a1bbdSSivaprasad Tummala        'rte_power_cpufreq.h',
25ac1edcb6SSivaprasad Tummala        'rte_power_pmd_mgmt.h',
26*dd6fd75bSHuisong Li        'rte_power_qos.h',
27ac1edcb6SSivaprasad Tummala        'rte_power_uncore.h',
2899a2dd95SBruce Richardson)
2974efd38bSStephen Hemminger
3099a2dd95SBruce Richardsondeps += ['timer', 'ethdev']
31