summaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-07-05 08:38:00 -0400
committerScott Murray <scott.murray@konsulko.com>2019-07-05 08:46:48 -0400
commitf17f20f028ac5f033ae106261cf36aa8438fd19d (patch)
tree0fe5968157f580c7508b33c0e6594dc5c3863694 /autobuild/agl
parent77ca59567f79dab6d85874a9a7d9e829d6075bbc (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: I03b9c2dee65d20c11d0c4b90ca9817bd3d53f255
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
+