forked from getsolus/linux-steam-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkgobuildy.sh
executable file
·35 lines (28 loc) · 941 Bytes
/
mkgobuildy.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
#!/bin/bash
set -e
DEFAULT_ARGS="-Dwith-libressl-mode=shim -Dwith-new-libcxx-abi=true"
if [[ ! -d buildroot/build32 ]]; then
ASFLAGS="$ASFLAGS --32" CFLAGS="$CFLAGS -m32" CXXFLAGS="$CXXFLAGS -m32" LDFLAGS="$LDFLAGS -m32" \
meson buildroot/build32 $DEFAULT_ARGS \
--prefix=/usr \
--sysconfdir=/etc \
--datadir=/usr/share \
--libdir=/usr/lib32 \
-Dwith-shim=none \
--buildtype debugoptimized
fi
if [[ ! -d buildroot/build64 ]]; then
meson buildroot/build64 $DEFAULT_ARGS \
--prefix=/usr \
--sysconfdir=/etc \
--datadir=/usr/share \
--libdir=/usr/lib64 \
-Dwith-shim=replacement \
-Dwith-steam-binary=/usr/lib64/steam/steam \
-Dwith-frontend=true \
--buildtype debugoptimized
fi
ninja -C buildroot/build32
ninja -C buildroot/build64
sudo ninja -C buildroot/build32 install
sudo ninja -C buildroot/build64 install