Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDK-52927: Miracast Player has support for amlogic platform only - stable2 #5883

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
954 changes: 0 additions & 954 deletions Miracast/MiracastPlayer/Amlogic/SoC_GstPlayer.cpp

This file was deleted.

17 changes: 9 additions & 8 deletions Miracast/MiracastPlayer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,20 @@ pkg_check_modules(GSTREAMERBASE REQUIRED gstreamer-app-1.0)

find_package(GStreamer REQUIRED)

find_library(GLIB_LIBRARY NAMES glib-2.0 )
find_library(GLIB_LIBRARY NAMES glib-2.0)

add_library(${MODULE_NAME} SHARED Module.cpp MiracastPlayer.cpp ../common/MiracastLogger.cpp ../common/MiracastCommon.cpp RTSP/MiracastRTSPMsg.cpp)

if (BUILD_AMLOGIC)
if (RDK_SERVICES_L1_TEST)
target_sources(${MODULE_NAME}
PRIVATE
Amlogic/SoC_GstPlayer.cpp
Test/MiracastGstPlayer.cpp
)
elseif (RDK_SERVICES_L1_TEST)
else()
target_sources(${MODULE_NAME}
PRIVATE
Test/SoC_GstPlayer.cpp
Generic/MiracastGstPlayer.cpp
)
else()
message(FATAL_ERROR "SoC abstraction yet to be implemented")
endif()

set_target_properties(${MODULE_NAME} PROPERTIES
Expand All @@ -74,12 +72,15 @@ target_link_libraries(${MODULE_NAME} PRIVATE ${GLIB_LIBRARIES})
target_link_libraries(${MODULE_NAME} PRIVATE ${GSTREAMER_LIBRARIES})
target_link_libraries(${MODULE_NAME} PRIVATE ${GSTREAMERBASE_LIBRARIES})
target_link_libraries(${MODULE_NAME} PRIVATE -lpthread)
#target_link_libraries(${MODULE_NAME} PRIVATE -lrdkloggers)

if(WPEFRAMEWORK_SECURITYUTIL_FOUND)
target_link_libraries(${MODULE_NAME} PRIVATE ${NAMESPACE}SecurityUtil)
endif()

if(NOT RDK_SERVICES_L1_TEST AND NOT RDK_SERVICE_L2_TEST)
target_link_libraries(${MODULE_NAME} PRIVATE MiracastPlayerHal)
endif()

install(TARGETS ${MODULE_NAME}
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)

Expand Down
Loading
Loading