Files
filament/build/common/build-common.sh
Romain Guy 2e22a26ca5 Fix filamat build (#1005)
Filamat public headers were including a private header. This PR fixes
this problem. It also forces filamat to always be compiled to avoid
breaking filamat without noticing. The flag `-l` is not available
anymore in build.sh as a result.
2019-03-18 18:40:48 -07:00

38 lines
600 B
Bash
Executable File

#!/bin/bash
if [[ ! "$TARGET" ]]; then
if [[ "$1" ]]; then
TARGET=$1
else
TARGET=release
fi
fi
echo "Building $TARGET target"
BUILD_DEBUG=
BUILD_RELEASE=
GENERATE_ARCHIVES=
RUN_TESTS=
if [[ "$TARGET" == "presubmit" ]]; then
BUILD_RELEASE=release
fi
if [[ "$TARGET" == "debug" ]]; then
BUILD_DEBUG=debug
GENERATE_ARCHIVES=-a
fi
if [[ "$TARGET" == "release" ]]; then
BUILD_RELEASE=release
GENERATE_ARCHIVES=-a
fi
if [[ "$TARGET" == "continuous" ]]; then
BUILD_DEBUG=debug
BUILD_RELEASE=release
GENERATE_ARCHIVES=-a
RUN_TESTS=-u
fi