diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-08-11 08:13:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2020-08-11 08:13:02 +0000 |
commit | 3eac0fa051854a583618e0f3a879b767c26ddf3b (patch) | |
tree | 7ec20dbd017f81840d0cf583c2a83b45ca3e2d32 /jjb/common/include-old-make-cmake-qmake.sh | |
parent | f92a04cb21140a21f5649e1ce5b9fb3ddb97177f (diff) | |
parent | 13c79593eb0d2e4da9a9823a6154846618ae1da8 (diff) |
Merge "SPEC-3482: Add package-all in the autobuild case"
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 /!\/!\/!\ # + ###################################################################### |