aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-old-make-cmake-qmake.sh
blob: 50d2d72531c8b7f73ed66fb615bdc13c5db91ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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                  /!\/!\/!\    #
        ######################################################################