mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
makepanda: discourage targeting macOS older than 10.9 (as per #300)
This commit is contained in:
parent
1ea8c9f299
commit
77eeed6a82
@ -273,6 +273,13 @@ def parseopts(args):
|
|||||||
assert OSXTARGET[0] == 10
|
assert OSXTARGET[0] == 10
|
||||||
except:
|
except:
|
||||||
usage("Invalid setting for OSXTARGET")
|
usage("Invalid setting for OSXTARGET")
|
||||||
|
|
||||||
|
if OSXTARGET < (10, 9):
|
||||||
|
print("=========================================================================")
|
||||||
|
print("WARNING: Support for macOS versions before 10.9 has been discontinued.")
|
||||||
|
print("WARNING: For more information, or any questions, please visit:")
|
||||||
|
print(" https://github.com/panda3d/panda3d/issues/300")
|
||||||
|
print("=========================================================================")
|
||||||
else:
|
else:
|
||||||
OSXTARGET = None
|
OSXTARGET = None
|
||||||
|
|
||||||
@ -378,6 +385,8 @@ elif target == 'darwin':
|
|||||||
else:
|
else:
|
||||||
maj, min = platform.mac_ver()[0].split('.')[:2]
|
maj, min = platform.mac_ver()[0].split('.')[:2]
|
||||||
osxver = int(maj), int(min)
|
osxver = int(maj), int(min)
|
||||||
|
if osxver < (10, 9):
|
||||||
|
osxver = (10, 9)
|
||||||
|
|
||||||
arch_tag = GetTargetArch()
|
arch_tag = GetTargetArch()
|
||||||
PLATFORM = 'macosx-{0}.{1}-{2}'.format(osxver[0], osxver[1], arch_tag)
|
PLATFORM = 'macosx-{0}.{1}-{2}'.format(osxver[0], osxver[1], arch_tag)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user