mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
6d85b9e990
* The python we were using on trusty was EOL and so breaking in sphinx. Rather than continuing on trusty, we upgrade to bionic and deliberately target gcc-5 and clang-3.8 (the only thing we care about being old/minspec to ensure we don't break it).
29 lines
444 B
Bash
Executable File
29 lines
444 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Switch to the gcc/clang version we want
|
|
if [ $CC == "gcc" ]; then
|
|
export CC=gcc-5;
|
|
export CXX=g++-5;
|
|
else
|
|
export CC=clang-3.8;
|
|
export CXX=clang++-3.8;
|
|
fi
|
|
|
|
export QT_SELECT=qt5
|
|
|
|
mkdir build
|
|
cd build
|
|
if [[ "$RELEASE_BUILD" == "1" ]]; then
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
else
|
|
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
fi
|
|
make -j2
|
|
|
|
echo "--- Running unit tests ---"
|
|
|
|
./bin/renderdoccmd test unit
|
|
./bin/qrenderdoc --unittest
|