Salome HOME
qt: clean build directory
[tools/sat_salome.git] / products / compil_scripts / qt-5.12.10.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "Qt" $VERSION
5 echo "##########################################################################"
6
7
8 if [[ $DIST_NAME == "FD" && $DIST_VERSION == "32" ]]
9 then
10     export  QMAKE_CXXFLAGS="-std=c++11"
11 fi
12
13 if [ -n "$SAT_DEBUG" ]
14 then
15     BUILD_TYPE="-debug"
16 else
17     BUILD_TYPE="-release"
18 fi
19
20 # clean build directory
21 rm -rf $BUILD_DIR && mkdir -p $BUILD_DIR && cd $BUILD_DIR
22
23 # For -qt-harfbuzz option, see spns #9694
24 echo
25 echo "*** $SOURCE_DIR/configure -prefix $PRODUCT_INSTALL $BUILD_TYPE -opensource -nomake tests -nomake examples -no-rpath -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine -skip wayland -skip qtgamepad -system-freetype -qt-harfbuzz -no-openssl -no-glib"
26
27 $SOURCE_DIR/configure -prefix $PRODUCT_INSTALL $BUILD_TYPE -opensource -nomake tests -nomake examples -no-rpath \
28     -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine \
29     -skip wayland -skip qtgamepad -system-freetype -qt-harfbuzz \
30     -no-openssl -no-glib
31
32 if [ $? -ne 0 ]
33 then
34     echo "ERROR on configure"
35     exit 2
36 fi
37
38 echo
39 echo "*** make" $MAKE_OPTIONS
40 make $MAKE_OPTIONS
41 if [ $? -ne 0 ]
42 then
43     echo "ERROR on make"
44     exit 3
45 fi
46
47 echo
48 echo "*** make install"
49 make install
50 if [ $? -ne 0 ]
51 then
52     echo "ERROR on make install"
53     exit 4
54 fi
55
56 # make clean pour nettoyer les sources
57 echo
58 echo "*** make clean"
59 make clean
60 if [ $? -ne 0 ]
61 then
62     echo "ERROR on make clean"
63     exit 5
64 fi
65
66 echo
67 echo "########## END"
68