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
16 # Contruct the vlc_build_dir
17 mkdir -p $VLC_BUILD_DIR
20 # Contruct the argument list
21 echo "Building for $ARCHS with sdk=\"$SDKROOT\" in $VLC_BUILD_DIR"
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-caca $args"
39 args="--enable-vcdx $args"
40 args="--enable-twolame $args"
41 args="--enable-realrtsp $args"
42 args="--enable-libass $args"
45 args="--disable-ncurses $args"
46 args="--disable-httpd $args"
47 args="--disable-vlm $args"
48 args="--disable-skins2 $args"
49 args="--disable-glx $args"
50 args="--disable-xvideo $args"
51 args="--disable-xcb $args"
52 args="--disable-sdl $args"
53 args="--disable-sdl-image $args"
54 args="--disable-visual $args"
56 if test "x$SDKROOT" != "x"
58 args="--with-macosx-sdk=$SDKROOT $args"
62 if test "$CONFIGURATION" = "Debug"; then
63 args="--enable-debug $args"
66 top_srcdir="$VLC_SRC_DIR"
69 for arch in $ARCHS; do
73 this_args="--prefix=${VLC_BUILD_DIR}/$arch/vlc_install_dir $this_args"
75 input="$top_srcdir/configure"
76 output="$arch/Makefile"
77 echo `pwd`"/${output}"
78 if test -e ${output} && test ${output} -nt ${input}; then
79 echo "No need to re-run configure for $arch"
83 # Contruct the vlc_build_dir/$arch
87 if test $arch = "x86_64"; then
88 this_args="--build=x86_64-apple-darwin10 $this_args"
91 echo "Running[$arch] configure $this_args"
92 $top_srcdir/configure $this_args