Skip to content

Comments

RDKEMW-12974: Fix the rialto Component to support R5.3#439

Open
tabbas651 wants to merge 2 commits intordkcentral:masterfrom
tabbas651:master
Open

RDKEMW-12974: Fix the rialto Component to support R5.3#439
tabbas651 wants to merge 2 commits intordkcentral:masterfrom
tabbas651:master

Conversation

@tabbas651
Copy link

Reason for change: Added compile flags to support the Thunder R5.3
Test Procedure: please refer the ticket comments
Risks: Medium

Copilot AI review requested due to automatic review settings January 28, 2026 18:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Rialto wrappers build and Thunder integration to support Thunder R5.3 by conditionally selecting the appropriate Thunder Core/COM dependencies and headers.

Changes:

  • Adds conditional inclusion of Thunder error definitions for R5 builds in ThunderWrapper.cpp.
  • Switches wrappers CMake dependency discovery and link targets based on USE_THUNDER_R5.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
wrappers/source/ThunderWrapper.cpp Conditionally includes <core/Error.h> for R5 builds.
wrappers/CMakeLists.txt Adds USE_THUNDER_R5 conditionals for package discovery and link libraries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 66 to 72
if (USE_THUNDER_R5)
set(WRAPPER_LIBS
rdkgstreamerutils
ocdm::ocdm
${NAMESPACE}Core::${NAMESPACE}Core
${NAMESPACE}COM::${NAMESPACE}COM
${CMAKE_DL_LIBS})
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

The CMake option USE_THUNDER_R5 is used to switch dependencies, but it is not propagated to the compiler (no add_compile_definitions(USE_THUNDER_R5) / target_compile_definitions(RialtoWrappers PRIVATE USE_THUNDER_R5)). As a result, code guarded by #ifdef USE_THUNDER_R5 won’t match the CMake dependency selection. Add a target-level compile definition when this branch is taken (or rename to a single source of truth).

Copilot uses AI. Check for mistakes.
Comment on lines 52 to 58
if (USE_THUNDER_R5)
find_package( ${NAMESPACE}Core REQUIRED )
find_package( ${NAMESPACE}COM REQUIRED )
else ()
find_package( WPEFrameworkCore REQUIRED )
find_package( WPEFrameworkCOM REQUIRED )
endif()
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Indentation/style for the newly added if (USE_THUNDER_R5) blocks is inconsistent with the surrounding CMake (e.g., if( style and indentation inside the enclosing if(...) block). Reformatting to match the file’s existing conventions will improve readability and reduce the chance of introducing scoping mistakes.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Reason for change: Updated the compiler flags and added changes to support R5.3
Test Procedure: please refer the ticket comments
Risks: Medium
Signed-off-by: Thamim Razith Abbas Ali <tabbas651@cable.comcast.com>
Copilot AI review requested due to automatic review settings February 3, 2026 16:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +52 to 55
find_package( ${NAMESPACE}Core REQUIRED )
find_package( ${NAMESPACE}COM REQUIRED )

set(WRAPPER_INCLUDES
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

${NAMESPACE} is not defined anywhere in this repo’s CMake files (search shows only this file), so these calls expand to find_package(Core) / find_package(COM) and the imported targets become Core::Core / COM::COM, which will break configuration/linking. Define NAMESPACE (e.g., via a cache variable set in the top-level CMakeLists) or replace this with explicit package/target names with a conditional fallback for Thunder vs WPEFramework.

Copilot uses AI. Check for mistakes.
@tabbas651 tabbas651 changed the title RDKEMW-12975: Fix the rialto Component to support R5.3 RDKEMW-12974: Fix the rialto Component to support R5.3 Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant