Configure.sh 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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-glx $args"
  42. args="--disable-xvideo $args"
  43. args="--disable-xcb $args"
  44. args="--disable-sdl $args"
  45. args="--disable-sdl-image $args"
  46. args="--disable-visual $args"
  47. # where to install
  48. args="--prefix=$SYMROOT/vlc_build_dir/vlc_install_dir $args"
  49. if test "x$SDKROOT" != "x"
  50. then
  51. args="--with-macosx-sdk=$SDKROOT $args"
  52. fi
  53. # Debug Flags
  54. if test "$CONFIGURATION" = "Debug"; then
  55. args="--enable-debug $args"
  56. else
  57. args="--enable-release $args"
  58. fi
  59. archcount=0
  60. # 64 bits switches
  61. for a in $ARCHS; do
  62. archs_args="-arch $a $archs_args"
  63. let archcount=archcount+1
  64. done
  65. if test $archcount -ge 2; then
  66. echo "****"
  67. echo "WARNING: You are building a VLC with --disable-dependency-tracking"
  68. echo " because FAT architecture are not compatible with "
  69. echo " disable-dependency-tracking."
  70. echo ""
  71. echo " You will have to do a clean build manually."
  72. echo ""
  73. echo "To disable this message, build only one architecture."
  74. echo ""
  75. echo "****"
  76. args="--disable-dependency-tracking $args"
  77. fi
  78. echo "Running [$archs_args] configure $args"
  79. top_srcdir="$SRCROOT/../../.."
  80. CFLAGS="$archs_args" CXXFLAGS="$archs_args" OBJCFLAGS="$archs_args" exec $top_srcdir/configure $args