summaryrefslogtreecommitdiff
path: root/src/env.sh
blob: 66591f6b81be369e3ecebb95559af842623f0db9 (plain)
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
doecho() {
	echo $@
	eval $@
}

home=~ben

if [ "$HOSTNAME" = "blx" ]; then
doecho export prefix=$home/.local
else
doecho export prefix=$home/dist
fi

doecho export 'ACLOCAL="aclocal -I '$prefix'/share/aclocal"'

doecho export LD_LIBRARY_PATH="$prefix/lib"
doecho export WESTON_LIBRARY_PATH="$LD_LIBRARY_PATH"
doecho export PKG_CONFIG_PATH=$LD_LIBRARY_PATH/pkgconfig
#doecho export C_INCLUDE_PATH="$prefix/include"

doecho export EGL_DRIVER=egl_dri2
#doecho export EGL_DRIVER=egl_gallium

doecho export EGL_LOG_LEVEL=debug
#doecho export EGL_PLATFORM=wayland

if [ "x$XDG_RUNTIME_DIR" = "x" ]; then
	doecho export XDG_RUNTIME_DIR=$home/src
fi
doecho export SDL_VIDEODRIVER=wayland