Ticket #44189: osxfuse_yosemite_and_xcode6_support_build_sh.diff

File osxfuse_yosemite_and_xcode6_support_build_sh.diff, 4.4 KB (added by jmperez0, 10 years ago)
  • build.sh

    old new  
    9393declare M_XCODE51=""
    9494declare M_XCODE51_VERSION=5.1
    9595readonly M_XCODE51_COMPILER="com.apple.compilers.llvm.clang.1_0"
     96declare M_XCODE60=""
     97declare M_XCODE60_VERSION=6.0
     98readonly M_XCODE60_COMPILER="com.apple.compilers.llvm.clang.1_0"
    9699
    97100declare M_ACTUAL_PLATFORM=""
    98101declare M_PLATFORMS=""
     
    130133declare M_SDK_109_XCODE=""
    131134declare M_SDK_109_COMPILER=""
    132135
     136# SDK 10.10
     137readonly M_SDK_1010_ARCHS="x86_64"
     138declare M_SDK_1010=""
     139declare M_SDK_1010_XCODE=""
     140declare M_SDK_1010_COMPILER=""
     141
    133142readonly M_FSBUNDLE_NAME="osxfusefs.fs"
    134143readonly M_INSTALL_RESOURCES_DIR="Install_resources"
    135144readonly M_KEXT_ID="com.github.osxfuse.filesystems.osxfusefs"
     
    333342        m_compiler="$M_SDK_109_COMPILER"
    334343        m_archs="$M_SDK_109_ARCHS"
    335344    ;;
     345    10.10*)
     346        m_osname="Yosemite"
     347        m_xcode_dir="$M_SDK_1010_XCODE"
     348        m_usdk_dir="$M_SDK_1010"
     349        m_compiler="$M_SDK_1010_COMPILER"
     350        m_archs="$M_SDK_1010_ARCHS"
     351    ;;
    336352    *)
    337353        m_osname="Unknown"
    338354        m_xcode_dir=""
     
    690706    elif [ -n "$M_SDK_109" ]
    691707    then
    692708        m_platform="10.9"
     709    elif [ -n "$M_SDK_1010" ]
     710    then
     711        m_platform="10.10"
    693712    else
    694713        false
    695714        m_exit_on_error "no supported SDK found"
     
    13131332  <array>
    13141333__END_RULES_PLIST
    13151334
     1335    if [[ "$M_PLATFORMS" =~ "10.10" ]]
     1336    then
     1337cat >> "$md_rules_plist" <<__END_RULES_PLIST
     1338    <dict>
     1339      <key>ProductID</key>
     1340      <string>$M_OSXFUSE_PRODUCT_ID</string>
     1341      <key>Predicate</key>
     1342      <string>SystemVersion.ProductVersion beginswith "10.10" AND Ticket.version != "$m_release_full"</string>
     1343      <key>Version</key>
     1344      <string>$m_release_full</string>
     1345      <key>Codebase</key>
     1346      <string>$md_download_url</string>
     1347      <key>Hash</key>
     1348      <string>$md_dmg_hash</string>
     1349      <key>Size</key>
     1350      <string>$md_dmg_size</string>
     1351    </dict>
     1352__END_RULES_PLIST
     1353    fi
     1354
    13161355    if [[ "$M_PLATFORMS" =~ "10.9" ]]
    13171356    then
    13181357cat >> "$md_rules_plist" <<__END_RULES_PLIST
     
    18701909
    18711910    m_log "building OSXFUSE kernel extension and tools"
    18721911
    1873     xcodebuild -configuration "$m_configuration" -target All GCC_VERSION="$m_compiler" ARCHS="x86_64" SDKROOT="$m_usdk_dir" MACOSX_DEPLOYMENT_TARGET="$m_platform" >$m_stdout 2>$m_stderr
     1912    xcodebuild -configuration "$m_configuration" -target All GCC_VERSION="$m_compiler" ARCHS="$m_archs" SDKROOT="$m_usdk_dir" MACOSX_DEPLOYMENT_TARGET="$m_platform" >$m_stdout 2>$m_stderr
    18741913
    18751914    m_exit_on_error "xcodebuild cannot build configuration $m_configuration."
    18761915
     
    23432382                    M_XCODE50_VERSION=$m_xcode_version
    23442383                fi
    23452384                ;;
    2346             5.1*|[6789]*)
     2385#            5.1*|[6789]*)
     2386            5.1)
    23472387                m_version_compare $M_XCODE51_VERSION $m_xcode_version
    23482388                if [[ $? != 2 ]]
    23492389                then
     
    23512391                    M_XCODE51_VERSION=$m_xcode_version
    23522392                fi
    23532393                ;;
     2394            6.0*)
     2395                m_version_compare $M_XCODE60_VERSION $m_xcode_version
     2396                if [[ $? != 2 ]]
     2397                then
     2398                    M_XCODE60="$m_xcode_root"
     2399                    M_XCODE60_VERSION=$m_xcode_version
     2400                fi
     2401                ;;
    23542402            *)
    23552403                m_log "skip unsupported Xcode version in '$m_xcode_root'."
    23562404                ;;
     
    25152563        M_SDK_109_COMPILER="$M_XCODE51_COMPILER"
    25162564        m_platform_realistic_add "10.9"
    25172565    fi
     2566    if [[ -n "$M_XCODE60" ]]
     2567    then
     2568        m_xcode_latest="$M_XCODE60"
     2569
     2570        M_SDK_108="$M_XCODE60/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
     2571        M_SDK_108_XCODE="$M_XCODE60"
     2572        M_SDK_108_COMPILER="$M_XCODE60_COMPILER"
     2573        m_platform_realistic_add "10.10"
     2574
     2575        m_version_compare $M_XCODE60_VERSION "6.0"
     2576        if [[ $? != 1 ]]
     2577        then
     2578            M_SDK_1010="$M_XCODE60/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
     2579            M_SDK_1010_XCODE="$M_XCODE60"
     2580            M_SDK_1010_COMPILER="$M_XCODE60_COMPILER"
     2581            m_platform_realistic_add "10.10"
     2582        fi
     2583    fi
    25182584
    25192585    m_read_input "$@"
    25202586