mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-25 21:03:32 +01:00
19 lines
361 B
Plaintext
19 lines
361 B
Plaintext
# Configuration for the Ninja package
|
|
|
|
NINJA=${NINJA:-$(command -v ninja)}
|
|
|
|
if [[ ${NINJA}.x == ".x" ]] ; then
|
|
NINJA=${QP_ROOT}/bin/ninja
|
|
fi
|
|
|
|
export NINJA
|
|
|
|
function ninja () {
|
|
if [[ -f ${QP_ROOT}/build.ninja ]] ; then
|
|
${QP_ROOT}/bin/ninja "$@"
|
|
else
|
|
>&2 echo "Error: build.ninja does not exists.
|
|
You need to run ./configure first."
|
|
fi
|
|
}
|