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