Architectures 'x86_64' and 'armv7l' are supported. Execute:
- > tools/build-with-docker
+ > tools/build-with-docker [variant: [Release]|Debug]
Note: database resources building is unsupported at the moment using docker.
then
exec ./`basename $0` $@
else
- cmake -DSKIP_DATABASE_BUILD=1 $@ .
+ VARIANT=${VARIANT:-Release}
+ cmake -DSKIP_DATABASE_BUILD=1 -DCMAKE_BUILD_TYPE=${VARIANT} $@ .
make -j `grep processor /proc/cpuinfo | wc -l` $2
#make doc
fi
REPO_DIR="$(git rev-parse --show-toplevel 2>/dev/null)"
[ -z "$REPO_DIR" ] && { echo "You must execute under a valid git repository !" ; exit 1 ; }
+VARIANT=${1:-Release}
+
#############
# FUNCTIONS #
#############
# EXECUTION #
#############
+echo
+echo "Remember usage: $0 [variant: Release|Debug], Release by default"
+echo
+
TAG=$(${REPO_DIR}/tools/version)
# Build compilation image:
build_image ${REPO_DIR}/docker-images/anna-build-nodb # this image has neither oracle nor mysql installed
# Build source with previous compilation image:
-docker run --rm -it -u $(id -u):$(id -g) -v ${REPO_DIR}:/code -w /code anna-build-nodb:${TAG}
+docker run --rm -it -u $(id -u):$(id -g) -e VARIANT=${VARIANT} -v ${REPO_DIR}:/code -w /code anna-build-nodb:${TAG}