Skip to content

Commit

Permalink
Create the lib/ directory if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Demindiro committed Jul 13, 2021
1 parent feb34ad commit 11297fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default: release

release: linux

linux: rapier3d/api.json
linux: rapier3d/api.json addons/rapier3d/lib/
GODOT_PATH=$(GODOT) cargo build --quiet --target $(TARGET_LINUX) --release
cp target/$(TARGET_LINUX)/release/librapier3d.so $(OUTPUT_DIR)/librapier3d.so
strip $(OUTPUT_DIR)/librapier3d.so
Expand All @@ -27,6 +27,8 @@ clean:
rm module/api.json || true
rm module/api.gen.h || true

addons/rapier3d/lib/:
mkdir $@

rapier3d/api.json: module/api.json
cp module/api.json rapier3d/api.json
Expand Down
2 changes: 1 addition & 1 deletion build_win.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
cargo build --target x86_64-pc-windows-msvc --release
cp target/x86_64-pc-windows-msvc/release/rapier3d.dll addons/rapier3d/lib/rapier3d.dll
xcopy target/x86_64-pc-windows-msvc/release/rapier3d.dll addons/rapier3d/lib/rapier3d.dll

0 comments on commit 11297fd

Please sign in to comment.