c6edc9f3fe
allows also adding hlsdk libs to the image makes it easier to build, manage, and run
29 lines
476 B
Bash
Executable File
29 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
echo DESTINATION_IS_WRITABLE > /opt/hl/testfile
|
|
|
|
XDG_RUNTIME_DIR=/tmp weston \
|
|
--backend=headless \
|
|
--renderer=gl \
|
|
--width=1280 \
|
|
--height=800 \
|
|
--socket=wayland-headless &
|
|
|
|
build() {
|
|
pushd /build/xash3d-fwgs
|
|
./waf configure -T release -8 \
|
|
build \
|
|
install --destdir=/opt/hl
|
|
popd
|
|
}
|
|
|
|
rendertest() {
|
|
pushd /build/HLRTest/render
|
|
WAYLAND_DISPLAY=/tmp/wayland-headless ./rendertest.py --xash-dir /opt/hl run
|
|
popd
|
|
}
|
|
|
|
time build
|
|
time rendertest
|