aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-01-14 09:35:23 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-01-14 09:35:23 +0000
commit810c2d34e7dd8ac77499cb0eb8023fc5f9448623 (patch)
tree2190436d6afc17767e70943527dd077deb75530e
parentc9855e38aefa03b163938448bdd6c04183a981d3 (diff)
downloadusdx-810c2d34e7dd8ac77499cb0eb8023fc5f9448623.tar.gz
usdx-810c2d34e7dd8ac77499cb0eb8023fc5f9448623.tar.xz
usdx-810c2d34e7dd8ac77499cb0eb8023fc5f9448623.zip
move MSVC compatibility headers stdint.h and inttypes.h
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2798 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rwxr-xr-xmediaplugin/dists/buildbot/win32-delphi-build.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/mediaplugin/dists/buildbot/win32-delphi-build.sh b/mediaplugin/dists/buildbot/win32-delphi-build.sh
index 6a045bd1..3474d7f8 100755
--- a/mediaplugin/dists/buildbot/win32-delphi-build.sh
+++ b/mediaplugin/dists/buildbot/win32-delphi-build.sh
@@ -8,6 +8,13 @@ if ([ "$GREP_DIR" != "/bin/grep.exe" ] && [ "$GREP_DIR" != "/usr/bin/grep.exe" ]
fi
cd src/mediaplugins/ffmpeg
./autogen.sh
-FFMPEG_LIBDIR="libffmpeg"
-./configure ffmpeg_CFLAGS="-I${FFMPEG_LIBDIR}/include" ffmpeg_LIBS="-L${FFMPEG_LIBDIR}/lib -lavcodec -lavformat -lavutil" libswscale_CFLAGS="-I${FFMPEG_LIBDIR}/include" libswscale_LIBS="-L${FFMPEG_LIBDIR}/lib -lswscale"
+FFMPEG_DIR="libffmpeg"
+FFMPEG_LIB="${FFMPEG_DIR}/lib"
+FFMPEG_INCLUDE="${FFMPEG_DIR}/include"
+# remove MSVC compatibility files inttypes.h and stdint.h
+if [ -e "${FFMPEG_INCLUDE}/inttypes.h" ]; then
+ mkdir -p "${FFMPEG_INCLUDE}/intheader"
+ mv -f "${FFMPEG_INCLUDE}/inttypes.h" "${FFMPEG_INCLUDE}/stdint.h" "${FFMPEG_INCLUDE}/intheader"
+fi
+./configure ffmpeg_CFLAGS="-I${FFMPEG_INCLUDE}" ffmpeg_LIBS="-L${FFMPEG_LIB} -lavcodec -lavformat -lavutil" libswscale_CFLAGS="-I${FFMPEG_INCLUDE}" libswscale_LIBS="-L${FFMPEG_LIB} -lswscale"
make compile