Commit 039f9fd2 authored by Markus Georg Bendel's avatar Markus Georg Bendel
Browse files

Merge branch 'integrate-someip' into 'master'

# Conflicts:
#   pom.xml
#   src/main/java/de/monticore/lang/monticar/generator/middleware/cli/DistributedTargetGeneratorCli.java
parents 59868f08 231f6e4c
Pipeline #188880 failed with stages
in 3 minutes and 11 seconds
/* (c) https://github.com/MontiCore/monticore */
package de.monticore.lang.monticar.generator.middleware.templates.compile;
import de.monticore.lang.monticar.generator.FileContent;
......
package de.se_rwth.commons.logging;
public class DebugLog extends Log {
public static void init() {
Log debugLog = new DebugLog();
Log.setLog(debugLog);
}
@Override
protected boolean doIsDebugEnabled(String logName) {
return true;
}
}
<#-- (c) https://github.com/MontiCore/monticore -->
#pragma once
#include "${compName}.h"
......
<#-- (c) https://github.com/MontiCore/monticore -->
<#-- General batch -->
<#macro comment str>
:: ${str}
......@@ -34,4 +35,4 @@ IF NOT %ERRORLEVEL% EQU 0 (
</#if>
@echo off
<#include "compile.general.ftl"/>
\ No newline at end of file
<#include "compile.general.ftl"/>
<#-- (c) https://github.com/MontiCore/monticore -->
<#macro cmake subdir="">
<@comment str="configure cmake"/>
cmake -B<@evalCurDir postfix="build/${subdir}"/> -H<@evalCurDir postfix="src/${subdir}"/> -DCMAKE_INSTALL_PREFIX=<@evalCurDir postfix="install"/> <@generatorOption/> <@passParams/>
......@@ -36,4 +37,4 @@ popd
<@cmake subdir="comps"/>
<#else>
<@cmake/>
</#if>
\ No newline at end of file
</#if>
<#-- (c) https://github.com/MontiCore/monticore -->
#!/usr/bin/env bash
set -e
export CMAKE_PREFIX_PATH=$AMENT_PREFIX_PATH:$CMAKE_PREFIX_PATH
......@@ -36,4 +37,4 @@ fi
</#macro>
<#macro generatorOption></#macro>
<#include "compile.general.ftl"/>
\ No newline at end of file
<#include "compile.general.ftl"/>
<#-- (c) https://github.com/MontiCore/monticore -->
cmake_minimum_required(VERSION 3.5)
project (Coordinator_${compName} LANGUAGES CXX)
......@@ -15,4 +16,4 @@ target_include_directories(Coordinator_${compName} PUBLIC ${CMAKE_CURRENT_SOURCE
export(TARGETS Coordinator_${compName} IAdapter_${compName} FILE Coordinator_${compName}.cmake)
install(TARGETS Coordinator_${compName} DESTINATION bin)
\ No newline at end of file
install(TARGETS Coordinator_${compName} DESTINATION bin)
<#-- (c) https://github.com/MontiCore/monticore -->
#include <iostream>
#include <thread>
#include <chrono>
......@@ -78,4 +79,4 @@ int main(int argc, char* argv[])
}
return 0;
}
\ No newline at end of file
}
<#-- (c) https://github.com/MontiCore/monticore -->
#pragma once
#include "${compName}.h"
#include <thread>
......
<#-- (c) https://github.com/MontiCore/monticore -->
cmake_minimum_required(VERSION 3.5)
project (DummyAdapter_${compName})
......
<#-- (c) https://github.com/MontiCore/monticore -->
@echo off
:: Substituting the current dir with a drive letter to bypass windows path length limit
:: Set environment variable EMA_SUBST_LETTER to change letter is used
......@@ -20,4 +21,4 @@ cd /d %usedLetter%:
call ${model.getFileName()}
popd
subst /d %usedLetter%:
\ No newline at end of file
subst /d %usedLetter%:
#!/usr/bin/env bash
# (c) https://github.com/MontiCore/monticore
baseDir=$(readlink -f `dirname $0`/../../..)
docker run -t -v $baseDir:/project registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-kinetic /bin/bash -c "cd project; src/test/bash/integrationTestRos.sh"
chown -R `who am i | awk '{print $1}'` "$baseDir/target/generated-sources-cmake/"
\ No newline at end of file
chown -R `who am i | awk '{print $1}'` "$baseDir/target/generated-sources-cmake/"
#!/usr/bin/env bash
# (c) https://github.com/MontiCore/monticore
baseDir=$(readlink -f `dirname $0`/../../..)
docker run -t -v $baseDir:/project registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-crystal /bin/bash -c "cd project; src/test/bash/integrationTestRos2.sh"
chown -R `who am i | awk '{print $1}'` "$baseDir/target/generated-sources-ros2/"
\ No newline at end of file
chown -R `who am i | awk '{print $1}'` "$baseDir/target/generated-sources-ros2/"
#!/bin/bash
set -e
baseDir=$(readlink -f `dirname $0`/../../..)
for f in `find $baseDir/target/generated-sources-mqtt/ -name compile.sh`
do
bash -H $f
done
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
set -e
baseDir=$(readlink -f `dirname $0`/../../..)
......
#!/bin/bash
# (c) https://github.com/MontiCore/monticore
set -e
baseDir=$(readlink -f `dirname $0`/../../..)
for f in `find $baseDir/target/generated-sources-ros2/ -name compile.sh`
do
bash -H $f
done
\ No newline at end of file
done
#!/usr/bin/env bash
# (c) https://github.com/MontiCore/monticore
curDir=$(readlink -f `dirname $0`)
docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-crystal $curDir
#!/usr/bin/env bash
# (c) https://github.com/MontiCore/monticore
docker push registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-crystal
curDir=$(readlink -f `dirname $0`)
# (c) https://github.com/MontiCore/monticore
docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-kinetic $curDir
docker push registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emam2middleware/ema-ros-kinetic
# (c) https://github.com/MontiCore/monticore
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment