SUMMARY = "vrpmdv-rtservice recipe"
DESCRIPTION = "Recipe to add vrpmdv-setup-page to it's location."
LICENSE = "CLOSED"
# LICENSE_FLAGS = "commercial"

# inherit allarch perlnative
inherit cmake

# DEPENDS += "perl"
DEPENDS += "boost"

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"


SRC_URI += " \
    file://CMakeLists.txt \
    file://zephyr_openamp_rsc_table.elf \
    file://src/RTService.cpp \
    file://src/monitoringTask/RTSMonitoringTask.cpp \            
    file://src/monitoringTask/RTSMonFrame.cpp \            
    file://src/utilities/RTSCoproHelper.cpp \            
    file://include/RTSCoproHelper.h \
    file://include/RTSMonFrame.h \
    file://include/RTSMonitoringTask.h \        
    file://include/ISensorDesc.h \
    file://include/IChannelDesc.h \
    file://include/VibSensorDesc.h \
    file://include/json.hpp \    
    file://src/monitoringTask/VibSensorDesc.cpp \        
    file://include/VibChannelDesc.h \
    file://src/monitoringTask/VibChannelDesc.cpp \            
"


S = "${WORKDIR}"
DESTINATION = "/usr/bin"
# ELFDESTINATION = "~/elffile"


FILES:${PN} += "${DESTINATION}"

do_install () {
    install -d ${D}${DESTINATION}
    install -m 0644 ${B}/RTService ${D}/${DESTINATION}/
}
# do_install () {
#    install -d ${D}${ELFDESTINATION}
#    install -m 0644 ${WORKDIR}/*.elf ${D}/${ELFDESTINATION}     
#    
#}

# RDEPENDS:${PN} += " perl"
RDEPENDS:${PN} += " boost"

BBCLASSEXTEND = "native "
# BBCLASSEXTEND = "native nativesdk"

# EXTRA_OECMAKE += "-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY"
# EXTRA_OECMAKE += "-DSYSTEM_PROCESSOR=arm"
# EXTRA_OECMAKE += "-DCROSSCOMPILING=1"
# EXTRA_OECMAKE = "-DBUILD_TESTING=OFF"
