|
@@ -87,7 +87,7 @@ PkgListSet(["PYTHON", "DIRECT", # Python support
|
|
|
"ARTOOLKIT", "OPENCV", "DIRECTCAM", "VISION", # Augmented Reality
|
|
"ARTOOLKIT", "OPENCV", "DIRECTCAM", "VISION", # Augmented Reality
|
|
|
"GTK2", # GTK2 is used for PStats on Unix
|
|
"GTK2", # GTK2 is used for PStats on Unix
|
|
|
"MFC", "WX", "FLTK", # Used for web plug-in only
|
|
"MFC", "WX", "FLTK", # Used for web plug-in only
|
|
|
- "COCOA", # Mac OS X toolkits
|
|
|
|
|
|
|
+ "COCOA", # macOS toolkits
|
|
|
"X11", # Unix platform support
|
|
"X11", # Unix platform support
|
|
|
"PANDATOOL", "PVIEW", "DEPLOYTOOLS", # Toolchain
|
|
"PANDATOOL", "PVIEW", "DEPLOYTOOLS", # Toolchain
|
|
|
"SKEL", # Example SKEL project
|
|
"SKEL", # Example SKEL project
|
|
@@ -132,7 +132,7 @@ def usage(problem):
|
|
|
print(" --distributor X (short string identifying the distributor of the build)")
|
|
print(" --distributor X (short string identifying the distributor of the build)")
|
|
|
print(" --outputdir X (use the specified directory instead of 'built')")
|
|
print(" --outputdir X (use the specified directory instead of 'built')")
|
|
|
print(" --threads N (use the multithreaded build system. see manual)")
|
|
print(" --threads N (use the multithreaded build system. see manual)")
|
|
|
- print(" --osxtarget N (the OS X version number to build for (OS X only))")
|
|
|
|
|
|
|
+ print(" --osxtarget N (the macOS version number to build for (macOS only))")
|
|
|
print(" --override \"O=V\" (override dtool_config/prc option value)")
|
|
print(" --override \"O=V\" (override dtool_config/prc option value)")
|
|
|
print(" --static (builds libraries for static linking)")
|
|
print(" --static (builds libraries for static linking)")
|
|
|
print(" --target X (experimental cross-compilation (android only))")
|
|
print(" --target X (experimental cross-compilation (android only))")
|
|
@@ -939,7 +939,7 @@ if (COMPILER=="GCC"):
|
|
|
if (PkgSkip(pkg)==0 and (pkg in SDK)):
|
|
if (PkgSkip(pkg)==0 and (pkg in SDK)):
|
|
|
if (GetHost() == "darwin"):
|
|
if (GetHost() == "darwin"):
|
|
|
# Sheesh, Autodesk really can't make up their mind
|
|
# Sheesh, Autodesk really can't make up their mind
|
|
|
- # regarding the location of the Maya devkit on OS X.
|
|
|
|
|
|
|
+ # regarding the location of the Maya devkit on macOS.
|
|
|
if (os.path.isdir(SDK[pkg] + "/Maya.app/Contents/lib")):
|
|
if (os.path.isdir(SDK[pkg] + "/Maya.app/Contents/lib")):
|
|
|
LibDirectory(pkg, SDK[pkg] + "/Maya.app/Contents/lib")
|
|
LibDirectory(pkg, SDK[pkg] + "/Maya.app/Contents/lib")
|
|
|
if (os.path.isdir(SDK[pkg] + "/Maya.app/Contents/MacOS")):
|
|
if (os.path.isdir(SDK[pkg] + "/Maya.app/Contents/MacOS")):
|
|
@@ -1480,7 +1480,7 @@ def CompileIgate(woutd,wsrc,opts):
|
|
|
target_arch = GetTargetArch()
|
|
target_arch = GetTargetArch()
|
|
|
if target_arch in ("x86_64", "amd64"):
|
|
if target_arch in ("x86_64", "amd64"):
|
|
|
cmd += ' -D_LP64'
|
|
cmd += ' -D_LP64'
|
|
|
- elif target_arch == 'aarch64':
|
|
|
|
|
|
|
+ elif target_arch in ('aarch64', 'arm64'):
|
|
|
cmd += ' -D_LP64 -D__LP64__ -D__aarch64__'
|
|
cmd += ' -D_LP64 -D__LP64__ -D__aarch64__'
|
|
|
else:
|
|
else:
|
|
|
cmd += ' -D__i386__'
|
|
cmd += ' -D__i386__'
|
|
@@ -1766,7 +1766,7 @@ def CompileLink(dll, obj, opts):
|
|
|
if (GetOrigExt(dll) == ".exe" and GetTarget() == 'windows' and "NOICON" not in opts):
|
|
if (GetOrigExt(dll) == ".exe" and GetTarget() == 'windows' and "NOICON" not in opts):
|
|
|
cmd += " " + GetOutputDir() + "/tmp/pandaIcon.res"
|
|
cmd += " " + GetOutputDir() + "/tmp/pandaIcon.res"
|
|
|
|
|
|
|
|
- # Mac OS X specific flags.
|
|
|
|
|
|
|
+ # macOS specific flags.
|
|
|
if GetTarget() == 'darwin':
|
|
if GetTarget() == 'darwin':
|
|
|
cmd += " -headerpad_max_install_names"
|
|
cmd += " -headerpad_max_install_names"
|
|
|
if OSXTARGET is not None:
|
|
if OSXTARGET is not None:
|
|
@@ -2012,7 +2012,7 @@ def FreezePy(target, inputs, opts):
|
|
|
##########################################################################################
|
|
##########################################################################################
|
|
|
|
|
|
|
|
def CompileBundle(target, inputs, opts):
|
|
def CompileBundle(target, inputs, opts):
|
|
|
- assert GetTarget() == "darwin", 'bundles can only be made for Mac OS X'
|
|
|
|
|
|
|
+ assert GetTarget() == "darwin", 'bundles can only be made for macOS'
|
|
|
plist = None
|
|
plist = None
|
|
|
resources = []
|
|
resources = []
|
|
|
objects = []
|
|
objects = []
|