mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-06-01 09:42:37 +00:00
Generate native bindings from rust crate
This commit is contained in:
parent
738f9c947b
commit
6ab490ce07
37 changed files with 1112 additions and 23 deletions
12
scripts/windows/build.ps1
Normal file
12
scripts/windows/build.ps1
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env pwsh
|
||||
|
||||
echo "Building for win-x64"
|
||||
cargo build --workspace
|
||||
|
||||
New-Item "bin/win-x64" -ItemType Directory -Force
|
||||
Remove-Item -Path "bin/win-x64/*" -Force -Recurse
|
||||
|
||||
Copy-Item -Path "target/debug/tribufu_sdk.dll.lib" -Destination "bin/win-x64/tribufu_sdk.lib"
|
||||
Copy-Item -Path "target/debug/tribufu_sdk.dll" -Destination "bin/win-x64/tribufu_sdk.dll"
|
||||
|
||||
msbuild /p:Configuration="debug" /p:Platform="win-x64"
|
||||
Loading…
Add table
Add a link
Reference in a new issue