Aegisub/build/ffmpeg/configure.sh

45 lines
1 KiB
Bash
Raw Normal View History

2014-06-06 18:13:27 +02:00
platform='Win32'
suffix='x86'
2018-11-22 01:41:05 +01:00
if [[ $LIB =~ x64 ]]; then
2014-06-06 18:13:27 +02:00
platform='x64'
suffix='x64'
fi
./configure $@ \
--disable-avfilter \
--disable-avresample \
--disable-bzlib \
--disable-d3d11va \
--disable-dxva2 \
2014-06-06 18:13:27 +02:00
--disable-decoder=atrac3p,indeo2,indeo3,indeo4,indeo5,twinvq \
--disable-devices \
--disable-doc \
--disable-encoders \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-filters \
--disable-hwaccels \
--disable-muxers \
--disable-network \
--disable-postproc \
--disable-pthreads \
--disable-shared \
--enable-gpl \
--enable-runtime-cpudetect \
--enable-static \
2018-11-22 01:41:05 +01:00
--enable-small \
--enable-x86asm \
--x86asmexe=yasm \
2014-06-06 18:13:27 +02:00
--enable-zlib \
--extra-cflags=-D_SYSCRT \
--extra-cflags=-I../../include \
--extra-cflags=-MD \
--extra-cflags=-wd4005 \
--extra-cflags=-wd4189 \
--extra-ldflags=-LIBPATH:../../lib/$platform/Release \
--toolchain=msvc
mv config.h ../../build/ffmpeg/config-$suffix.h
mv config.asm ../../build/ffmpeg/config-$suffix.asm