]> git.sesse.net Git - vlc/blob - projects/macosx/framework/Configure.sh
ed379e4daf25e52e35c6d9865ca37a534b59a110
[vlc] / projects / macosx / framework / Configure.sh
1 #
2 # Configure script
3 #
4 #   used by VLCKit.xcodeproj
5
6 if test "x$SYMROOT" = "x"; then
7     echo " This script is bound to be launched by VLCKit.xcodeproj, not you"
8     exit 1
9 fi
10
11 if test "$ACTION" = "clean"; then
12     rm -Rf $VLC_BUILD_DIR
13     exit 0
14 fi
15
16 # Contruct the vlc_build_dir
17 mkdir -p $VLC_BUILD_DIR
18 cd $VLC_BUILD_DIR
19
20 # Contruct the argument list
21 echo "Building for $ARCHS with sdk=\"$SDKROOT\" in $VLC_BUILD_DIR"
22
23
24 args="--disable-nls $args"
25
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
30
31 args="--with-macosx-version-min=10.5 $args"
32
33 # optional modules
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"
43 args="--enable-asademux $args"
44
45 # disabled stuff
46 args="--disable-ncurses $args"
47 args="--disable-httpd $args"
48 args="--disable-vlm $args"
49 args="--disable-skins2 $args"
50 args="--disable-glx $args"
51 args="--disable-xvideo $args"
52 args="--disable-xcb $args"
53 args="--disable-sdl $args"
54 args="--disable-sdl-image $args"
55 args="--disable-visual $args"
56
57 if test "x$SDKROOT" != "x"
58 then
59         args="--with-macosx-sdk=$SDKROOT $args"
60 fi
61
62 # Debug Flags
63 if test "$CONFIGURATION" = "Debug"; then
64         args="--enable-debug $args"
65 fi
66
67 top_srcdir="$VLC_SRC_DIR"
68
69 # 64 bits switches
70 for arch in $ARCHS; do
71     this_args="$args"
72
73     # where to install
74     this_args="--prefix=${VLC_BUILD_DIR}/$arch/vlc_install_dir $this_args"
75
76     input="$top_srcdir/configure"
77     output="$arch/Makefile"
78     echo `pwd`"/${output}"
79     if test -e ${output} && test ${output} -nt ${input}; then
80         echo "No need to re-run configure for $arch"
81         continue;
82     fi
83
84     # Contruct the vlc_build_dir/$arch
85     mkdir -p $arch
86     cd $arch
87
88     if test $arch = "x86_64"; then
89         this_args="--build=x86_64-apple-darwin10 $this_args"
90     fi
91
92     echo "Running[$arch] configure $this_args"
93     $top_srcdir/configure $this_args
94     cd ..
95 done