Salome HOME
initial commit : transfert of salome configuration files from internal git base
[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 # For -qt-harfbuzz option, see spns #9694
20 echo
21 echo "*** ./configure -prefix $PRODUCT_INSTALL -release -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"
22
23 ./configure -prefix $PRODUCT_INSTALL -release -opensource -nomake tests -nomake examples -no-rpath \
24     -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine \
25     -skip wayland -skip qtgamepad -system-freetype -qt-harfbuzz \
26     -no-openssl -no-glib
27
28 if [ $? -ne 0 ]
29 then
30     echo "ERROR on configure"
31     exit 2
32 fi
33
34 echo
35 echo "*** make" $MAKE_OPTIONS
36 make $MAKE_OPTIONS
37 if [ $? -ne 0 ]
38 then
39     echo "ERROR on make"
40     exit 3
41 fi
42
43 echo
44 echo "*** make install"
45 make install
46 if [ $? -ne 0 ]
47 then
48     echo "ERROR on make install"
49     exit 4
50 fi
51
52 # make clean pour nettoyer les sources
53 echo
54 echo "*** make clean"
55 make clean
56 if [ $? -ne 0 ]
57 then
58     echo "ERROR on make clean"
59     exit 5
60 fi
61
62 echo
63 echo "########## END"
64