X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=inline;f=qcsrc%2Ftools%2Fcompilationunits.sh;h=e3d1eb01368df1c714c55d7264eda99e89ff8bbd;hb=3ac61b98c83be079c61cf525491d2028b2a889dc;hp=a43185b16c952c8e9247ceb68749353c4bd981d8;hpb=63f34ee151e32cd041437201a6b8fecf8971a928;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/tools/compilationunits.sh b/qcsrc/tools/compilationunits.sh index a43185b16..e3d1eb013 100755 --- a/qcsrc/tools/compilationunits.sh +++ b/qcsrc/tools/compilationunits.sh @@ -30,6 +30,9 @@ declare -a QCCDEFS=( -DNDEBUG=1 -DXONOTIC=1 -DWATERMARK="\"$(git describe --tags --dirty='~')\"" + -DENABLE_EFFECTINFO=0 + -DENABLE_DEBUGDRAW=0 + -DENABLE_DEBUGTRACE=0 ) QCCDEFS="${QCCDEFS[@]}" @@ -56,8 +59,10 @@ function check1() { declare -l prog="${1}" declare -l file="${2}" MODE=${prog} + includes="-include lib/_all.inc" + [ -f ${prog}/_all.qh ] && includes="${includes} -include ${prog}/_all.qh" qpp ${file} test.dat \ - -include lib/_all.inc -include ${prog}/_all.qh \ + ${includes} \ -I. ${QCCIDENT} ${QCCDEFS} > ${WORKDIR}/${prog}.qc qcc ${QCCFLAGS} -o ../${WORKDIR}/test.dat ../${WORKDIR}/${prog}.qc >/dev/null } @@ -69,6 +74,12 @@ function check() { done } -check client -check server -check menu +if [ ${#@} -eq 0 ]; then + check client + check server + check menu +else + for var in ${@}; do + check ${var} + done +fi