Skip to content

Commit ae7272f

Browse files
committed
RDK-29577 : developing HDMI CEC plugins for Sink
1 parent db9bdb9 commit ae7272f

9 files changed

+2219
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ endif()
157157
add_subdirectory(HdmiCec_2)
158158
endif()
159159

160+
if(HAS_API_HDMI_CEC_SINK)
161+
add_subdirectory(HdmiCecSink)
162+
endif()
163+
164+
160165
if(ENABLE_LOCATION_SYNC)
161166
add_subdirectory(LocationSync)
162167
endif()

HdmiCecSink/CMakeLists.txt

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# If not stated otherwise in this file or this component's license file the
2+
# following copyright and licenses apply:
3+
#
4+
# Copyright 2020 RDK Management
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
set(PLUGIN_NAME HdmiCecSink)
18+
set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME})
19+
20+
find_package(${NAMESPACE}Plugins REQUIRED)
21+
22+
add_library(${MODULE_NAME} SHARED
23+
HdmiCecSink.cpp
24+
Module.cpp
25+
../helpers/utils.cpp)
26+
27+
set_target_properties(${MODULE_NAME} PROPERTIES
28+
CXX_STANDARD 11
29+
CXX_STANDARD_REQUIRED YES)
30+
31+
find_package(DS)
32+
find_package(IARMBus)
33+
find_package(CEC)
34+
35+
target_include_directories(${MODULE_NAME} PRIVATE ${IARMBUS_INCLUDE_DIRS} ../helpers)
36+
target_include_directories(${MODULE_NAME} PRIVATE ${CEC_INCLUDE_DIRS})
37+
target_include_directories(${MODULE_NAME} PRIVATE ${DS_INCLUDE_DIRS})
38+
39+
target_link_libraries(${MODULE_NAME} PUBLIC ${NAMESPACE}Plugins::${NAMESPACE}Plugins ${IARMBUS_LIBRARIES} ${CEC_LIBRARIES} ${DS_LIBRARIES} )
40+
41+
42+
install(TARGETS ${MODULE_NAME}
43+
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)
44+
45+
write_config(${PLUGIN_NAME})

HdmiCecSink/HdmiCecSink.config

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set (autostart false)
2+
set (preconditions Platform)
3+
set (callsign "org.rdk.HdmiCecSink")

0 commit comments

Comments
 (0)