Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

libav: Clean build dir if submodule is updated

  • Loading branch information...
commit 69618f32867f765430400972417ff27963658d31 1 parent 2226b76
@andoma authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 support/configure.inc
View
12 support/configure.inc
@@ -273,14 +273,18 @@ libav_setup() {
return
fi
- echo "Updating libav... (if needed)"
+
+ status=`git submodule status ext/libav | cut -b 1`
+ echo "Updating libav, submodule status = $status"
git submodule update --init ext/libav
echo "Configuring libav..."
-
+
LIBAV_BUILD_DIR=${BUILDDIR}/libav/build
LIBAV_INSTALL_DIR=${BUILDDIR}/libav/install
- mkdir -p ${LIBAV_BUILD_DIR}
- mkdir -p ${LIBAV_INSTALL_DIR}
+
+ [ "$status" = "+" ] && echo "Cleaning libav build dir" && rm -rf "${LIBAV_BUILD_DIR}"
+ mkdir -p "${LIBAV_BUILD_DIR}"
+ mkdir -p "${LIBAV_INSTALL_DIR}"
LIBAV_COMMON_FLAGS="--disable-encoders --disable-bsfs --disable-filters --disable-muxers --disable-devices --disable-protocols --disable-network --disable-shared --enable-static --disable-bzlib --disable-decoder=twinvq --disable-decoder=snow --disable-decoder=cavs --enable-encoder=png"
Please sign in to comment.
Something went wrong with that request. Please try again.