From: Stephane Cerveau via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> To: ffmpeg-devel@ffmpeg.org Cc: Stephane Cerveau <code@ffmpeg.org> Subject: [FFmpeg-devel] [PATCH] configure: provide vulkan cflags (PR #20399) Message-ID: <175681373496.25.12746025414624209430@463a07221176> (raw) 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
reply other threads:[~2025-09-02 11:49 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=175681373496.25.12746025414624209430@463a07221176 \ --to=ffmpeg-devel@ffmpeg.org \ --cc=code@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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