Commit 44269ae4 authored by Maxime Perrotin's avatar Maxime Perrotin

Simplify build script

parent 7cbca5a9
......@@ -2,7 +2,7 @@
# This script will build your system
# DO NOT EDIT THIS FILE
# Generated by TASTE on @_Now_@
# Generated by kazoo on @_Now_@
# If you need additional pre-processing, there are three hook files
# that you can provide and that are called dring the build:
......@@ -30,29 +30,12 @@ then
source user_init_pre.sh
fi
# By default, use PolyORB-HI-C runtime
USE_POHIC=1
# Set Debug mode by default
DEBUG_MODE=--debug
INTERFACEVIEW=@_Interface_View_Path_@
# Output path were the user code was generated
SKELS=@_Output_Path_@
@@TABLE@@
@_Generate_Code_@
@@END_TABLE@@
@@TABLE@@
@_Zip_Code_@
@@END_TABLE@@
if [ -f ConcurrencyView.pro ]
then
ORCHESTRATOR_OPTIONS+=" -w ConcurrencyView.pro "
elif [ -f ConcurrencyView_Properties.aadl ]
elif [ -f ../ConcurrencyView_Properties.aadl ]
then
ORCHESTRATOR_OPTIONS+=" -w ConcurrencyView_Properties.aadl "
fi
......@@ -68,28 +51,12 @@ then
source additionalCommands.sh
fi
if [ ! -z "$USE_POHIC" ]
then
OUTPUTDIR=binary.c
ORCHESTRATOR_OPTIONS+=" --with-polyorb-hi-c "
else
OUTPUTDIR=binary.ada
fi
# Execute the makefile to update dataviews, if needed, then call ocarina and build everything
make && \
cd concurrency_view && \
ocarina -x main.aadl &&
make -f Makefile.taste
cd "$CWD" && \
assert-builder-ocarina.py \
--fast \
--aadlv2 \
--keep-case \
$DEBUG_MODE \
--interfaceView "$INTERFACEVIEW" \
--deploymentView "$DEPLOYMENTVIEW" \
-o "$OUTPUTDIR" \
@@TABLE@@
@_REPLACE((\n)/):Functions_@
@@END_TABLE@@
@_CodeCoverage_@ \
$ORCHESTRATOR_OPTIONS
if [ -f user_init_last.sh ]
then
......
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