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 93 93 declare M_XCODE51="" 94 94 declare M_XCODE51_VERSION=5.1 95 95 readonly M_XCODE51_COMPILER="com.apple.compilers.llvm.clang.1_0" 96 declare M_XCODE60="" 97 declare M_XCODE60_VERSION=6.0 98 readonly M_XCODE60_COMPILER="com.apple.compilers.llvm.clang.1_0" 96 99 97 100 declare M_ACTUAL_PLATFORM="" 98 101 declare M_PLATFORMS="" … … 130 133 declare M_SDK_109_XCODE="" 131 134 declare M_SDK_109_COMPILER="" 132 135 136 # SDK 10.10 137 readonly M_SDK_1010_ARCHS="x86_64" 138 declare M_SDK_1010="" 139 declare M_SDK_1010_XCODE="" 140 declare M_SDK_1010_COMPILER="" 141 133 142 readonly M_FSBUNDLE_NAME="osxfusefs.fs" 134 143 readonly M_INSTALL_RESOURCES_DIR="Install_resources" 135 144 readonly M_KEXT_ID="com.github.osxfuse.filesystems.osxfusefs" … … 333 342 m_compiler="$M_SDK_109_COMPILER" 334 343 m_archs="$M_SDK_109_ARCHS" 335 344 ;; 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 ;; 336 352 *) 337 353 m_osname="Unknown" 338 354 m_xcode_dir="" … … 690 706 elif [ -n "$M_SDK_109" ] 691 707 then 692 708 m_platform="10.9" 709 elif [ -n "$M_SDK_1010" ] 710 then 711 m_platform="10.10" 693 712 else 694 713 false 695 714 m_exit_on_error "no supported SDK found" … … 1313 1332 <array> 1314 1333 __END_RULES_PLIST 1315 1334 1335 if [[ "$M_PLATFORMS" =~ "10.10" ]] 1336 then 1337 cat >> "$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 1316 1355 if [[ "$M_PLATFORMS" =~ "10.9" ]] 1317 1356 then 1318 1357 cat >> "$md_rules_plist" <<__END_RULES_PLIST … … 1870 1909 1871 1910 m_log "building OSXFUSE kernel extension and tools" 1872 1911 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_stderr1912 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 1874 1913 1875 1914 m_exit_on_error "xcodebuild cannot build configuration $m_configuration." 1876 1915 … … 2343 2382 M_XCODE50_VERSION=$m_xcode_version 2344 2383 fi 2345 2384 ;; 2346 5.1*|[6789]*) 2385 # 5.1*|[6789]*) 2386 5.1) 2347 2387 m_version_compare $M_XCODE51_VERSION $m_xcode_version 2348 2388 if [[ $? != 2 ]] 2349 2389 then … … 2351 2391 M_XCODE51_VERSION=$m_xcode_version 2352 2392 fi 2353 2393 ;; 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 ;; 2354 2402 *) 2355 2403 m_log "skip unsupported Xcode version in '$m_xcode_root'." 2356 2404 ;; … … 2515 2563 M_SDK_109_COMPILER="$M_XCODE51_COMPILER" 2516 2564 m_platform_realistic_add "10.9" 2517 2565 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 2518 2584 2519 2585 m_read_input "$@" 2520 2586