Configure.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. # Configure script
  3. #
  4. # used by VLCKit.xcodeproj
  5. if test "x$SYMROOT" = "x"; then
  6. echo " This script is bound to be launched by VLCKit.xcodeproj, not you"
  7. exit 1
  8. fi
  9. if test "$ACTION" = "clean"; then
  10. rm -Rf $SYMROOT/vlc_build_dir
  11. exit 0
  12. fi
  13. # Contruct the vlc_build_dir
  14. mkdir -p $SYMROOT/vlc_build_dir
  15. cd $SYMROOT/vlc_build_dir
  16. # Contruct the argument list
  17. echo "Building for $ARCHS with sdk=\"$SDKROOT\""
  18. args="--disable-nls $args"
  19. # Mac OS X related options
  20. args="--disable-macosx-defaults $args"
  21. args="--disable-macosx $args" # Disable old gui/macosx
  22. args="--disable-macosx-vlc-app $args" # Don't build old vlc.app
  23. args="--with-macosx-version-min=10.5 $args"
  24. # optional modules
  25. args="--enable-faad $args"
  26. args="--enable-flac $args"
  27. args="--enable-theora $args"
  28. args="--enable-shout $args"
  29. args="--enable-cddax $args"
  30. args="--enable-caca $args"
  31. args="--enable-vcdx $args"
  32. args="--enable-twolame $args"
  33. args="--enable-realrtsp $args"
  34. args="--enable-libass $args"
  35. args="--enable-asademux $args"
  36. # disabled stuff
  37. args="--disable-ncurses $args"
  38. args="--disable-httpd $args"
  39. args="--disable-vlm $args"
  40. args="--disable-skins2 $args"
  41. args="--disable-x11 $args"
  42. args="--disable-glx $args"
  43. args="--disable-xvideo $args"
  44. args="--disable-xcb $args"
  45. args="--disable-sdl $args"
  46. args="--disable-sdl-image $args"
  47. args="--disable-visual $args"
  48. # where to install
  49. args="--prefix=$SYMROOT/vlc_build_dir/vlc_install_dir $args"
  50. if test "x$SDKROOT" != "x"
  51. then
  52. args="--with-macosx-sdk=$SDKROOT $args"
  53. fi
  54. # Debug Flags
  55. if test "$CONFIGURATION" = "Debug"; then
  56. args="--enable-debug $args"
  57. else
  58. args="--enable-release $args"
  59. fi
  60. # 64 bits switches
  61. if test $ARCHS = "x86_64"
  62. then
  63. args="--build=x86_64-apple-darwin10 $args"
  64. fi
  65. echo "Running configure $args"
  66. top_srcdir="$SRCROOT/../../.."
  67. CFLAGS="-arch $ARCHS" CXXFLAGS="-arch $ARCHS" CPPFLAGS="-arch $ARCHS" OBJCFLAGS="-arch $ARCHS" exec $top_srcdir/configure $args