Files
gb-emu/.buildbot
Max Regan 6a9e8b06a7 configure: add a proper configure script
It's not very good, but it supports all of the options by the
previous far-worse Makefile configure targets, and also now supports
out-of-tree builds.

Also include the relevent updates to the .buildbot script and
.gitignore.
2017-05-31 22:03:21 -07:00

45 lines
704 B
Bash
Executable File

#!/bin/bash
set -e
do_build()
{
mkdir build || true
cd build
../configure
make
}
do_test()
{
mkdir build || true
cd build
../configure --debug
make check
}
do_coverage()
{
mkdir build || true
cd build
../configure --coverage
make coverage-report
mkdir -p ./buildbot-upload/coverage/
cp -r ./build/coverage/html/* ./buildbot-upload/coverage/
}
do_docs()
{
doxygen ./doxygen.config
mkdir -p ./buildbot-upload/docs/
cp -r ./doxygen/html/* ./buildbot-upload/docs/
}
case $1 in
"build") do_build ;;
"test") do_test ;;
"coverage") do_coverage ;;
"docs") do_docs ;;
*) echo "$1 is not supported in this project"
esac