diff options
author | 2020-08-10 15:01:21 +0200 | |
---|---|---|
committer | 2020-08-10 20:16:09 +0200 | |
commit | 13c79593eb0d2e4da9a9823a6154846618ae1da8 (patch) | |
tree | 50af716b50f34c786cbec91b04dc0665a9916d22 /jjb/common/include-old-make-cmake-qmake.sh | |
parent | 173409bf67a5bc20cef4a58ab4e289d28765e76d (diff) |
SPEC-3482: Add package-all in the autobuild case
Add package-all in the autobuild case
v2 (jsmoeller): update autobuild section, fail on non-autobuild
and remove old code.
Bug-AGL: SPEC-3482
Change-Id: I57063a3955e140c03d4ae9a23746014a45074669
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-old-make-cmake-qmake.sh')
-rw-r--r-- | jjb/common/include-old-make-cmake-qmake.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/jjb/common/include-old-make-cmake-qmake.sh b/jjb/common/include-old-make-cmake-qmake.sh new file mode 100644 index 00000000..50d2d725 --- /dev/null +++ b/jjb/common/include-old-make-cmake-qmake.sh @@ -0,0 +1,40 @@ + ###################################################################### + # /!\/!\/!\ DEPRECATED FALLBACK WAY TO BUILD AGL APPS /!\/!\/!\ # + ###################################################################### + + export isCMAKE=0 + export isMAKE=0 + export isQMAKE=0 + + if test x"0" = x"$DONE" -a -f CMakeLists.txt; then + echo "DEBUG: fallback to cmake." + rm -rf build || true + mkdir build + pushd build + cmake ../ + make + popd + export isCMAKE=1 + export DONE=1 + fi + if test x"0" = x"$DONE" -a -f Makefile ; then + echo "DEBUG: fallback to make" + make + echo "DEBUG: make package" + make package + export isMAKE=1 + export DONE=1 + fi + if test x"0" = x"$DONE" -a -f ${MYPROJECT}.pro; then + echo "DEBUG: fallback to qmake" + qmake + echo "DEBUG: qmake: make" + make + echo "DEBUG: qmake: make package" + make package + export isQMAKE=1 + export DONE=1 + fi + ###################################################################### + # /!\/!\/!\ Ends Here /!\/!\/!\ # + ###################################################################### |