echo " $0 [TARGET_OS] [TARGET_ARCH] [path/to/ffmpeg] [config-only]"
echo
echo "Valid combinations are linux [ia32|x64|mipsel|arm|arm-neon]"
+ echo " linux-noasm x64"
echo " win [ia32|x64]"
echo " win-vs2013 [ia32|x64]"
echo " mac [ia32|x64]"
# Check TARGET_OS (TARGET_ARCH is checked during configuration).
if [[ "$TARGET_OS" != "linux" &&
+ "$TARGET_OS" != "linux-noasm" &&
"$TARGET_OS" != "mac" &&
"$TARGET_OS" != "win" &&
"$TARGET_OS" != "win-vs2013" ]]; then
- echo "Valid target OSes are: linux, mac, win, win-vs2013"
+ echo "Valid target OSes are: linux, linux-noasm, mac, win, win-vs2013"
exit 1
fi
add_flag_common --enable-parser=vp3,vorbis,vp8
# Linux only.
-if [ "$TARGET_OS" = "linux" ]; then
+if [[ "$TARGET_OS" = "linux" || "$TARGET_OS" = "linux-noasm" ]]; then
if [ "$TARGET_ARCH" = "x64" ]; then
# Nothing to add for now.
add_flag_common ""
fi
fi
+if [ "$TARGET_OS" = "linux-noasm" ]; then
+ if [ "$TARGET_ARCH" = "x64" ]; then
+ add_flag_common --disable-asm
+ add_flag_common --disable-inline-asm
+ else
+ echo "Error: Unknown TARGET_ARCH=$TARGET_ARCH for TARGET_OS=$TARGET_OS!"
+ exit 1
+ fi
+fi
+
# Should be run on Windows.
if [ "$TARGET_OS" = "win" ]; then
if [ "$HOST_OS" = "win" ]; then