blob: 17d86173590b9cd24e605322b4e7100279e33627 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
SPCOMPFLAGS=${SPCOMPFLAGS:-}
dontUseSourcepawnFindHeaders=${dontUseSourcepawnFindHeaders:-}
sourcepawnFindHeaders(){
[ -n "${dontUseSourcepawnFindHeaders:-}" ] && return
for plug in $buildInputs; do
local ipath="$plug/share/addons/sourcemod/scripting/include"
if [ -d "$ipath" ]; then
echo "found sourcepawn headers: \"$ipath\""
SPCOMPFLAGS="$SPCOMPFLAGS -i $ipath"
fi
done
dontUseSourcepawnFindHeaders=1
export SPCOMPFLAGS dontUseSourcepawnFindHeaders
}
addEnvHooks "$targetOffset" sourcepawnFindHeaders
|