-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathqmake.sh
executable file
·65 lines (64 loc) · 1.93 KB
/
qmake.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
#echo "ATTENTION: qmake modified for ARM prozessor"
#qmake "INCLUDEPATH=" $1 $2 $3 $4 $5 $6 $7 $8
#exit
#<Mac version>
if [ -x /usr/local/Cellar/qt/5.10.0/bin/qmake ]; then
/usr/local/Cellar/qt/5.10.0/bin/qmake $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
#</Mac version>
export osversion=$(grep Linux /proc/version)
if [ "x${osversion}" = "x" ]; then
echo "run qmake on Mac"
qmake $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
##########################################################
# use qt5 if available #
##########################################################
if [ -x /usr/bin/qmake-qt5 ]; then
echo "run /usr/bin/qmake-qt5"
/usr/bin/qmake-qt5 "QMAKE_CXXFLAGS=$RPM_OPT_FLAGS" "QMAKE_CFLAGS=$RPM_OPT_FLAGS" $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
if [ -x /usr/bin/qmake ]; then
echo "run /usr/bin/qmake"
/usr/bin/qmake "QMAKE_CXXFLAGS=$RPM_OPT_FLAGS" "QMAKE_CFLAGS=$RPM_OPT_FLAGS" $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
##########################################################
# fucking stuff to call qmake on different distributions #
##########################################################
if [ -x /usr/bin/qmake-qt4 ]; then
/usr/bin/qmake-qt4 $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
if [ -x /usr/lib/qt4/bin/qmake-qt4 ]; then
/usr/lib/qt4/bin/qmake-qt4 $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
if [ -x /usr/lib/qt4/bin/qmake ]; then
/usr/lib/qt4/bin/qmake $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
#
# added following 2 if because of rhel/centos x86_64 distributions
#
if [ -x /usr/lib64/qt4/bin/qmake-qt4 ]; then
/usr/lib64/qt4/bin/qmake-qt4 $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
if [ -x /usr/lib64/qt4/bin/qmake ]; then
/usr/lib64/qt4/bin/qmake $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
if [ -x /usr/bin/qmake ]; then
/usr/bin/qmake $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
if [ -x /opt/pvb/fake_qmake/fake_qmake ]; then
/opt/pvb/fake_qmake/fake_qmake -fake $1 $2 $3 $4 $5 $6 $7 $8
exit
fi
qmake $1 $2 $3 $4 $5 $6 $7 $8