Skip to content

Commit

Permalink
builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 30, 2025
1 parent 94af8fa commit 0da9b41
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
Binary file modified Assets/Dojo/Plugins/Linux/libdojo_c.so
Binary file not shown.
4 changes: 2 additions & 2 deletions Assets/Dojo/Plugins/Windows/libdojo_c.dll
Git LFS file not shown
4 changes: 2 additions & 2 deletions Assets/Dojo/Plugins/iOS/libdojo_c.a
Git LFS file not shown
Binary file modified Assets/Dojo/Plugins/macOS/libdojo_c.bundle
Binary file not shown.
2 changes: 1 addition & 1 deletion Bindings/dojo.c
18 changes: 13 additions & 5 deletions Scripts/libgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ fi
print_status "Setting up linkers..."

# Configure linkers
# Linux linker
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc
# Windows linker
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=x86_64-w64-mingw32-gcc
# Replace by Unity path
Expand All @@ -48,10 +46,20 @@ for target in "${targets[@]}"; do
rm -rf "../../Assets/Dojo/Libraries/$target"

# Build binary for the target
if [[ "$build" == "release" ]]; then
cargo build --release --target "$target" > /dev/null 2>&1
if [[ "$target" == "x86_64-unknown-linux-gnu" ]]; then
# Use cross for Linux build
if [[ "$build" == "release" ]]; then
cross build --release --target "$target" > /dev/null 2>&1
else
cross build --target "$target" > /dev/null 2>&1
fi
else
cargo build --target "$target" > /dev/null 2>&1
# Regular cargo build for other targets
if [[ "$build" == "release" ]]; then
cargo build --release --target "$target" > /dev/null 2>&1
else
cargo build --target "$target" > /dev/null 2>&1
fi
fi

if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 0da9b41

Please sign in to comment.