Merge pull request #96 from thehtml5gameguy/main
Configure For building gurt_godot on mac
This commit is contained in:
Binary file not shown.
@@ -14,15 +14,15 @@ crate-type = ["cdylib"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
gurtlib = { path = "../library" }
|
gurtlib = { path = "../library" }
|
||||||
|
|
||||||
godot = "0.1"
|
godot = { version = "0.1", features = ["experimental-threads"] }
|
||||||
|
|
||||||
tokio = { version = "1.0", features = ["rt"] }
|
tokio = { version = "1.0", features = ["rt"] }
|
||||||
url = "2.5"
|
url = "2.5"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = "z"
|
opt-level = 3
|
||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
strip = true
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
strip = true
|
|
||||||
@@ -33,7 +33,7 @@ while [[ $# -gt 0 ]]; do
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " -t, --target TARGET Build target (debug|release) [default: release]"
|
echo " -t, --target TARGET Build target (debug|release) [default: release]"
|
||||||
echo " -p, --platform PLATFORM Target platform (windows|linux|macos|current)"
|
echo " -p, --platform PLATFORM Target platform (windows|linux|macos|macos-intel|current)"
|
||||||
echo " -h, --help Show this help message"
|
echo " -h, --help Show this help message"
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
@@ -82,6 +82,10 @@ case $PLATFORM in
|
|||||||
LIB_NAME="libgurt_godot.so"
|
LIB_NAME="libgurt_godot.so"
|
||||||
;;
|
;;
|
||||||
macos)
|
macos)
|
||||||
|
RUST_TARGET="aarch64-apple-darwin"
|
||||||
|
LIB_NAME="libgurt_godot.dylib"
|
||||||
|
;;
|
||||||
|
macos-intel)
|
||||||
RUST_TARGET="x86_64-apple-darwin"
|
RUST_TARGET="x86_64-apple-darwin"
|
||||||
LIB_NAME="libgurt_godot.dylib"
|
LIB_NAME="libgurt_godot.dylib"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user