Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating

  • Loading branch information...
commit b961668ad7266c5bb4b4e46c708f00217d4bb13d 1 parent 3eb6286
@gabriel authored
Showing with 30 additions and 0 deletions.
  1. +2 −0  combine-libs
  2. +2 −0  combine-x264-libs
  3. +26 −0 combine-xvid-libs
View
2  combine-libs
@@ -1,5 +1,7 @@
#!/bin/sh
+trap exit ERR
+
ARCHS="armv6 armv7 i386"
BUILD_LIBS="libavcodec.a libavdevice.a libavfilter.a libavformat.a libavutil.a libpostproc.a libswscale.a"
View
2  combine-x264-libs
@@ -1,5 +1,7 @@
#!/bin/sh
+trap exit ERR
+
ARCHS="armv6 armv7 i386"
BUILD_LIBS="libx264.a"
View
26 combine-xvid-libs
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+trap exit ERR
+
+ARCHS="armv6 armv7 i386"
+
+BUILD_LIBS="libxvidcore.a"
+
+OUTPUT_DIR="xvid-uarch"
+mkdir -p $OUTPUT_DIR/lib
+mkdir -p $OUTPUT_DIR/include
+
+for LIB in $BUILD_LIBS; do
+ LIPO_CREATE=""
+ for ARCH in $ARCHS; do
+ LIPO_CREATE="$LIPO_CREATE-arch $ARCH xvid-$ARCH/lib/$LIB "
+ done
+ OUTPUT="$OUTPUT_DIR/lib/$LIB"
+ echo "Creating: $OUTPUT"
+ lipo -create $LIPO_CREATE -output $OUTPUT
+ lipo -info $OUTPUT
+done
+
+echo "Copying headers from xvid-i386..."
+cp -R xvid-i386/include/* $OUTPUT_DIR/include
+

0 comments on commit b961668

Please sign in to comment.
Something went wrong with that request. Please try again.