12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #
- # Configure script
- #
- # used by VLCKit.xcodeproj
- if test "x$SYMROOT" = "x"; then
- echo " This script is bound to be launched by VLCKit.xcodeproj, not you"
- exit 1
- fi
- if test "$ACTION" = "clean"; then
- rm -Rf $SYMROOT/vlc_build_dir
- exit 0
- fi
- # Contruct the vlc_build_dir
- mkdir -p $SYMROOT/vlc_build_dir
- cd $SYMROOT/vlc_build_dir
- # Contruct the argument list
- echo "Building for $ARCHS with sdk=\"$SDKROOT\""
- args="--disable-nls $args"
- # Mac OS X related options
- args="--disable-macosx-defaults $args"
- args="--disable-macosx $args" # Disable old gui/macosx
- args="--disable-macosx-vlc-app $args" # Don't build old vlc.app
- args="--with-macosx-version-min=10.5 $args"
- # optional modules
- args="--enable-faad $args"
- args="--enable-flac $args"
- args="--enable-theora $args"
- args="--enable-shout $args"
- args="--enable-caca $args"
- args="--enable-vcdx $args"
- args="--enable-twolame $args"
- args="--enable-realrtsp $args"
- args="--enable-libass $args"
- args="--enable-asademux $args"
- # disabled stuff
- args="--disable-ncurses $args"
- args="--disable-httpd $args"
- args="--disable-vlm $args"
- args="--disable-skins2 $args"
- args="--disable-glx $args"
- args="--disable-xvideo $args"
- args="--disable-xcb $args"
- args="--disable-sdl $args"
- args="--disable-sdl-image $args"
- args="--disable-visual $args"
- if test "x$SDKROOT" != "x"
- then
- args="--with-macosx-sdk=$SDKROOT $args"
- fi
- # Debug Flags
- if test "$CONFIGURATION" = "Debug"; then
- args="--enable-debug $args"
- else
- args="--enable-release $args"
- fi
- top_srcdir="$SRCROOT/../../.."
- # 64 bits switches
- for arch in $ARCHS; do
- this_args="$args"
- # where to install
- this_args="--prefix=$SYMROOT/vlc_build_dir/vlc_install_dir $this_args"
- input="$top_srcdir/configure"
- output="$arch/Makefile"
- if test -e ${output} && test ${output} -nt ${input}; then
- echo "No need to re-run configure for $arch"
- continue;
- fi
- # Contruct the vlc_build_dir/$arch
- mkdir -p $arch
- cd $arch
- if test $arch = "x86_64"; then
- this_args="--build=x86_64-apple-darwin10 $this_args"
- fi
- echo "Running[$arch] configure $args"
- CFLAGS="-arch $arch" CXXFLAGS="-arch $arch" CPPFLAGS="-arch $arch" OBJCFLAGS="-arch $arch" exec $top_srcdir/configure $this_args
- cd ..
- done
|