Skip to content

Commit 930cdb6

Browse files
committed
Mono: Add net_4_x_win and net_4_x BCLs to templates
Also accommodate recent change with mono-glue files.
1 parent b2b7bea commit 930cdb6

File tree

7 files changed

+18
-6
lines changed

7 files changed

+18
-6
lines changed

build-android/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ if [ "${MONO}" == "1" ]; then
4848
echo "Starting Mono build for Android..."
4949

5050
cp /root/mono-glue/*.cpp modules/mono/glue/
51-
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
51+
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
52+
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
5253

5354
$SCONS platform=android android_arch=armv7 $OPTIONS $OPTIONS_MONO mono_prefix=/root/mono-installs/android-armeabi-v7a-release tools=no target=release_debug
5455
$SCONS platform=android android_arch=armv7 $OPTIONS $OPTIONS_MONO mono_prefix=/root/mono-installs/android-armeabi-v7a-release tools=no target=release

build-javascript/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ if [ "${MONO}" == "1" ]; then
3434
echo "Starting Mono build for JavaScript..."
3535

3636
cp /root/mono-glue/*.cpp modules/mono/glue/
37-
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
37+
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
38+
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
3839

3940
$SCONS platform=javascript ${OPTIONS} ${OPTIONS_MONO} target=release_debug tools=no
4041
$SCONS platform=javascript ${OPTIONS} ${OPTIONS_MONO} target=release tools=no

build-linux/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ if [ "${MONO}" == "1" ]; then
4040
echo "Starting Mono build for Linux..."
4141

4242
cp /root/mono-glue/*.cpp modules/mono/glue/
43-
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
43+
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
44+
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
4445
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/
4546

4647
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes

build-macosx/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ if [ "${MONO}" == "1" ]; then
4040
echo "Starting Mono build for macOS..."
4141

4242
cp /root/mono-glue/*.cpp modules/mono/glue/
43-
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
43+
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
44+
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
4445

4546
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
4647

build-release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ if [ "${build_mono}" == "1" ]; then
263263
cp out/linux/x86/templates-mono/godot.x11.opt.debug.32.mono ${templatesdir_mono}/linux_x11_32_debug
264264
cp out/linux/x86/templates-mono/godot.x11.opt.32.mono ${templatesdir_mono}/linux_x11_32_release
265265

266+
mkdir -p ${templatesdir_mono}/bcl
267+
cp -r out/linux/x64/tools-mono/GodotSharp/Mono/lib/mono/4.5/ ${templatesdir_mono}/bcl/net_4_x
268+
266269
## Windows (Mono) ##
267270

268271
# Editor
@@ -299,6 +302,9 @@ if [ "${build_mono}" == "1" ]; then
299302
sign ${templatesdir_mono}/windows_32_debug.exe
300303
sign ${templatesdir_mono}/windows_32_release.exe
301304

305+
mkdir -p ${templatesdir_mono}/bcl
306+
cp -r out/windows/x64/tools-mono/GodotSharp/Mono/lib/mono/4.5/ ${templatesdir_mono}/bcl/net_4_x_win
307+
302308
## OSX (Mono) ##
303309

304310
# Editor

build-server/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ if [ "${MONO}" == "1" ]; then
4040
echo "Starting Mono build for Server..."
4141

4242
cp /root/mono-glue/*.cpp modules/mono/glue/
43-
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
43+
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
44+
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
4445

4546
$SCONS platform=server CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
4647
mkdir -p /root/out/tools-mono

build-windows/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if [ "${MONO}" == "1" ]; then
5151
echo "Starting Mono build for Windows..."
5252

5353
cp /root/mono-glue/*.cpp modules/mono/glue/
54-
cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
54+
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
55+
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
5556

5657
$SCONS platform=windows bits=64 $OPTIONS $OPTIONS_MONO mono_prefix=$MONO64_PREFIX tools=yes target=release_debug copy_mono_root=yes
5758
mkdir -p /root/out/x64/tools-mono

0 commit comments

Comments
 (0)