Skip to content

Commit 2281ade

Browse files
authored
Merge pull request #77 from unvermuthet/macos-ios-binary-naming
Include env["suffix"] in binary names for macOS and iOS
2 parents ba780e0 + a21da62 commit 2281ade

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ filepath = ""
5050

5151
if env["platform"] == "macos" or env["platform"] == "ios":
5252
filepath = "{}.framework/".format(env["platform"])
53-
file = "{}.{}.{}".format(libname, env["platform"], env["target"])
53+
file = "{}{}".format(libname, env["suffix"])
5454

5555
libraryfile = "bin/{}/{}{}".format(env["platform"], filepath, file)
5656
library = env.SharedLibrary(

bin/ios/ios.framework/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleExecutable</key>
10-
<string>libEXTENSION-NAME.macos.template_release</string>
10+
<string>libEXTENSION-NAME.ios.template_release.universal</string>
1111
<key>CFBundleName</key>
1212
<string>Godot Template Cpp</string>
1313
<key>CFBundleDisplayName</key>

bin/macos/macos.framework/Resources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleDevelopmentRegion</key>
88
<string>en</string>
99
<key>CFBundleExecutable</key>
10-
<string>libEXTENSION-NAME.macos.template_release</string>
10+
<string>libEXTENSION-NAME.macos.template_release.universal</string>
1111
<key>CFBundleName</key>
1212
<string>Godot Cpp Template</string>
1313
<key>CFBundleDisplayName</key>

demo/bin/example.gdextension

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ compatibility_minimum = "4.1"
55

66
[libraries]
77
; Relative paths ensure that our GDExtension can be placed anywhere in the project directory.
8-
macos.debug = "./macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
9-
macos.release = "./macos/macos.framework/libEXTENSION-NAME.macos.template_release"
10-
ios.debug = "./ios/ios.framework/libEXTENSION-NAME.ios.template_debug"
11-
ios.release = "./ios/ios.framework/libEXTENSION-NAME.ios.template_release"
8+
macos.debug = "./macos/macos.framework/libEXTENSION-NAME.macos.template_debug.universal"
9+
macos.release = "./macos/macos.framework/libEXTENSION-NAME.macos.template_release.universal"
10+
ios.debug = "./ios/ios.framework/libEXTENSION-NAME.ios.template_debug.universal"
11+
ios.release = "./ios/ios.framework/libEXTENSION-NAME.ios.template_release.universal"
1212
windows.debug.x86_32 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll"
1313
windows.release.x86_32 = "./windows/libEXTENSION-NAME.windows.template_release.x86_32.dll"
1414
windows.debug.x86_64 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll"

0 commit comments

Comments
 (0)