893 | | case ${toolchain} in |
894 | | *-darwin8-*) |
895 | | add_cflags "-mmacosx-version-min=10.4" |
896 | | add_ldflags "-mmacosx-version-min=10.4" |
897 | | ;; |
898 | | *-darwin9-*) |
899 | | add_cflags "-mmacosx-version-min=10.5" |
900 | | add_ldflags "-mmacosx-version-min=10.5" |
901 | | ;; |
902 | | *-darwin10-*) |
903 | | add_cflags "-mmacosx-version-min=10.6" |
904 | | add_ldflags "-mmacosx-version-min=10.6" |
905 | | ;; |
906 | | *-darwin11-*) |
907 | | add_cflags "-mmacosx-version-min=10.7" |
908 | | add_ldflags "-mmacosx-version-min=10.7" |
909 | | ;; |
910 | | *-darwin12-*) |
911 | | add_cflags "-mmacosx-version-min=10.8" |
912 | | add_ldflags "-mmacosx-version-min=10.8" |
913 | | ;; |
914 | | *-darwin13-*) |
915 | | add_cflags "-mmacosx-version-min=10.9" |
916 | | add_ldflags "-mmacosx-version-min=10.9" |
917 | | ;; |
918 | | *-darwin14-*) |
919 | | add_cflags "-mmacosx-version-min=10.10" |
920 | | add_ldflags "-mmacosx-version-min=10.10" |
921 | | ;; |
922 | | *-darwin15-*) |
923 | | add_cflags "-mmacosx-version-min=10.11" |
924 | | add_ldflags "-mmacosx-version-min=10.11" |
925 | | ;; |
926 | | *-darwin16-*) |
927 | | add_cflags "-mmacosx-version-min=10.12" |
928 | | add_ldflags "-mmacosx-version-min=10.12" |
929 | | ;; |
930 | | *-darwin17-*) |
931 | | add_cflags "-mmacosx-version-min=10.13" |
932 | | add_ldflags "-mmacosx-version-min=10.13" |
933 | | ;; |
934 | | *-iphonesimulator-*) |
935 | | add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}" |
936 | | add_ldflags "-miphoneos-version-min=${IOS_VERSION_MIN}" |
937 | | iossim_sdk_dir="$(show_darwin_sdk_path iphonesimulator)" |
938 | | if [ -d "${iossim_sdk_dir}" ]; then |
939 | | add_cflags "-isysroot ${iossim_sdk_dir}" |
940 | | add_ldflags "-isysroot ${iossim_sdk_dir}" |
941 | | fi |
942 | | ;; |
943 | | esac |
944 | | |