fix warnings by relocating autobuild scripts
[apps/mixer.git] / autobuild / agl / autobuild
diff --git a/autobuild/agl/autobuild b/autobuild/agl/autobuild
new file mode 100755 (executable)
index 0000000..883293d
--- /dev/null
@@ -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
+