* [FFmpeg-devel] [PATCH] configure: provide vulkan cflags (PR #20399)
@ 2025-09-02 11:49 Stephane Cerveau via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: Stephane Cerveau via ffmpeg-devel @ 2025-09-02 11:49 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stephane Cerveau
PR #20399 opened by Stephane Cerveau (dabrain34)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20399
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20399.patch
This patch allows to use pkgconfig cflags
for vulkan in check_cpp_condition as the vulkan
sdk might be installed in different place than
system wide.
See https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html
>From 5db9bfeaf3b7e9672380fe05f464c07351c2711e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= <scerveau@igalia.com>
Date: Fri, 29 Aug 2025 17:04:07 +0200
Subject: [PATCH] configure: provide vulkan cflags
This patch allows to use pkgconfig cflags
for vulkan in check_cpp_condition as the vulkan
sdk might be installed in different place than
system wide.
See https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html
---
configure | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index 7ec4c3975b..9860d064e3 100755
--- a/configure
+++ b/configure
@@ -7527,18 +7527,18 @@ enabled vdpau &&
check_lib vdpau_x11 "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau -lX11
if enabled_all vulkan vulkan_static; then
- check_pkg_config vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" "defined VK_VERSION_1_3" ||
- check_lib vulkan "vulkan/vulkan.h" vkGetInstanceProcAddr -lvulkan
+ require_pkg_config vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" "defined VK_VERSION_1_3" ||
+ check_lib vulkan "vulkan/vulkan.h" vkGetInstanceProcAddr -lvulkan $vulkan_cflags
elif enabled vulkan; then
- check_pkg_config_header_only vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" "defined VK_VERSION_1_3" ||
- check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_4) || (defined(VK_VERSION_1_3) && VK_HEADER_VERSION >= 277)"
+ require_pkg_config vulkan "vulkan >= 1.3.277" "vulkan/vulkan.h" vkCreateInstance ||
+ check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_4) || (defined(VK_VERSION_1_3) && VK_HEADER_VERSION >= 277)" $vulkan_cflags
fi
if disabled vulkan; then
disable libglslang libshaderc spirv_compiler
else
check_pkg_config_header_only vulkan_1_4 "vulkan >= 1.4.317" "vulkan/vulkan.h" "defined VK_VERSION_1_4" ||
- check_cpp_condition vulkan_1_4 "vulkan/vulkan.h" "defined(VK_VERSION_1_5) || (defined(VK_VERSION_1_4) && VK_HEADER_VERSION >= 317)"
+ check_cpp_condition vulkan_1_4 "vulkan/vulkan.h" "defined(VK_VERSION_1_5) || (defined(VK_VERSION_1_4) && VK_HEADER_VERSION >= 317)" $vulkan_cflags
fi
if enabled x86; then
--
2.49.1
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-02 11:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-02 11:49 [FFmpeg-devel] [PATCH] configure: provide vulkan cflags (PR #20399) Stephane Cerveau via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git