mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
Somebody broke SDL when they updated it. The new version depends on AudioToolbox, so added that as dependency in torque3d.cmake
This commit is contained in:
parent
0c6174b045
commit
de53ac86c7
82 changed files with 2082 additions and 1035 deletions
8
Engine/lib/sdl/build-scripts/androidbuild.sh
Normal file → Executable file
8
Engine/lib/sdl/build-scripts/androidbuild.sh
Normal file → Executable file
|
|
@ -87,8 +87,8 @@ else
|
|||
fi
|
||||
|
||||
cp -r $SDLPATH/Android.mk $BUILDPATH/jni/SDL
|
||||
sed -i "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|YourSourceHere.c|$MKSOURCES|g" $BUILDPATH/jni/src/Android.mk
|
||||
sed -i -e "s|org\.libsdl\.app|$APP|g" $BUILDPATH/AndroidManifest.xml
|
||||
|
||||
# Copy user sources
|
||||
for src in "${SOURCES[@]}"
|
||||
|
|
@ -105,8 +105,8 @@ do
|
|||
done
|
||||
|
||||
ACTIVITY="${folder}Activity"
|
||||
sed -i "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
|
||||
sed -i "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
|
||||
sed -i -e "s|SDLActivity|$ACTIVITY|g" $BUILDPATH/AndroidManifest.xml
|
||||
sed -i -e "s|SDLActivity|$APP|g" $BUILDPATH/build.xml
|
||||
|
||||
# Fill in a default Activity
|
||||
echo "package $APP;" > "$ACTIVITY.java"
|
||||
|
|
|
|||
6
Engine/lib/sdl/build-scripts/checker-buildbot.sh
Normal file → Executable file
6
Engine/lib/sdl/build-scripts/checker-buildbot.sh
Normal file → Executable file
|
|
@ -61,13 +61,13 @@ mkdir checker-buildbot
|
|||
cd checker-buildbot
|
||||
|
||||
# You might want to do this for CMake-backed builds instead...
|
||||
PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug ..
|
||||
PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
|
||||
|
||||
# ...or run configure without the scan-build wrapper...
|
||||
#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure
|
||||
#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure --enable-assertions=enabled
|
||||
|
||||
# ...but this works for our buildbots just fine (EXCEPT ON LATEST MAC OS X).
|
||||
#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure
|
||||
#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
|
||||
|
||||
rm -rf analysis
|
||||
PATH="$CHECKERDIR:$PATH" scan-build -o analysis $MAKE
|
||||
|
|
|
|||
7
Engine/lib/sdl/build-scripts/emscripten-buildbot.sh
Normal file → Executable file
7
Engine/lib/sdl/build-scripts/emscripten-buildbot.sh
Normal file → Executable file
|
|
@ -51,13 +51,14 @@ mkdir buildbot
|
|||
pushd buildbot
|
||||
|
||||
echo "Configuring..."
|
||||
emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2 -Wno-warn-absolute-paths -Wdeclaration-after-statement -Werror=declaration-after-statement" --prefix="$PWD/emscripten-sdl2-installed"
|
||||
emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2 -Wno-warn-absolute-paths -Wdeclaration-after-statement -Werror=declaration-after-statement" --prefix="$PWD/emscripten-sdl2-installed" || exit $?
|
||||
|
||||
echo "Building..."
|
||||
emmake $MAKE
|
||||
emmake $MAKE || exit $?
|
||||
|
||||
echo "Moving things around..."
|
||||
emmake $MAKE install
|
||||
emmake $MAKE install || exit $?
|
||||
|
||||
# Fix up a few things to a real install path
|
||||
perl -w -pi -e "s#$PWD/emscripten-sdl2-installed#/usr/local#g;" ./emscripten-sdl2-installed/lib/libSDL2.la ./emscripten-sdl2-installed/lib/pkgconfig/sdl2.pc ./emscripten-sdl2-installed/bin/sdl2-config
|
||||
mkdir -p ./usr
|
||||
|
|
|
|||
6
Engine/lib/sdl/build-scripts/g++-fat.sh
Normal file → Executable file
6
Engine/lib/sdl/build-scripts/g++-fat.sh
Normal file → Executable file
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
|
||||
|
||||
# Intel 32-bit compiler flags (10.5 runtime compatibility)
|
||||
GCC_COMPILE_X86="g++ -arch i386 -mmacosx-version-min=10.5 \
|
||||
# Intel 32-bit compiler flags (10.6 runtime compatibility)
|
||||
GCC_COMPILE_X86="g++ -arch i386 -mmacosx-version-min=10.6 \
|
||||
-I/usr/local/include"
|
||||
|
||||
GCC_LINK_X86="-mmacosx-version-min=10.5"
|
||||
GCC_LINK_X86="-mmacosx-version-min=10.6"
|
||||
|
||||
# Intel 64-bit compiler flags (10.6 runtime compatibility)
|
||||
GCC_COMPILE_X64="g++ -arch x86_64 -mmacosx-version-min=10.6 \
|
||||
|
|
|
|||
8
Engine/lib/sdl/build-scripts/gcc-fat.sh
Normal file → Executable file
8
Engine/lib/sdl/build-scripts/gcc-fat.sh
Normal file → Executable file
|
|
@ -6,15 +6,15 @@
|
|||
|
||||
DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
|
||||
|
||||
# Intel 32-bit compiler flags (10.5 runtime compatibility)
|
||||
GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.5 \
|
||||
# Intel 32-bit compiler flags (10.6 runtime compatibility)
|
||||
GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.6 \
|
||||
-I/usr/local/include"
|
||||
|
||||
GCC_LINK_X86="-mmacosx-version-min=10.5"
|
||||
GCC_LINK_X86="-mmacosx-version-min=10.6"
|
||||
|
||||
# Intel 64-bit compiler flags (10.6 runtime compatibility)
|
||||
GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.6 \
|
||||
-DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
|
||||
-DMAC_OS_X_VERSION_MIN_REQUIRED=1060 \
|
||||
-I/usr/local/include"
|
||||
|
||||
GCC_LINK_X64="-mmacosx-version-min=10.6"
|
||||
|
|
|
|||
0
Engine/lib/sdl/build-scripts/install-sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/install-sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/iosbuild.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/iosbuild.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/ltmain.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/ltmain.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/mkinstalldirs
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/mkinstalldirs
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/nacl-buildbot.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/nacl-buildbot.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/naclbuild.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/naclbuild.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/raspberrypi-buildbot.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/raspberrypi-buildbot.sh
Normal file → Executable file
4
Engine/lib/sdl/build-scripts/showrev.sh
Normal file → Executable file
4
Engine/lib/sdl/build-scripts/showrev.sh
Normal file → Executable file
|
|
@ -2,6 +2,4 @@
|
|||
#
|
||||
# Print the current source revision, if available
|
||||
|
||||
# FIXME: this prints the tip, which isn't useful if you're on a different
|
||||
# branch, or just not sync'd to the tip.
|
||||
hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)
|
||||
hg parents --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)
|
||||
|
|
|
|||
0
Engine/lib/sdl/build-scripts/strip_fPIC.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/strip_fPIC.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/update-copyright.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/update-copyright.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/updaterev.sh
Normal file → Executable file
0
Engine/lib/sdl/build-scripts/updaterev.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue