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