X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=autobuild%2Fagl%2Fautobuild;fp=autobuild%2Fagl%2Fautobuild;h=883293d63bd1ae950deaec9b822719058f2370fc;hb=411dd4c88a27b2ec048d6de80ec44419c22d75be;hp=0000000000000000000000000000000000000000;hpb=4ada6248406bc3d7795fc4b5f0f5752583504c08;p=apps%2Fmixer.git diff --git a/autobuild/agl/autobuild b/autobuild/agl/autobuild new file mode 100755 index 0000000..883293d --- /dev/null +++ b/autobuild/agl/autobuild @@ -0,0 +1,22 @@ +#!/bin/bash + +SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../../" +BUILD_DIR=$( echo "$2" | cut -d'=' -f2 ) + +# HACK: alias should be expanded in script for cmake to work properly +shopt -s expand_aliases +# HACK: source again the SDK because of the alias +source $SDKTARGETSYSROOT/../../environment-setup-* + +pushd $BUILD_DIR + + cmake $SOURCE_DIR + make + + if [ "$1" == "package" ]; then + make widget + cp *.wgt package/ + fi + +popd +