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