SDL: put only SDL-related paths in SDL_LIB_PATH
Putting everything that has lib/ directory is redundant and bloats environment for projects with many dependencies.
This commit is contained in:
parent
acefd0f368
commit
cff0adfc1b
|
@ -1,9 +1,9 @@
|
||||||
addSDLPath () {
|
addSDLPath () {
|
||||||
if [ -e "$1/include/SDL" ]; then
|
if [ -e "$1/include/SDL" ]; then
|
||||||
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
|
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
|
||||||
fi
|
if [ -e "$1/lib" ]; then
|
||||||
if [ -e "$1/lib" ]; then
|
export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
|
||||||
export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user