summaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-03-28 15:44:15 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2019-03-28 16:46:24 +0200
commit411dd4c88a27b2ec048d6de80ec44419c22d75be (patch)
tree50e06cce0336a290c00bc64b6fd48560040520df /autobuild/agl
parent4ada6248406bc3d7795fc4b5f0f5752583504c08 (diff)
fix warnings by relocating autobuild scripts
- move autobuild scripts to top dir - remove submodules and update app/CMakeLists.txt to use libafb-helpers-qt instead. Bug-AGL: SPEC-2164 Change-Id: I9bf25a158d4eeba16ffb5555c8ca257cd81259f4 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
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
+