aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/autobuild/agl/autobuild
blob: ea352e747487b6a9012e6968d325089cbada2ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
	fi

popd