meson: Improve NVMM CUDA detection
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 2 Dec 2024 11:42:00 +0000 (17:12 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 16 Dec 2024 14:47:23 +0000 (14:47 +0000)
commit0c17efafa3594f8008ee15dd503a073e12ce48a7
tree51a4e2a040cb2aaacd4eee3ae10af41ed87ae4bf
parent8e0f0c5ae35ddef7eea69f15715587beb73a6b23
meson: Improve NVMM CUDA detection

1. Add some comments explaining what headers and libs are expected on
   what systems
2. Only look in default incdirs if no incdir is specified
3. Require libnvbufsurface.so on Jetson when cuda-nvmm=enabled
4. Require libatomic on Jetson when cuda-nvmm=enabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8021>
subprojects/gst-plugins-bad/gst-libs/gst/cuda/meson.build