build-script.sh 640 Bytes
Newer Older
1 2
#!/bin/bash

3
mkdir -p .cache
4
export PROJECT_CACHE=$HOME/.taste_AST_cache
5

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
rm -f simple_c_function.zip
zip simple_c_function simple_c_function/*

[ ! -z "$CLEANUP" ] && rm -rf binary.*

# Ada runtime
assert-builder-ocarina.py \
	-f \
	--aadlv2 \
	--keep-case \
	--interfaceView InterfaceView.aadl \
	--deploymentView DeploymentView.aadl \
	-o binary.linux.ada \
	--subC simple_c_function:simple_c_function.zip

# C runtime
assert-builder-ocarina.py \
	-f \
	-p \
	--aadlv2 \
	--keep-case \
	--interfaceView InterfaceView.aadl \
	--deploymentView DeploymentView.aadl \
	-o binary.linux.pohic \
	--subC simple_c_function:simple_c_function.zip