gpu/cuda: introduce CUDA driver
[dpdk.git] / drivers / gpu / cuda / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (c) 2021 NVIDIA Corporation & Affiliates
3
4 if not is_linux
5         build = false
6         reason = 'only supported on Linux'
7         subdir_done()
8 endif
9 if not cc.has_header('cuda.h')
10         build = false
11         reason = 'missing dependency, "cuda.h"'
12         subdir_done()
13 endif
14 if not cc.has_header('cudaTypedefs.h')
15         build = false
16         reason = 'missing dependency, "cudaTypedefs.h"'
17         subdir_done()
18 endif
19
20 deps += ['gpudev', 'pci', 'bus_pci']
21 sources = files('cuda.c')