8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
10 lines
260 B
Bash
10 lines
260 B
Bash
addSDLPath () {
|
|
if [ -e "$1/include/SDL" ]; then
|
|
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
|
|
fi
|
|
if [ -e "$1/lib" ]; then
|
|
export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
|
|
fi
|
|
}
|
|
|
|
addEnvHooks "$hostOffset" addSDLPath
|