From: "Yew, Chang Ching" <[email protected]>

1. Include libvpl_wayland.so in standard package instead
of -dev package
2. Fix CMake install path of libvpl_wayland.so to $LIBDIR

Signed-off-by: Yew, Chang Ching <[email protected]>
---
 .../0001-Corrected-the-install-path.patch     | 53 +++++++++++++++++++
 recipes-multimedia/onevpl/onevpl_2021.2.2.bb  | 10 +++-
 2 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 
recipes-multimedia/onevpl/onevpl/0001-Corrected-the-install-path.patch

diff --git 
a/recipes-multimedia/onevpl/onevpl/0001-Corrected-the-install-path.patch 
b/recipes-multimedia/onevpl/onevpl/0001-Corrected-the-install-path.patch
new file mode 100644
index 00000000..032c416d
--- /dev/null
+++ b/recipes-multimedia/onevpl/onevpl/0001-Corrected-the-install-path.patch
@@ -0,0 +1,53 @@
+From 0e2c56260a3ccddcccb5daa0c8aac3c6b92214ac Mon Sep 17 00:00:00 2001
+From: tengjinchung <[email protected]>
+Date: Thu, 17 Jun 2021 14:43:48 +0800
+Subject: [PATCH] Corrected the install path
+
+Fix CMake install path of libvpl_wayland.so to
+$LIBDIR
+
+Upstream-Status: Pending
+inner-source pr #133
+
+Signed-off-by: jinchung <[email protected]>
+Signed-off-by: Yew, Chang Ching <[email protected]>
+---
+ tools/legacy/sample_common/src/vaapi_utils.cpp  | 2 +-
+ tools/legacy/sample_misc/wayland/CMakeLists.txt | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tools/legacy/sample_common/src/vaapi_utils.cpp 
b/tools/legacy/sample_common/src/vaapi_utils.cpp
+index 833b4c1..23edf86 100644
+--- a/tools/legacy/sample_common/src/vaapi_utils.cpp
++++ b/tools/legacy/sample_common/src/vaapi_utils.cpp
+@@ -163,7 +163,7 @@ Xcbpresent_Proxy::~Xcbpresent_Proxy() {}
+     #if defined(LIBVA_WAYLAND_SUPPORT)
+
+ VA_WaylandClientProxy::VA_WaylandClientProxy()
+-        : lib("libmfx_wayland.so"),
++        : lib("libvpl_wayland.so"),
+           SIMPLE_LOADER_FUNCTION(WaylandCreate) {}
+
+ VA_WaylandClientProxy::~VA_WaylandClientProxy() {}
+diff --git a/tools/legacy/sample_misc/wayland/CMakeLists.txt 
b/tools/legacy/sample_misc/wayland/CMakeLists.txt
+index 95057d4..90b55ca 100644
+--- a/tools/legacy/sample_misc/wayland/CMakeLists.txt
++++ b/tools/legacy/sample_misc/wayland/CMakeLists.txt
+@@ -2,7 +2,7 @@ if (NOT PKG_WAYLAND_CLIENT_FOUND)
+     return()
+ endif()
+
+-set(TARGET mfx_wayland)
++set(TARGET vpl_wayland)
+
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(PKG_WAYLAND_CLIENT wayland-client)
+@@ -26,4 +26,4 @@ target_sources(${TARGET} PRIVATE
+
+ target_link_libraries(${TARGET} sample_common wayland-client va drm drm_intel)
+
+-install( TARGETS ${TARGETS} LIBRARY DESTINATION ${CMAKE_INSTALL_BINDIR} )
++install( TARGETS ${TARGET} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
+--
+2.32.0
+
diff --git a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb 
b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
index 6812ccfa..6e08b42b 100644
--- a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
+++ b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
@@ -18,6 +18,7 @@ SRC_URI = 
"git://github.com/oneapi-src/oneVPL.git;protocol=https \
             file://0001-Fix-NV12-input-format-in-legacy-samples.patch \
             file://0001-Fix-sample_vpp-sample_encode-alignment-issue.patch \
             file://0001-Fix-sample_encode-i010-input.patch \
+            file://0001-Corrected-the-install-path.patch \
             "
 SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87"
 S = "${WORKDIR}/git"
@@ -41,9 +42,14 @@ do_install_append () {
         find "${D}${datadir}/vpl/examples/" -type d \! -name 'examples' \! 
-name 'content' -exec rm -rf {} +
 }
 
-
 FILES_${PN}-examples = "${bindir}/dpcpp-blur \
                         ${bindir}/hello-* \
                         ${datadir}/vpl/examples \
                         "
-FILES_${PN} += "${datadir}"
+
+FILES_SOLIBSDEV = ""
+FILES_${PN}-dev += "${libdir}/libvpl.so"
+
+FILES_${PN} += "${datadir} \
+                ${libdir}/libvpl_wayland.so \
+                "
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7115): 
https://lists.yoctoproject.org/g/meta-intel/message/7115
Mute This Topic: https://lists.yoctoproject.org/mt/83707872/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to