9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-26 05:13:30 +01:00
qp2/etc/ninja.rc

19 lines
361 B
Plaintext
Raw Normal View History

2019-01-25 11:39:31 +01:00
# Configuration for the Ninja package
2020-02-24 20:02:09 +01:00
NINJA=${NINJA:-$(command -v ninja)}
2020-02-21 11:28:18 +01:00
if [[ ${NINJA}.x == ".x" ]] ; then
NINJA=${QP_ROOT}/bin/ninja
fi
export NINJA
2019-01-25 11:39:31 +01:00
function ninja () {
if [[ -f ${QP_ROOT}/build.ninja ]] ; then
2020-02-21 11:28:18 +01:00
${QP_ROOT}/bin/ninja "$@"
2019-01-25 11:39:31 +01:00
else
2020-02-21 11:28:18 +01:00
>&2 echo "Error: build.ninja does not exists.
2019-01-25 11:39:31 +01:00
You need to run ./configure first."
fi
}