forked from sparker256/xsaitekpanels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build4linux
executable file
·41 lines (34 loc) · 1.04 KB
/
build4linux
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
#!/bin/bash
# We'll try to build on N+1 CPUs we have available. The extra +1 is to allow
# for one make instance to be blocking on disk.
NCPUS=$(( $(grep 'processor[[:space:]]\+:' /proc/cpuinfo | wc -l) + 1 ))
make distclean >/dev/null
rm -rf release
mkdir -p release/Xsaitekpanels/64 &&
qmake -spec win32-g++ && qmake -set CROSS_COMPILE x86_64-w64-mingw32- && \
make -j $NCPUS && \
cp plugin/release/win.xpl1.dll release/Xsaitekpanels/64/win.xpl
if [ $? != 0 ] ; then
exit
fi
make distclean >/dev/null
qmake -spec win32-g++ && qmake -set CROSS_COMPILE i686-w64-mingw32- && \
make -j $NCPUS && \
cp plugin/release/win.xpl1.dll release/Xsaitekpanels/win.xpl
if [ $? != 0 ] ; then
exit
fi
make distclean >/dev/null
qmake -spec linux-g++-64 && make -j $NCPUS &&
cp plugin/liblin.xpl.so release/Xsaitekpanels/64/lin.xpl
if [ $? != 0 ] ; then
exit
fi
make distclean >/dev/null
qmake -spec linux-g++-32 && make -j $NCPUS &&
cp plugin/liblin.xpl.so release/Xsaitekpanels/lin.xpl
if [ $? != 0 ] ; then
exit
fi
make distclean >/dev/null
#