Skip to content
Browse files

libav: Clean build dir if submodule is updated

  • Loading branch information...
1 parent 2226b76 commit 69618f32867f765430400972417ff27963658d31 @andoma committed
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"

0 comments on commit 69618f3

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