mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
parent
61a089ad59
commit
aace94a521
@ -167,8 +167,8 @@ deps: {DEPENDS}
|
||||
MACOS_SCRIPT_PREFIX = \
|
||||
"""#!/bin/bash
|
||||
IFS=.
|
||||
read -a version_info <<< "`sw_vers -productVersion`'"
|
||||
if (( ${version_info[1]} < 15 )); then
|
||||
read -a version_info <<< "`sw_vers -productVersion`"
|
||||
if (( ${version_info[0]} == 10 && ${version_info[1]} < 15 )); then
|
||||
"""
|
||||
|
||||
MACOS_SCRIPT_POSTFIX = \
|
||||
|
@ -294,7 +294,7 @@ def parseopts(args):
|
||||
try:
|
||||
maj, min = OSXTARGET.strip().split('.')
|
||||
OSXTARGET = int(maj), int(min)
|
||||
assert OSXTARGET[0] == 10
|
||||
assert OSXTARGET[0] >= 10
|
||||
except:
|
||||
usage("Invalid setting for OSXTARGET")
|
||||
else:
|
||||
@ -313,10 +313,10 @@ def parseopts(args):
|
||||
maj, min = platform.mac_ver()[0].split('.')[:2]
|
||||
osxver = int(maj), int(min)
|
||||
|
||||
if osxver[1] < 15:
|
||||
if osxver[0] == 10 and osxver[1] < 15:
|
||||
OSX_ARCHS.append("i386")
|
||||
|
||||
if osxver[1] < 6:
|
||||
if osxver[0] == 10 and osxver[1] < 6:
|
||||
OSX_ARCHS.append("ppc")
|
||||
else:
|
||||
OSX_ARCHS.append("x86_64")
|
||||
@ -2645,9 +2645,6 @@ def WriteConfigSettings():
|
||||
dtool_config["HAVE_VIDEO4LINUX"] = 'UNDEF'
|
||||
dtool_config["PHAVE_LINUX_INPUT_H"] = 'UNDEF'
|
||||
dtool_config["IS_OSX"] = '1'
|
||||
# 10.4 had a broken ucontext implementation
|
||||
if int(platform.mac_ver()[0][3]) <= 4:
|
||||
dtool_config["PHAVE_UCONTEXT_H"] = 'UNDEF'
|
||||
|
||||
if (GetTarget() == "freebsd"):
|
||||
dtool_config["IS_LINUX"] = 'UNDEF'
|
||||
|
Loading…
x
Reference in New Issue
Block a user