4 # used by VLCKit.xcodeproj
6 if test "x$SYMROOT" = "x"; then
7 echo " This script is bound to be launched by VLCKit.xcodeproj, not you"
11 if test "$ACTION" = "clean"; then
12 rm -Rf $SYMROOT/vlc_build_dir
16 # Contruct the vlc_build_dir
17 mkdir -p $SYMROOT/vlc_build_dir
18 cd $SYMROOT/vlc_build_dir
20 # Contruct the argument list
21 echo "Building for $ARCHS with sdk=\"$SDKROOT\""
24 args="--disable-nls $args"
26 # Mac OS X related options
27 args="--disable-macosx-defaults $args"
28 args="--disable-macosx $args" # Disable old gui/macosx
29 args="--disable-macosx-vlc-app $args" # Don't build old vlc.app
31 args="--with-macosx-version-min=10.5 $args"
34 args="--enable-faad $args"
35 args="--enable-flac $args"
36 args="--enable-theora $args"
37 args="--enable-shout $args"
38 args="--enable-cddax $args"
39 args="--enable-caca $args"
40 args="--enable-vcdx $args"
41 args="--enable-twolame $args"
42 args="--enable-realrtsp $args"
43 args="--enable-libass $args"
44 args="--enable-asademux $args"
47 args="--disable-ncurses $args"
48 args="--disable-httpd $args"
49 args="--disable-vlm $args"
50 args="--disable-skins2 $args"
51 args="--disable-x11 $args"
52 args="--disable-glx $args"
53 args="--disable-xvideo $args"
54 args="--disable-xcb $args"
55 args="--disable-sdl $args"
56 args="--disable-sdl-image $args"
57 args="--disable-visual $args"
60 args="--prefix=$SYMROOT/vlc_build_dir/vlc_install_dir $args"
62 if test "x$SDKROOT" != "x"
64 args="--with-macosx-sdk=$SDKROOT $args"
68 if test "$CONFIGURATION" = "Debug"; then
69 args="--enable-debug $args"
71 args="--enable-release $args"
75 if test $ARCHS = "x86_64"
77 args="--build=x86_64-apple-darwin10 $args"
80 echo "Running configure $args"
81 top_srcdir="$SRCROOT/../../.."
82 CFLAGS="-arch $ARCHS" CXXFLAGS="-arch $ARCHS" CPPFLAGS="-arch $ARCHS" OBJCFLAGS="-arch $ARCHS" exec $top_srcdir/configure $args