Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
[build] Add script for building in the Steam Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed May 2, 2020
1 parent 5e1e258 commit 02ef6e8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build-steamrt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -e

pushd `dirname $0`
if [ -f /.dockerenv ]; then
# If we are in a docker container then build...
export CC=/opt/gcc-9.2/bin/gcc-9.2
export CXX=/opt/gcc-9.2/bin/g++-9.2

rm -rf build.native

meson --buildtype release \
--strip \
build.native

pushd build.native
ninja
popd
else
# Launcher our docker container to build...
sudo docker run -it --rm --name dxvk-steamrt-instance -v $(pwd):/dxvk dxvk-steamrt /dxvk/build-steamrt.sh
fi
popd

0 comments on commit 02ef6e8

Please sign in to comment.