Configure.sh 2.2 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-caca $args"
  30. args="--enable-vcdx $args"
  31. args="--enable-twolame $args"
  32. args="--enable-realrtsp $args"
  33. args="--enable-libass $args"
  34. args="--enable-asademux $args"
  35. # disabled stuff
  36. args="--disable-ncurses $args"
  37. args="--disable-httpd $args"
  38. args="--disable-vlm $args"
  39. args="--disable-skins2 $args"
  40. args="--disable-glx $args"
  41. args="--disable-xvideo $args"
  42. args="--disable-xcb $args"
  43. args="--disable-sdl $args"
  44. args="--disable-sdl-image $args"
  45. args="--disable-visual $args"
  46. if test "x$SDKROOT" != "x"
  47. then
  48. args="--with-macosx-sdk=$SDKROOT $args"
  49. fi
  50. # Debug Flags
  51. if test "$CONFIGURATION" = "Debug"; then
  52. args="--enable-debug $args"
  53. else
  54. args="--enable-release $args"
  55. fi
  56. top_srcdir="$SRCROOT/../../.."
  57. # 64 bits switches
  58. for arch in $ARCHS; do
  59. this_args="$args"
  60. # where to install
  61. this_args="--prefix=$SYMROOT/vlc_build_dir/vlc_install_dir $this_args"
  62. input="$top_srcdir/configure"
  63. output="$arch/Makefile"
  64. if test -e ${output} && test ${output} -nt ${input}; then
  65. echo "No need to re-run configure for $arch"
  66. continue;
  67. fi
  68. # Contruct the vlc_build_dir/$arch
  69. mkdir -p $arch
  70. cd $arch
  71. if test $arch = "x86_64"; then
  72. this_args="--build=x86_64-apple-darwin10 $this_args"
  73. fi
  74. echo "Running[$arch] configure $args"
  75. CFLAGS="-arch $arch" CXXFLAGS="-arch $arch" CPPFLAGS="-arch $arch" OBJCFLAGS="-arch $arch" exec $top_srcdir/configure $this_args
  76. cd ..
  77. done