doubango-universal.sh 1.1 KB

1234567891011121314151617181920212223242526
  1. DOUBANGO_HOME="../mydoubs/doubango/branches/2.0/doubango/thirdparties/iphone/lib"
  2. ARM64="${DOUBANGO_HOME}/arm64"
  3. ARMV6="${DOUBANGO_HOME}/armv6"
  4. ARMV7="${DOUBANGO_HOME}/armv7"
  5. ARMV7S="${DOUBANGO_HOME}/armv7s"
  6. I386="${DOUBANGO_HOME}/i386"
  7. X86_64="${DOUBANGO_HOME}/x86_64"
  8. OUTPUT_HOME="./doubango-universal/iOS"
  9. for lib in libavcodec-lgpl.a libavcodec.a libavdevice-lgpl.a libavdevice.a libavfilter-lgpl.a libavfilter.a libavformat-lgpl.a libavformat.a libavutil-lgpl.a libavutil.a libcommon.a libcrypto.a libdecoder.a libencoder.a libg729b.a libgsm.a libopenh264.a libopus.a libpostproc.a libprocessing.a libspeex.a libspeexdsp.a libsrtp.a libssl.a libswresample-lgpl.a libswresample.a libswscale-lgpl.a libswscale.a libvpx.a libx264.a libyuv.a
  10. do
  11. libs="${ARM64}/$lib ${ARMV7}/$lib ${ARMV7S}/$lib ${I386}/$lib ${X86_64}/$lib"
  12. #armv6 is deprecated
  13. if [ ! -e ${ARMV6}/$lib ]; then
  14. echo "\n\n*****${ARMV6}/$lib not found :(******\n\n"
  15. else
  16. libs="$libs ${ARMV6}/$lib"
  17. fi
  18. echo "lipo ${libs} -create -output ${OUTPUT_HOME}/$lib"
  19. lipo ${libs} -create -output ${OUTPUT_HOME}/$lib
  20. done
  21. echo "done :)"