summaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorOuyang Jun <ouyangj.fnst@cn.fujitsu.com>2019-07-24 04:33:26 -0700
committerOuyang Jun <ouyangj.fnst@cn.fujitsu.com>2019-07-25 00:35:57 -0700
commita61b0a9931e16a51fd819167cc597d84b52ad266 (patch)
tree55ec9cba45cb9518911b497f78573dabc4bebecc /autobuild/agl
parent33258140525123d6a38900811c2df3e14f4e8337 (diff)
Minimal cluster demo gauges that can be used standalone
Bug-AGL: SPEC-2487 Signed-off-by: Ouyang Jun <ouyangj.fnst@cn.fujitsu.com> Signed-off-by: Zhou Mingying <zhoumy@cn.fujitsu.com> Signed-off-by: Liu Wenlong <liuwl.fnst@cn.fujitsu.com> Change-Id: I4859ab9af2f5c3bbeff5ca6b14a7943797518908
Diffstat (limited to 'autobuild/agl')
-rwxr-xr-xautobuild/agl/autobuild22
1 files changed, 22 insertions, 0 deletions
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
+