]> git.sesse.net Git - vlc/blob - projects/macosx/framework/Configure.sh
482e0a69fb4ee8e8bc373ed388e0bda25bb57696
[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 $SYMROOT/vlc_build_dir
13     exit 0
14 fi
15
16 # Contruct the vlc_build_dir
17 mkdir -p $SYMROOT/vlc_build_dir
18 cd $SYMROOT/vlc_build_dir
19
20 # Contruct the argument list
21 echo "Building for $ARCHS with sdk=\"$SDKROOT\""
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-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"
45
46 # disabled stuff
47 args="--disable-ncurses $args"
48 args="--disable-httpd $args"
49 args="--disable-vlm $args"
50 args="--disable-skins2 $args"
51 args="--disable-glx $args"
52 args="--disable-xvideo $args"
53 args="--disable-xcb $args"
54 args="--disable-sdl $args"
55 args="--disable-sdl-image $args"
56 args="--disable-visual $args"
57
58 # where to install
59 args="--prefix=$SYMROOT/vlc_build_dir/vlc_install_dir $args"
60
61 if test "x$SDKROOT" != "x"
62 then
63         args="--with-macosx-sdk=$SDKROOT $args"
64 fi
65
66 # Debug Flags
67 if test "$CONFIGURATION" = "Debug"; then
68         args="--enable-debug $args"
69 else
70         args="--enable-release $args"
71 fi
72
73 archcount=0
74
75 # 64 bits switches
76 for a in $ARCHS; do
77         archs_args="-arch $a $archs_args"
78     let archcount=archcount+1
79 done
80
81 if test $archcount -ge 2; then
82     echo "****"
83     echo "WARNING: You are building a VLC with --disable-dependency-tracking"
84     echo "         because FAT architecture are not compatible with "
85     echo "         disable-dependency-tracking."
86     echo ""
87     echo "         You will have to do a clean build manually."
88     echo ""
89     echo "To disable this message, build only one architecture."
90     echo ""
91     echo "****"
92     args="--disable-dependency-tracking $args"
93 fi
94
95 echo "Running [$archs_args] configure $args"
96 top_srcdir="$SRCROOT/../../.."
97 CFLAGS="$archs_args" CXXFLAGS="$archs_args" OBJCFLAGS="$archs_args" exec $top_srcdir/configure $args