diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2016-12-08 16:46:07 +0100 |
---|---|---|
committer | Christian Gromm <christian.gromm@microchip.com> | 2016-12-08 16:46:07 +0100 |
commit | 0a28683a1ff9f3975c8b68b15017cf342bab5f3d (patch) | |
tree | 2f350b709db4d45532fc0624cfce22ec11e43ccf /buildX86 | |
parent | 18c9e9fc0000861257ab06f6a033612b0c567674 (diff) |
src: vod-server: import sources
This patch adds the source tree of the Video-On-Demand server and
its configuration scripts.
Change-Id: I6db8c43d46c7450baf117a541bd7153496dbcd4c
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'buildX86')
-rw-r--r-- | buildX86/Makefile-Release.mk | 189 | ||||
-rw-r--r-- | buildX86/Makefile-impl.mk | 133 | ||||
-rw-r--r-- | buildX86/Makefile-variables.mk | 27 | ||||
-rw-r--r-- | buildX86/Package-Release.bash | 76 | ||||
-rw-r--r-- | buildX86/project.xml | 27 |
5 files changed, 452 insertions, 0 deletions
diff --git a/buildX86/Makefile-Release.mk b/buildX86/Makefile-Release.mk new file mode 100644 index 0000000..792bb9c --- /dev/null +++ b/buildX86/Makefile-Release.mk @@ -0,0 +1,189 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a -pre and a -post target defined where you can add customized code. +# +# This makefile implements configuration specific macros and targets. + + +# Environment +MKDIR=mkdir +CP=cp +GREP=grep +NM=nm +CCADMIN=CCadmin +RANLIB=ranlib +CC=${CROSS_COMPILE}gcc +CCC=${CROSS_COMPILE}g++ +CXX=${CROSS_COMPILE}g++ +FC=${CROSS_COMPILE}gfortran +AS=${CROSS_COMPILE}as + +# Macros +CND_PLATFORM=GNU-Linux-x86 +CND_DLIB_EXT=so +CND_CONF=Release +CND_DISTDIR=dist +CND_BUILDDIR=build + +# Include project Makefile +include Makefile + +# Object Directory +OBJECTDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM} + +# Object Files +OBJECTFILES= \ +${OBJECTDIR}/Src/Console.o \ + ${OBJECTDIR}/Src/IP/MostIpc.o \ + ${OBJECTDIR}/Src/IP/MostMsg.o \ + ${OBJECTDIR}/Src/IP/MostMsgTx.o \ + ${OBJECTDIR}/Src/IP/MsgAddr.o \ + ${OBJECTDIR}/Src/IP/MsgFilter.o \ + ${OBJECTDIR}/Src/MacAddr.o \ + ${OBJECTDIR}/Src/Main.o \ + ${OBJECTDIR}/Src/ConnectionInfo.o \ + ${OBJECTDIR}/Src/VodHandler.o \ + ${OBJECTDIR}/Src/Multiplexer/Stream.o \ + ${OBJECTDIR}/Src/Multiplexer/StreamList.o \ + ${OBJECTDIR}/Src/Multiplexer/ThreadReadHdd.o \ + ${OBJECTDIR}/Src/Multiplexer/ThreadWriteNetwork.o \ + ${OBJECTDIR}/Src/Multiplexer/SourceFile.o \ + ${OBJECTDIR}/Src/Multiplexer/SourceFileConverted.o \ + ${OBJECTDIR}/Src/Multiplexer/udp-stream.o \ + ${OBJECTDIR}/Src/Thread.o \ + +# Include Path +C_INCLUDE=-Imnsl -ISrc -ISrc/IP -ISrc/Multiplexer ${INCLUDE_PATH} + +# C Compiler Flags +CFLAGS=-c -Wall -O3 -MMD -MP -DNDEBUG ${PROJECT_C_FLAGS} + +# CC Compiler Flags +CCFLAGS=-Wall -O3 -MMD -MP -DNDEBUG ${PROJECT_C_FLAGS} +CXXFLAGS=${CCFLAGS} + +# Fortran Compiler Flags +FFLAGS= + +# Assembler Flags +ASFLAGS= + +# Link Libraries and Options +LDLIBSOPTIONS=-lpthread + +# Build Targets +.build-conf: ${BUILD_SUBPROJECTS} + "${MAKE}" -f buildX86/Makefile-${CND_CONF}.mk VideoOnDemand + +VideoOnDemand: ${OBJECTFILES} + ${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM} + ${LINK.cc} -o VideoOnDemand ${OBJECTFILES} ${LDLIBSOPTIONS} + +${OBJECTDIR}/Src/Console.o: Src/Console.c + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Console.o Src/Console.c + +${OBJECTDIR}/Src/IP/MostIpc.o: Src/IP/MostIpc.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MostIpc.o Src/IP/MostIpc.cpp + +${OBJECTDIR}/Src/IP/MostMsg.o: Src/IP/MostMsg.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MostMsg.o Src/IP/MostMsg.cpp + +${OBJECTDIR}/Src/IP/MostMsgTx.o: Src/IP/MostMsgTx.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MostMsgTx.o Src/IP/MostMsgTx.cpp + +${OBJECTDIR}/Src/IP/MsgAddr.o: Src/IP/MsgAddr.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MsgAddr.o Src/IP/MsgAddr.cpp + +${OBJECTDIR}/Src/IP/MsgFilter.o: Src/IP/MsgFilter.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/IP + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/IP/MsgFilter.o Src/IP/MsgFilter.cpp + +${OBJECTDIR}/Src/MacAddr.o: Src/MacAddr.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/MacAddr.o Src/MacAddr.cpp + +${OBJECTDIR}/Src/Main.o: Src/Main.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Main.o Src/Main.cpp + +${OBJECTDIR}/Src/ConnectionInfo.o: Src/ConnectionInfo.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/ConnectionInfo.o Src/ConnectionInfo.cpp + +${OBJECTDIR}/Src/VodHandler.o: Src/VodHandler.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/VodHandler.o Src/VodHandler.cpp + +${OBJECTDIR}/Src/Multiplexer/Stream.o: Src/Multiplexer/Stream.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/Stream.o Src/Multiplexer/Stream.cpp + +${OBJECTDIR}/Src/Multiplexer/StreamList.o: Src/Multiplexer/StreamList.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/StreamList.o Src/Multiplexer/StreamList.cpp + +${OBJECTDIR}/Src/Multiplexer/ThreadReadHdd.o: Src/Multiplexer/ThreadReadHdd.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/ThreadReadHdd.o Src/Multiplexer/ThreadReadHdd.cpp + +${OBJECTDIR}/Src/Multiplexer/ThreadWriteNetwork.o: Src/Multiplexer/ThreadWriteNetwork.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/ThreadWriteNetwork.o Src/Multiplexer/ThreadWriteNetwork.cpp + +${OBJECTDIR}/Src/Multiplexer/SourceFile.o: Src/Multiplexer/SourceFile.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/SourceFile.o Src/Multiplexer/SourceFile.cpp + +${OBJECTDIR}/Src/Multiplexer/SourceFileConverted.o: Src/Multiplexer/SourceFileConverted.cpp + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/SourceFileConverted.o Src/Multiplexer/SourceFileConverted.cpp + +${OBJECTDIR}/Src/Multiplexer/udp-stream.o: Src/Multiplexer/udp-stream.c + ${MKDIR} -p ${OBJECTDIR}/Src/Multiplexer + ${RM} "$@.d" + ${CC} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Multiplexer/udp-stream.o Src/Multiplexer/udp-stream.c + +${OBJECTDIR}/Src/Thread.o: Src/Thread.cpp + ${MKDIR} -p ${OBJECTDIR}/Src + ${RM} "$@.d" + ${CXX} ${CFLAGS} ${C_INCLUDE} -MF "$@.d" -o ${OBJECTDIR}/Src/Thread.o Src/Thread.cpp + + +# Subprojects +.build-subprojects: + +# Clean Targets +.clean-conf: ${CLEAN_SUBPROJECTS} + ${RM} -r ${CND_BUILDDIR}/${CND_CONF} + ${RM} VideoOnDemand + +# Subprojects +.clean-subprojects: + +# Enable dependency checking +.dep.inc: .depcheck-impl + +include .dep.inc diff --git a/buildX86/Makefile-impl.mk b/buildX86/Makefile-impl.mk new file mode 100644 index 0000000..5f9d8f4 --- /dev/null +++ b/buildX86/Makefile-impl.mk @@ -0,0 +1,133 @@ +# +# Generated Makefile - do not edit! +# +# Edit the Makefile in the project folder instead (../Makefile). Each target +# has a pre- and a post- target defined where you can add customization code. +# +# This makefile implements macros and targets common to all configurations. +# +# NOCDDL + + +# Building and Cleaning subprojects are done by default, but can be controlled with the SUB +# macro. If SUB=no, subprojects will not be built or cleaned. The following macro +# statements set BUILD_SUB-CONF and CLEAN_SUB-CONF to .build-reqprojects-conf +# and .clean-reqprojects-conf unless SUB has the value 'no' +SUB_no=NO +SUBPROJECTS=${SUB_${SUB}} +BUILD_SUBPROJECTS_=.build-subprojects +BUILD_SUBPROJECTS_NO= +BUILD_SUBPROJECTS=${BUILD_SUBPROJECTS_${SUBPROJECTS}} +CLEAN_SUBPROJECTS_=.clean-subprojects +CLEAN_SUBPROJECTS_NO= +CLEAN_SUBPROJECTS=${CLEAN_SUBPROJECTS_${SUBPROJECTS}} + + +# Project Name +PROJECTNAME=VideoOnDemand + +# Active Configuration +DEFAULTCONF=Release +CONF=${DEFAULTCONF} + +# All Configurations +ALLCONFS=Release + + +# build +.build-impl: .build-pre .validate-impl .depcheck-impl + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf + + +# clean +.clean-impl: .clean-pre .validate-impl .depcheck-impl + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf + + +# clobber +.clobber-impl: .clobber-pre .depcheck-impl + @#echo "=> Running $@..." + for CONF in ${ALLCONFS}; \ + do \ + "${MAKE}" -f buildX86/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .clean-conf; \ + done + +# all +.all-impl: .all-pre .depcheck-impl + @#echo "=> Running $@..." + for CONF in ${ALLCONFS}; \ + do \ + "${MAKE}" -f buildX86/Makefile-$${CONF}.mk QMAKE=${QMAKE} SUBPROJECTS=${SUBPROJECTS} .build-conf; \ + done + +# build tests +.build-tests-impl: .build-impl .build-tests-pre + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .build-tests-conf + +# run tests +.test-impl: .build-tests-impl .test-pre + @#echo "=> Running $@... Configuration=$(CONF)" + "${MAKE}" -f buildX86/Makefile-${CONF}.mk SUBPROJECTS=${SUBPROJECTS} .test-conf + +# dependency checking support +.depcheck-impl: + @echo "# This code depends on make tool being used" >.dep.inc + @if [ -n "${MAKE_VERSION}" ]; then \ + echo "DEPFILES=\$$(wildcard \$$(addsuffix .d, \$${OBJECTFILES}))" >>.dep.inc; \ + echo "ifneq (\$${DEPFILES},)" >>.dep.inc; \ + echo "include \$${DEPFILES}" >>.dep.inc; \ + echo "endif" >>.dep.inc; \ + else \ + echo ".KEEP_STATE:" >>.dep.inc; \ + echo ".KEEP_STATE_FILE:.make.state.\$${CONF}" >>.dep.inc; \ + fi + +# configuration validation +.validate-impl: + @if [ ! -f buildX86/Makefile-${CONF}.mk ]; \ + then \ + echo ""; \ + echo "Error: can not find the makefile for configuration '${CONF}' in project ${PROJECTNAME}"; \ + echo "See 'make help' for details."; \ + echo "Current directory: " `pwd`; \ + echo ""; \ + fi + @if [ ! -f buildX86/Makefile-${CONF}.mk ]; \ + then \ + exit 1; \ + fi + + +# help +.help-impl: .help-pre + @echo "This makefile supports the following configurations:" + @echo " ${ALLCONFS}" + @echo "" + @echo "and the following targets:" + @echo " build (default target)" + @echo " clean" + @echo " clobber" + @echo " all" + @echo " help" + @echo "" + @echo "Makefile Usage:" + @echo " make [CONF=<CONFIGURATION>] [SUB=no] build" + @echo " make [CONF=<CONFIGURATION>] [SUB=no] clean" + @echo " make [SUB=no] clobber" + @echo " make [SUB=no] all" + @echo " make help" + @echo "" + @echo "Target 'build' will build a specific configuration and, unless 'SUB=no'," + @echo " also build subprojects." + @echo "Target 'clean' will clean a specific configuration and, unless 'SUB=no'," + @echo " also clean subprojects." + @echo "Target 'clobber' will remove all built files from all configurations and," + @echo " unless 'SUB=no', also from subprojects." + @echo "Target 'all' will will build all configurations and, unless 'SUB=no'," + @echo " also build subprojects." + @echo "Target 'help' prints this message." + @echo "" + diff --git a/buildX86/Makefile-variables.mk b/buildX86/Makefile-variables.mk new file mode 100644 index 0000000..92eaac7 --- /dev/null +++ b/buildX86/Makefile-variables.mk @@ -0,0 +1,27 @@ +# +# Generated - do not edit! +# +# NOCDDL +# +CND_BASEDIR=`pwd` +CND_BUILDDIR=build +CND_DISTDIR=dist +# Release configuration +CND_PLATFORM_Release=GNU-Linux-x86 +CND_ARTIFACT_DIR_Release=dist/Release/GNU-Linux-x86 +CND_ARTIFACT_NAME_Release=tmp +CND_ARTIFACT_PATH_Release=dist/Release/GNU-Linux-x86/tmp +CND_PACKAGE_DIR_Release=dist/Release/GNU-Linux-x86/package +CND_PACKAGE_NAME_Release=tmp.tar +CND_PACKAGE_PATH_Release=dist/Release/GNU-Linux-x86/package/tmp.tar +# +# include compiler specific variables +# +# dmake command +ROOT:sh = test -f nbproject/private/Makefile-variables.mk || \ + (mkdir -p nbproject/private && touch nbproject/private/Makefile-variables.mk) +# +# gmake command +.PHONY: $(shell test -f nbproject/private/Makefile-variables.mk || (mkdir -p nbproject/private && touch nbproject/private/Makefile-variables.mk)) +# +include nbproject/private/Makefile-variables.mk diff --git a/buildX86/Package-Release.bash b/buildX86/Package-Release.bash new file mode 100644 index 0000000..fb38dd2 --- /dev/null +++ b/buildX86/Package-Release.bash @@ -0,0 +1,76 @@ +#!/bin/bash -x + +# +# Generated - do not edit! +# + +# Macros +TOP=`pwd` +CND_PLATFORM=GNU-Linux-x86 +CND_CONF=Release +CND_DISTDIR=dist +CND_BUILDDIR=build +CND_DLIB_EXT=so +NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging +TMPDIRNAME=tmp-packaging +OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/tmp +OUTPUT_BASENAME=tmp +PACKAGE_TOP_DIR=tmp/ + +# Functions +function checkReturnCode +{ + rc=$? + if [ $rc != 0 ] + then + exit $rc + fi +} +function makeDirectory +# $1 directory path +# $2 permission (optional) +{ + mkdir -p "$1" + checkReturnCode + if [ "$2" != "" ] + then + chmod $2 "$1" + checkReturnCode + fi +} +function copyFileToTmpDir +# $1 from-file path +# $2 to-file path +# $3 permission +{ + cp "$1" "$2" + checkReturnCode + if [ "$3" != "" ] + then + chmod $3 "$2" + checkReturnCode + fi +} + +# Setup +cd "${TOP}" +mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package +rm -rf ${NBTMPDIR} +mkdir -p ${NBTMPDIR} + +# Copy files and create directories and links +cd "${TOP}" +makeDirectory "${NBTMPDIR}/tmp/bin" +copyFileToTmpDir "${OUTPUT_PATH}" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755 + + +# Generate tar file +cd "${TOP}" +rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/tmp.tar +cd ${NBTMPDIR} +tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/tmp.tar * +checkReturnCode + +# Cleanup +cd "${TOP}" +rm -rf ${NBTMPDIR} diff --git a/buildX86/project.xml b/buildX86/project.xml new file mode 100644 index 0000000..f4d9328 --- /dev/null +++ b/buildX86/project.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.cnd.makeproject</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/make-project/1"> + <name>app</name> + <c-extensions>c</c-extensions> + <cpp-extensions>cpp</cpp-extensions> + <header-extensions>h</header-extensions> + <sourceEncoding>UTF-8</sourceEncoding> + <make-dep-projects/> + <sourceRootList> + <sourceRootElem>mnsl</sourceRootElem> + <sourceRootElem>Src</sourceRootElem> + </sourceRootList> + <confList> + <confElem> + <name>Release</name> + <type>1</type> + </confElem> + </confList> + <formatting> + <project-formatting-style>false</project-formatting-style> + </formatting> + </data> + </configuration> +</project> |