mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Prevent erroring in gen-modules when no source files are found (needed in some
love-experiments branches)
This commit is contained in:
@@ -78,11 +78,13 @@ genmodules()
|
||||
for library in *; do
|
||||
NAME="LOVE_LIBRARY_$(upper "$library")"
|
||||
flags="$flags library-$library"
|
||||
|
||||
printf "if $NAME\n"
|
||||
printf "liblove${love_amsuffix}_la_SOURCES += \\\\\n"
|
||||
FILES="$(sourcefind "$library" | sed "s/^/ /")"
|
||||
printf "${FILES:0:${#FILES}-2}\nendif\n\n"
|
||||
|
||||
if [[ ${#FILES} -gt 2 ]]; then
|
||||
printf "if $NAME\n"
|
||||
printf "liblove${love_amsuffix}_la_SOURCES += \\\\\n"
|
||||
printf "${FILES:0:${#FILES}-2}\nendif\n\n"
|
||||
fi
|
||||
done
|
||||
cd ../..
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user