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 # Construct the vlc_build_dir
17 mkdir
-p $VLC_BUILD_DIR
20 # Construct the argument list
21 echo "Building for $ARCHS with sdk=\"$SDKROOT\" in $VLC_BUILD_DIR"
23 args
="--disable-nls $args"
25 # Mac OS X related options
26 args
="--disable-macosx $args" # Disable old gui/macosx
27 args
="--disable-macosx-vlc-app $args" # Don't build old vlc.app
29 args
="--with-macosx-version-min=10.6 $args"
32 args
="--enable-merge-ffmpeg $args"
33 args
="--enable-faad $args"
34 args
="--enable-flac $args"
35 args
="--enable-theora $args"
36 args
="--enable-shout $args"
37 args
="--enable-caca $args"
38 args
="--enable-twolame $args"
39 args
="--enable-realrtsp $args"
40 args
="--enable-libass $args"
41 args
="--enable-macosx-audio $args"
42 args
="--enable-macosx-dialog-provider $args"
43 args
="--enable-macosx-eyetv $args"
44 args
="--enable-macosx-qtkit $args"
45 args
="--enable-macosx-vout $args"
48 args
="--disable-growl $args"
49 args
="--disable-ncurses $args"
50 args
="--disable-httpd $args"
51 args
="--disable-vlm $args"
52 args
="--disable-skins2 $args"
53 args
="--disable-glx $args"
54 args
="--disable-xvideo $args"
55 args
="--disable-xcb $args"
56 args
="--disable-sdl $args"
57 args
="--disable-sdl-image $args"
58 args
="--disable-visual $args"
60 if test "x$SDKROOT" != "x"
62 args
="--with-macosx-sdk=$SDKROOT $args"
66 if test "$CONFIGURATION" = "Debug"; then
67 args
="--enable-debug $args"
71 for arch
in $ARCHS; do
75 this_args
="--prefix=${VLC_BUILD_DIR}/$arch/vlc_install_dir $this_args"
77 input
="$VLC_SRC_DIR/configure"
78 output
="$arch/Makefile"
79 if test -e ${output} && test ${output} -nt ${input}; then
80 echo "No need to re-run configure for $arch"
84 # Construct the vlc_build_dir/$arch
88 echo "Running [$arch] configure $this_args"
89 if test $arch = "x86_64"; then
90 export CFLAGS
="-m64 -arch x86_64"
91 export CXXFLAGS
="-m64 -arch x86_64"
92 export OBJCFLAGS
="-m64 -arch x86_64"
93 export CPPFLAGS
="-m64 -arch x86_64"
94 this_args
="--build=x86_64-apple-darwin10 --with-contrib=$VLC_SRC_DIR/contrib/x86_64-apple-darwin10 $this_args"
95 export PATH
=$VLC_SRC_DIR/extras
/tools
/build
/bin
:$VLC_SRC_DIR/contrib
/x86_64-apple-darwin10
/bin
:$PATH
96 export PKG_CONFIG_PATH
=$VLC_SRC_DIR/contrib
/x86_64-apple-darwin10
/lib
/pkgconfig
98 if test $arch = "i386"; then
99 export CFLAGS
="-m32 -arch i386"
100 export CXXFLAGS
="-m32 -arch i386"
101 export OBJCFLAGS
="-m32 -arch i386"
102 export CPPFLAGS
="-m32 -arch i386"
103 this_args
="--build=i686-apple-darwin9 --with-contrib=$VLC_SRC_DIR/contrib/i686-apple-darwin9 $this_args"
105 if test $arch = "ppc"; then
106 export CFLAGS
="-m32 -arch ppc"
107 export CXXFLAGS
="-m32 -arch ppc"
108 export OBJCFLAGS
="-m32 -arch ppc"
109 export CPPFLAGS
="-m32 -arch ppc"
110 this_args
="--build=powerpc-apple-darwin9 --with-contrib=$VLC_SRC_DIR/contrib/powerpc-apple-darwin9 $this_args"
113 $VLC_SRC_DIR/configure
$this_args
115 if test $err != 0; then