summaryrefslogtreecommitdiffstats
path: root/autobuild/agl/autobuild
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-07-05 08:48:43 -0400
committerScott Murray <scott.murray@konsulko.com>2019-07-05 08:48:43 -0400
commitadab62cc782bdf06da5c0ffe521c67544f934f9a (patch)
tree0e0760f183db1be992908323a42a25302e5b8188 /autobuild/agl/autobuild
parent869388493dbebbc7ab1bd95be68b12dcf3f76d4d (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: Ia2f785e1e3e8c3635a9a8a6966f694c3208a2d22
Diffstat (limited to 'autobuild/agl/autobuild')
-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
+