Skip to content

Commit 0ee980a

Browse files
committed
Rename OSX to macOS.
1 parent 8772a7f commit 0ee980a

12 files changed

+31
-38
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737

3838
- name: 🍎 macOS (universal)
3939
os: macos-11
40-
platform: osx
40+
platform: macos
4141
artifact-name: godot-cpp-macos-universal-release
42-
artifact-path: bin/libgodot-cpp.osx.release.universal.a
42+
artifact-path: bin/libgodot-cpp.macos.release.universal.a
4343
flags: arch=universal
4444

4545
- name: 🤖 Android (arm64)

Makefile

+3-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USE_CLANG = no
66
BASE = scons use_llvm=$(USE_CLANG) generate_bindings=$(GENERATE_BINDINGS) target=$(TARGET) headers=$(HEADERS)
77
LINUX = $(BASE) platform=linux
88
WINDOWS = $(BASE) platform=windows
9-
OSX = $(BASE) platform=osx
9+
MACOS = $(BASE) platform=macos
1010

1111

1212
all:
@@ -36,12 +36,5 @@ windows64: SConstruct
3636
$(WINDOWS) bits=64
3737

3838

39-
osx:
40-
make osx32
41-
make osx64
42-
43-
osx32: SConstruct
44-
$(OSX) bits=32
45-
46-
osx64: SConstruct
47-
$(OSX) bits=64
39+
macos: SConstruct
40+
$(MACOS)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ entry_symbol = "example_library_init"
5959

6060
[libraries]
6161

62-
macos.debug = "bin/libgdexample.osx.debug.framework"
63-
macos.release = "bin/libgdexample.osx.release.framework"
62+
macos.debug = "bin/libgdexample.macos.debug.framework"
63+
macos.release = "bin/libgdexample.macos.release.framework"
6464
windows.debug.x86_64 = "bin/libgdexample.windows.debug.x86_64.dll"
6565
windows.release.x86_64 = "bin/libgdexample.windows.release.x86_64.dll"
6666
linux.debug.x86_64 = "bin/libgdexample.linux.debug.x86_64.so"

SConstruct

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def add_sources(sources, dir, extension):
2020
if sys.platform.startswith("linux"):
2121
default_platform = "linux"
2222
elif sys.platform == "darwin":
23-
default_platform = "osx"
23+
default_platform = "macos"
2424
elif sys.platform == "win32" or sys.platform == "msys":
2525
default_platform = "windows"
2626
elif ARGUMENTS.get("platform", ""):
@@ -48,7 +48,7 @@ if env.GetOption("num_jobs") == altered_num_jobs:
4848
)
4949
env.SetOption("num_jobs", safer_cpu_count)
5050

51-
platforms = ("linux", "osx", "windows", "android", "ios", "javascript")
51+
platforms = ("linux", "macos", "windows", "android", "ios", "javascript")
5252
opts = Variables([], ARGUMENTS)
5353
opts.Add(
5454
EnumVariable(
@@ -110,7 +110,7 @@ if env["arch"] == "":
110110
# No architecture specified. Default to arm64 if building for Android,
111111
# universal if building for macOS or iOS, wasm32 if building for web,
112112
# otherwise default to the host architecture.
113-
if env["platform"] in ["osx", "ios"]:
113+
if env["platform"] in ["macos", "ios"]:
114114
env["arch"] = "universal"
115115
elif env["platform"] == "android":
116116
env["arch"] = "arm64"

godot-headers/extension_api.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76305,7 +76305,7 @@
7630576305
]
7630676306
},
7630776307
{
76308-
"name": "add_osx_plugin_file",
76308+
"name": "add_macos_plugin_file",
7630976309
"is_const": false,
7631076310
"is_vararg": false,
7631176311
"is_static": false,

test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
99
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
1010
set(TARGET_PATH win64)
1111
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
12-
set(TARGET_PATH osx)
12+
set(TARGET_PATH macos)
1313
else()
1414
message(FATAL_ERROR "Not implemented support for ${CMAKE_SYSTEM_NAME}")
1515
endif()

test/SConstruct

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env = SConscript("../SConstruct")
1616
env.Append(CPPPATH=["src/"])
1717
sources = Glob("src/*.cpp")
1818

19-
if env["platform"] == "osx":
19+
if env["platform"] == "macos":
2020
library = env.SharedLibrary(
2121
"demo/bin/libgdexample.{}.{}.framework/libgdexample.{}.{}".format(
2222
env["platform"], env["target"], env["platform"], env["target"]

test/demo/example.gdextension

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ entry_symbol = "example_library_init"
44

55
[libraries]
66

7-
macos.debug = "bin/libgdexample.osx.debug.framework"
8-
macos.release = "bin/libgdexample.osx.release.framework"
7+
macos.debug = "bin/libgdexample.macos.debug.framework"
8+
macos.release = "bin/libgdexample.macos.release.framework"
99
windows.debug.x86_32 = "bin/libgdexample.windows.debug.x86_32.dll"
1010
windows.release.x86_32 = "bin/libgdexample.windows.release.x86_32.dll"
1111
windows.debug.x86_64 = "bin/libgdexample.windows.debug.x86_64.dll"

tools/ios.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ def options(opts):
2020
opts.Add(BoolVariable("ios_simulator", "Target iOS Simulator", False))
2121
opts.Add("ios_min_version", "Target minimum iphoneos/iphonesimulator version", "10.0")
2222
opts.Add(
23-
"IPHONEPATH",
24-
"Path to iPhone toolchain",
23+
"IOS_TOOLCHAIN_PATH",
24+
"Path to iOS toolchain",
2525
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
2626
)
27-
opts.Add("IPHONESDK", "Path to the iPhone SDK", "")
27+
opts.Add("IOS_SDK_PATH", "Path to the iOS SDK", "")
2828
ios_osxcross.options(opts)
2929

3030

@@ -45,23 +45,23 @@ def generate(env):
4545
env.Append(CCFLAGS=["-miphoneos-version-min=" + env["ios_min_version"]])
4646

4747
if sys.platform == "darwin":
48-
if env["IPHONESDK"] == "":
48+
if env["IOS_SDK_PATH"] == "":
4949
try:
50-
env["IPHONESDK"] = decode_utf8(
50+
env["IOS_SDK_PATH"] = decode_utf8(
5151
subprocess.check_output(["xcrun", "--sdk", sdk_name, "--show-sdk-path"]).strip()
5252
)
5353
except (subprocess.CalledProcessError, OSError):
5454
raise ValueError(
5555
"Failed to find SDK path while running xcrun --sdk {} --show-sdk-path.".format(sdk_name)
5656
)
5757

58-
compiler_path = env["IPHONEPATH"] + "/usr/bin/"
58+
compiler_path = env["IOS_TOOLCHAIN_PATH"] + "/usr/bin/"
5959
env["CC"] = compiler_path + "clang"
6060
env["CXX"] = compiler_path + "clang++"
6161
env["AR"] = compiler_path + "ar"
6262
env["RANLIB"] = compiler_path + "ranlib"
6363
env["SHLIBSUFFIX"] = ".dylib"
64-
env["ENV"]["PATH"] = env["IPHONEPATH"] + "/Developer/usr/bin/:" + env["ENV"]["PATH"]
64+
env["ENV"]["PATH"] = env["IOS_TOOLCHAIN_PATH"] + "/Developer/usr/bin/:" + env["ENV"]["PATH"]
6565

6666
else:
6767
ios_osxcross.generate(env)
@@ -77,8 +77,8 @@ def generate(env):
7777
env.Append(LINKFLAGS=["-arch", env["arch"]])
7878
env.Append(CCFLAGS=["-arch", env["arch"]])
7979

80-
env.Append(CCFLAGS=["-isysroot", env["IPHONESDK"]])
81-
env.Append(LINKFLAGS=["-isysroot", env["IPHONESDK"], "-F" + env["IPHONESDK"]])
80+
env.Append(CCFLAGS=["-isysroot", env["IOS_SDK_PATH"]])
81+
env.Append(LINKFLAGS=["-isysroot", env["IOS_SDK_PATH"], "-F" + env["IOS_SDK_PATH"]])
8282

8383
if env["target"] == "debug":
8484
env.Append(CCFLAGS=["-Og", "-g"])

tools/ios_osxcross.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def exists(env):
1010

1111

1212
def generate(env):
13-
compiler_path = "$IPHONEPATH/usr/bin/${ios_triple}"
13+
compiler_path = "$IOS_TOOLCHAIN_PATH/usr/bin/${ios_triple}"
1414
env["CC"] = compiler_path + "clang"
1515
env["CXX"] = compiler_path + "clang++"
1616
env["AR"] = compiler_path + "ar"
@@ -19,8 +19,8 @@ def generate(env):
1919

2020
env.Prepend(
2121
CPPPATH=[
22-
"$IPHONESDK/usr/include",
23-
"$IPHONESDK/System/Library/Frameworks/AudioUnit.framework/Headers",
22+
"$IOS_SDK_PATH/usr/include",
23+
"$IOS_SDK_PATH/System/Library/Frameworks/AudioUnit.framework/Headers",
2424
]
2525
)
2626
env.Append(CCFLAGS=["-stdlib=libc++"])

tools/osx.py tools/macos.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import os
22
import sys
3-
import osxcross
3+
import macos_osxcross
44

55

66
def options(opts):
77
opts.Add("macos_deployment_target", "macOS deployment target", "default")
88
opts.Add("macos_sdk_path", "macOS SDK path", "")
9-
osxcross.options(opts)
9+
macos_osxcross.options(opts)
1010

1111

1212
def exists(env):
13-
return sys.platform == "darwin" or osxcross.exists(env)
13+
return sys.platform == "darwin" or macos_osxcross.exists(env)
1414

1515

1616
def generate(env):
@@ -24,7 +24,7 @@ def generate(env):
2424
env["CC"] = "clang"
2525
else:
2626
# Use osxcross
27-
osxcross.generate(env)
27+
macos_osxcross.generate(env)
2828

2929
if env["arch"] == "universal":
3030
env.Append(LINKFLAGS=["-arch", "x86_64", "-arch", "arm64"])
File renamed without changes.

0 commit comments

Comments
 (0)