Skip to content

Commit

Permalink
Make toolchain for building ffmpeg customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Jun 19, 2014
1 parent 95b84b1 commit aa47bce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-win-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ZLIB_GIT='git://github.com/madler/zlib.git'
OPENCORE_AMR_GIT='git://git.code.sf.net/p/opencore-amr/code'

usage() {
echo 'usage: build-win-deps.sh [ffmpeg|libav]'
echo 'usage: build-win-deps.sh [ffmpeg|libav] <toolchain>'
echo ''
echo 'Build files will be placed in the directory the script is run from (so'
echo 'you may want to run it from outside of the ffms2 tree).'
Expand All @@ -27,6 +27,8 @@ if [[ $LIB =~ amd64 ]]; then
platform='x64'
fi

toolchain=${2:-msvc}

clone_or_update() {
if [ -d $1 ]; then
cd $1
Expand Down Expand Up @@ -165,7 +167,7 @@ ffmpeg_common_flags=" \
--extra-cflags=-D_SYSCRT \
--extra-cflags=-wd4005 \
--extra-cflags=-wd4189 \
--toolchain=msvc \
--toolchain=$toolchain \
--prefix=$work_dir/junk"

cd $work_dir/$fork
Expand Down

0 comments on commit aa47bce

Please sign in to comment.