Skip to content

Commit

Permalink
Merge pull request rdkcentral#1397 from vijs/sprint/2103 (DELIA-49468)
Browse files Browse the repository at this point in the history
DELIA-49468: Fixed MODULE_NAME
  • Loading branch information
vijs committed Jul 14, 2021
1 parent 3ca2480 commit 2091b20
Show file tree
Hide file tree
Showing 46 changed files with 59 additions and 35 deletions.
2 changes: 2 additions & 0 deletions AVInput/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

target_include_directories(${MODULE_NAME} PRIVATE ../helpers)

target_link_libraries(${MODULE_NAME}
Expand Down
2 changes: 1 addition & 1 deletion AVInput/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME AVInput
#define MODULE_NAME Plugin_AVInput
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion ActivityMonitor/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME CoPilot
#define MODULE_NAME Plugin_ActivityMonitor
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion Bluetooth/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME Bluetooth
#define MODULE_NAME Plugin_Bluetooth
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion CompositeInput/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME CompositeInput
#define MODULE_NAME Plugin_CompositeInput
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion ContinueWatching/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME ContinueWatching
#define MODULE_NAME Plugin_ContinueWatching
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion ControlService/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME VrexManager
#define MODULE_NAME Plugin_ControlService
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion DataCapture/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME DataCapture
#define MODULE_NAME Plugin_DataCapture
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion DeviceDiagnostics/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME DeviceDiagnostics
#define MODULE_NAME Plugin_DeviceDiagnostics
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions DisplayInfo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

target_link_libraries(${MODULE_NAME}
PRIVATE
CompileSettingsDebug::CompileSettingsDebug
Expand Down
2 changes: 2 additions & 0 deletions DisplaySettings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

target_include_directories(${MODULE_NAME} PRIVATE ../helpers)

find_package(DS)
Expand Down
2 changes: 1 addition & 1 deletion DisplaySettings/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME DisplaySettings
#define MODULE_NAME Plugin_DisplaySettings
#endif

#include <plugins/plugins.h>
Expand Down
3 changes: 1 addition & 2 deletions FrameRate/FrameRate.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@

#include <mutex>

#include "tptimer.h"

#include "Module.h"
#include "tptimer.h"
#include "utils.h"
#include "AbstractPlugin.h"

Expand Down
2 changes: 1 addition & 1 deletion FrameRate/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME FrameRate
#define MODULE_NAME Plugin_FrameRate
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions FrontPanel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

find_package(DS)
if (DS_FOUND)
find_package(IARMBus)
Expand Down
2 changes: 1 addition & 1 deletion FrontPanel/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME FrontPanel
#define MODULE_NAME Plugin_FrontPanel
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion HdcpProfile/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME HdcpProfile
#define MODULE_NAME Plugin_HdcpProfile
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion HdmiCec/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME HdmiCec
#define MODULE_NAME Plugin_HdmiCec
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions HdmiCecSink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

find_package(DS)
find_package(IARMBus)
find_package(CEC)
Expand Down
2 changes: 1 addition & 1 deletion HdmiCecSink/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME HdmiCecSink
#define MODULE_NAME Plugin_HdmiCecSink
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion HdmiCec_2/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME HdmiCec_2
#define MODULE_NAME Plugin_HdmiCec_2
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion HdmiInput/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME HdmiInput
#define MODULE_NAME Plugin_HdmiInput
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion LoggingPreferences/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME LoggingPreferences
#define MODULE_NAME Plugin_LoggingPreferences
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions MaintenanceManager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

Expand Down
2 changes: 1 addition & 1 deletion MaintenanceManager/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME MaintenanceManager
#define MODULE_NAME Plugin_MaintenanceManager
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion MotionDetection/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define __MODULE_PLUGIN_MOTION_DETECTION_MODULE_H

#ifndef MODULE_NAME
#define MODULE_NAME MotionDetection
#define MODULE_NAME Plugin_MotionDetection
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion Network/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME Network
#define MODULE_NAME Plugin_Network
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion OCIContainer/Module.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME OCIContainer
#define MODULE_NAME Plugin_OCIContainer
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion PersistentStore/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME PersistentStore
#define MODULE_NAME Plugin_PersistentStore
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions RDKShell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if (PLUGIN_RDKSHELL_READ_MAC_ON_STARTUP)
set(PLUGIN_RDKSHELL_EXTRA_LIBRARIES "-lFactory-hal")
endif (PLUGIN_RDKSHELL_READ_MAC_ON_STARTUP)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

target_include_directories(${MODULE_NAME} PRIVATE ../helpers ${IARMBUS_INCLUDE_DIRS} )

set(RDKSHELL_INCLUDES $ENV{RDKSHELL_INCLUDES})
Expand Down
2 changes: 1 addition & 1 deletion RDKShell/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME RDKShell
#define MODULE_NAME Plugin_RDKShell
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions RemoteActionMapping/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

target_include_directories(${MODULE_NAME} PRIVATE ../helpers)

find_package(CTRLM)
Expand Down
2 changes: 1 addition & 1 deletion RemoteActionMapping/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME RemoteActionMapping
#define MODULE_NAME Plugin_RemoteActionMapping
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions ScreenCapture/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

find_path(FRAMEBUFFER_API_HEADER NAMES framebuffer-api.h)
if (NOT ${FRAMEBUFFER_API_HEADER} STREQUAL "FRAMEBUFFER_API_HEADER-NOTFOUND")
message("Found framebuffer-api.h")
Expand Down
2 changes: 1 addition & 1 deletion ScreenCapture/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME ScreenCapture
#define MODULE_NAME Plugin_ScreenCapture
#endif

#include <plugins/plugins.h>
Expand Down
3 changes: 1 addition & 2 deletions ScreenCapture/ScreenCapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
#include <mutex>
#include <vector>

#include "tptimer.h"

#include "Module.h"
#include "tptimer.h"
#include "utils.h"
#include "AbstractPlugin.h"

Expand Down
2 changes: 2 additions & 0 deletions SystemServices/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

Expand Down
2 changes: 1 addition & 1 deletion SystemServices/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME SystemServices
#define MODULE_NAME Plugin_SystemServices
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions Timer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

Expand Down
2 changes: 1 addition & 1 deletion Timer/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME Timer
#define MODULE_NAME Plugin_Timer
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion UsbAccess/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME UsbAccess
#define MODULE_NAME Plugin_UsbAccess
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 1 addition & 1 deletion UserPreferences/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME UserPreferences
#define MODULE_NAME Plugin_UserPreferences
#endif

#include <plugins/plugins.h>
Expand Down
2 changes: 2 additions & 0 deletions Warehouse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

find_package(DS)
if (DS_FOUND)
find_package(IARMBus)
Expand Down
2 changes: 1 addition & 1 deletion Warehouse/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once
#ifndef MODULE_NAME
#define MODULE_NAME Warehouse
#define MODULE_NAME Plugin_Warehouse
#endif

#include <plugins/plugins.h>
Expand Down
Loading

0 comments on commit 2091b20

Please sign in to comment.