aboutsummaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-07-25 00:41:55 -0400
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-07-25 20:59:29 +0000
commita5c85dada0ec270cc17289fab569e6b6e6ab38b6 (patch)
tree92a21c890b87d2c555d5ac828f907b111084d95c /autobuild/agl
parenta15ca404ac293aab52d35f9fdbf992ac6ed55500 (diff)
Introduce autobuild scripts
Add agl and linux autobuild scripts to silence build warnings. These 2 scripts are based on the latest version of the autobuild script, but they've been customized to (i) work with the existing qmake files and (ii) the 'update' and 'package-test' targets have been removed. Bug-AGL: SPEC-2164 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: If468a015c37068ec8c438f57a9a5a1c2c0117d94
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
+