2016-08-22 05:24:00 +02:00
|
|
|
addSDLPath () {
|
|
|
|
if [ -e "$1/include/SDL" ]; then
|
2019-11-07 21:20:02 +01:00
|
|
|
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
|
2016-08-22 05:24:00 +02:00
|
|
|
fi
|
2019-11-08 19:58:27 +01:00
|
|
|
if [ -e "$1/lib" ]; then
|
2019-11-20 03:43:44 +01:00
|
|
|
export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
|
2016-08-22 05:24:00 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-08-11 00:22:07 +02:00
|
|
|
addEnvHooks "$hostOffset" addSDLPath
|