mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Android: Fixed androidbuild.sh not working on OS X (thanks, Steffen!).
Fixes Bugzilla #2429.
This commit is contained in:
parent
58b323f192
commit
e7a9095f55
@ -87,8 +87,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cp -r $SDLPATH/Android.mk $BUILDPATH/jni/SDL
|
cp -r $SDLPATH/Android.mk $BUILDPATH/jni/SDL
|
||||||
sed -i "s|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/jni/src/Android.mk
|
sed -i -e "s|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/jni/src/Android.mk
|
||||||
sed -i "s|org\.libsdl\.app|$APP|g" $BUILDPATH/AndroidManifest.xml
|
sed -i -e "s|org\.libsdl\.app|$APP|g" $BUILDPATH/AndroidManifest.xml
|
||||||
|
|
||||||
# Copy user sources
|
# Copy user sources
|
||||||
for src in "${SOURCES[@]}"
|
for src in "${SOURCES[@]}"
|
||||||
@ -105,8 +105,8 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
ACTIVITY="${folder}Activity"
|
ACTIVITY="${folder}Activity"
|
||||||
sed -i "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
|
sed -i -e "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
|
||||||
sed -i "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
|
sed -i -e "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
|
||||||
|
|
||||||
# Fill in a default Activity
|
# Fill in a default Activity
|
||||||
echo "package $APP;" > "$ACTIVITY.java"
|
echo "package $APP;" > "$ACTIVITY.java"
|
||||||
|
Loading…
Reference in New Issue
Block a user