diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-31 12:55:15 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-11-20 11:25:19 +0100 |
commit | 3888016540a8eac7db193f6b052a59f986bd813b (patch) | |
tree | c3a7c01da35f9fedd4b36fc7d139d6773923344b /jjb/common/include-apps-build-app.sh | |
parent | 3c9cfcd4831944ab2f86783e456dfdac224de4ac (diff) |
Comply to the SPEC-495
The Applications from AGL framework should have a full packaging solution, Independent of yocto workflow.
Unfortunately the build part of the Applications is only in documentation or in yocto recipes.
The Applications build with AGL framework must be automated without any yocto recipes.
Change-Id: Ibba27c037df55c1487f0bcc7fdb75e8572515d4f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'jjb/common/include-apps-build-app.sh')
-rw-r--r-- | jjb/common/include-apps-build-app.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/jjb/common/include-apps-build-app.sh b/jjb/common/include-apps-build-app.sh index d79c88eb..91105eae 100644 --- a/jjb/common/include-apps-build-app.sh +++ b/jjb/common/include-apps-build-app.sh @@ -73,11 +73,31 @@ if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "apps/"); t # Fixme: use aglbuild script set -x + export DONE=0 export isAUTOBUILD=0 + if [[ -f autobuild/agl/autobuild ]] + then + mkdir -p $(pwd)/package/ + chmod a+x autobuild/agl/autobuild + autobuild/agl/autobuild package DEST=$(pwd)/package + export isAUTOBUILD=1 + export DONE=1 + else + echo "Your binding doesn't use an autobuild script. Please add it in your project." + echo "It has to be stored in your root project directory in autobuild/agl/autobuild file" + echo "and be able to generate an AGL package in the build root directory using the call" + echo "autobuild/agl/autobuild package DEST=build" + fi + + ###################################################################### + # /!\/!\/!\ DEPRECATED FALLBACK WAY TO BUILD AGL APPS /!\/!\/!\ # + ###################################################################### + export isCMAKE=0 export isMAKE=0 export isQMAKE=0 + if test x"0" = x"$DONE" -a -f conf.d/autobuild/agl/autobuild ; then mkdir -p $(pwd)/package/ conf.d/autobuild/agl/autobuild package DEST=$(pwd)/package/ @@ -113,6 +133,10 @@ if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "apps/"); t export isQMAKE=1 export DONE=1 fi + ###################################################################### + # /!\/!\/!\ Ends Here /!\/!\/!\ # + ###################################################################### + popd HANDLED="yes" |