Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From c7e75527b32d740874f65ba07e48889c6ec9fc3d Mon Sep 17 00:00:00 2001
From: Tushar Patra Jamula <tjamula@qti.qualcomm.com>
Date: Fri, 17 Apr 2026 14:59:07 +0530
Subject: [PATCH] cmake: Make camera base pkg-config installation conditional

Only install the pkg-config file when the camera base library is
actually built. This prevents orphaned .pc files when the library
is excluded from the build via EXCLUDE_FROM_ALL.

Change-Id: I09a495d3db3f47e0b88c08343556f91a9f83b57c
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Gerrit tags, missing Upstream-Status (wich definitely should be Backport)

Signed-off-by: Tushar Patra Jamula <tjamula@qti.qualcomm.com>

Upstream-Status: Pending
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why pending? Please send this upstream at least.

---
gst-plugin-base/gst/camera/CMakeLists.txt | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/gst-plugin-base/gst/camera/CMakeLists.txt b/gst-plugin-base/gst/camera/CMakeLists.txt
index 12f9f131..d90d8971 100644
--- a/gst-plugin-base/gst/camera/CMakeLists.txt
+++ b/gst-plugin-base/gst/camera/CMakeLists.txt
@@ -62,7 +62,12 @@ configure_file(
@ONLY
)

-install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc
- DESTINATION ${GST_PLUGINS_QTI_OSS_INSTALL_LIBDIR}/pkgconfig
-)
+install(CODE "
+ if(EXISTS \"$<TARGET_FILE:${TARGET_NAME}>\")
+ file(INSTALL
+ DESTINATION \"${GST_PLUGINS_QTI_OSS_INSTALL_LIBDIR}/pkgconfig\"
+ TYPE FILE
+ FILES \"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc\"
+ )
+ endif()
+")
--
2.43.0

5 changes: 4 additions & 1 deletion recipes-multimedia/imsdk/gst-plugins-imsdk-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ inherit cmake features_check pkgconfig

REQUIRED_DISTRO_FEATURES = "opengl"

SRC_URI = "git://github.com/qualcomm/gst-plugins-imsdk;protocol=https;nobranch=1;tag=${PV}"
SRC_URI = " \
git://github.com/qualcomm/gst-plugins-imsdk;protocol=https;nobranch=1;tag=${PV} \
file://0001-cmake-Make-camera-base-pkg-config-installation-condi.patch \
"

SRCREV = "fd9af6b8377da7039ba23423f774287977fa60bc"

Expand Down