Skip to content

Commit 9b478f5

Browse files
committed
Update setup.sh to use array of strings
1 parent 7aa2e5e commit 9b478f5

File tree

1 file changed

+1
-9
lines changed
  • examples/example_android_sdl3_opengl3

1 file changed

+1
-9
lines changed

examples/example_android_sdl3_opengl3/setup.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,12 @@ SOURCES=( \
3030
"../../backends/imgui_impl_sdl3.h " \
3131
"../../examples/example_sdl3_opengl3/main.cpp")
3232

33-
SOURCE_AS_STR=""
34-
for val in "${SOURCES[@]}";
35-
do
36-
SOURCE_AS_STR+=$val
37-
done
38-
39-
echo -n $SOURCE_AS_STR
40-
4133
ANDROID_JNI_PATH="${SDL_DIR}/build/${JAVA_PKG_NAME}/app/jni/src"
4234
ANDROID_STRINGS_PATH="${SDL_DIR}/build/${JAVA_PKG_NAME}/app/src/main/res/values"
4335

4436

4537
if [ ! -d "${ANDROID_JNI_PATH}" ]; then
46-
bash ${SDL_BUILD_SCRIPTS_DIR}/androidbuild.sh $JAVA_PKG_NAME < "${SOURCE_AS_STR}"
38+
bash ${SDL_BUILD_SCRIPTS_DIR}/androidbuild.sh $JAVA_PKG_NAME "${SOURCES[@]}"
4739
sed -i -e "s|-lGLESv2|-lGLESv2 -lGLESv3|" $ANDROID_JNI_PATH/Android.mk
4840
sed -i -e "s|Game|$APP_NAME|g" $ANDROID_STRINGS_PATH/strings.xml
4941
fi

0 commit comments

Comments
 (0)