Changeset 464

Show
Ignore:
Timestamp:
04/26/07 22:36:41 (2 years ago)
Author:
gbooker
Message:

Added a "quick" build to ffmpeg, where it still builds, but skips the configure part.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/createStaticLibs.sh

    r417 r464  
    1515else 
    1616        oldbuildid_ffmpeg="buildme" 
     17fi 
     18 
     19QUICKBUILD="$BUILT_PRODUCTS_DIR/Universal/quickbuild" 
     20if [[ -e "$QUICKBUILD" ]] ; then 
     21    oldbuildid_ffmpeg="quick" 
     22    rm "$QUICKBUILD" 
    1723fi 
    1824 
     
    3743 
    3844        cd "$BUILDDIR" 
    39         if [ `arch` != i386 ] ; then 
    40                 "$SRCROOT/ffmpeg/configure" --cross-compile --arch=x86_32 --extra-ldflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --extra-cflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk $optCFlags' $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m  
    41         else 
    42                 "$SRCROOT/ffmpeg/configure" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m --extra-cflags='$optCFlags' 
    43         fi 
    44  
    45          
    46                 make depend > /dev/null 2>&1 || true 
    47 if [ "$BUILD_STYLE" = "Development" ] ; then 
    48         cd libavcodec 
    49         export CFLAGS="-O1 -fomit-frame-pointer -funit-at-a-time"; make h264.o cabac.o i386/dsputil_mmx.o 
    50         unset CFLAGS; 
    51         cd .. 
    52 fi 
    53         make -j3            lib 
     45        if [ "$oldbuildid_ffmpeg" != "quick" ] ; then 
     46        if [ `arch` != i386 ] ; then 
     47            "$SRCROOT/ffmpeg/configure" --cross-compile --arch=x86_32 --extra-ldflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --extra-cflags='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk $optCFlags' $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m  
     48        else 
     49            "$SRCROOT/ffmpeg/configure" $extraConfigureOptions $generalConfigureOptions --cpu=pentium-m --extra-cflags='$optCFlags' 
     50        fi 
     51         
     52        make depend > /dev/null 2>&1 || true 
     53    fi 
     54    if [ "$BUILD_STYLE" = "Development" ] ; then 
     55        cd libavcodec 
     56        export CFLAGS="-O1 -fomit-frame-pointer -funit-at-a-time"; make h264.o cabac.o 
     57        unset CFLAGS; 
     58        cd .. 
     59    fi 
     60    make -j3            lib 
    5461         
    5562         
     
    6370         
    6471        cd "$BUILDDIR" 
    65         if [ `arch` = ppc ] ; then 
    66                 "$SRCROOT/ffmpeg/configure" $extraConfigureOptions $generalConfigureOptions --extra-cflags='$optCFlags' 
    67         else 
    68                 "$SRCROOT/ffmpeg/configure" --cross-compile --arch=ppc  --extra-ldflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --extra-cflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk $optCFlags' $extraConfigureOptions $generalConfigureOptions 
    69         fi 
    70          
    71                  
    72  
     72        if [ "$oldbuildid_ffmpeg" != "quick" ] ; then 
     73        if [ `arch` = ppc ] ; then 
     74            "$SRCROOT/ffmpeg/configure" $extraConfigureOptions $generalConfigureOptions --extra-cflags='$optCFlags' 
     75        else 
     76            "$SRCROOT/ffmpeg/configure" --cross-compile --arch=ppc  --extra-ldflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk' --extra-cflags='-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk $optCFlags' $extraConfigureOptions $generalConfigureOptions 
     77        fi 
     78         
    7379        make depend > /dev/null 2>&1 || true 
    74         make -j3            lib 
     80    fi 
     81    make -j3            lib 
    7582         
    7683        #######################