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.
36 lines
992 B
Bash
Executable File
36 lines
992 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Usage: the first argument selects the build type:
|
|
# - release, to build release only
|
|
# - debug, to build debug only
|
|
# - continuous, to build release and debug
|
|
# - presubmit, for presubmit builds
|
|
#
|
|
# The default is release
|
|
|
|
set -e
|
|
set -x
|
|
|
|
UNAME=`echo $(uname)`
|
|
LC_UNAME=`echo $UNAME | tr '[:upper:]' '[:lower:]'`
|
|
|
|
FILAMENT_ANDROID_CI_BUILD=true
|
|
|
|
# build-common.sh will generate the following variables:
|
|
# $GENERATE_ARCHIVES
|
|
# $BUILD_DEBUG
|
|
# $BUILD_RELEASE
|
|
source `dirname $0`/../common/ci-common.sh
|
|
if [[ "$LC_UNAME" == "linux" ]]; then
|
|
source `dirname $0`/../linux/ci-common.sh
|
|
elif [[ "$LC_UNAME" == "darwin" ]]; then
|
|
source `dirname $0`/../mac/ci-common.sh
|
|
fi
|
|
source `dirname $0`/../common/build-common.sh
|
|
|
|
yes | ${ANDROID_HOME}/tools/bin/sdkmanager --update >/dev/null && \
|
|
yes | ${ANDROID_HOME}/tools/bin/sdkmanager --licenses >/dev/null
|
|
|
|
pushd `dirname $0`/../.. > /dev/null
|
|
./build.sh -p android -c $GENERATE_ARCHIVES $BUILD_DEBUG $BUILD_RELEASE
|