mirror of
https://github.com/tribufu/tribufu-rust
synced 2026-05-18 09:35:44 +00:00
Update Scripts
This commit is contained in:
parent
443c1238c3
commit
a6da18f4ea
5 changed files with 66 additions and 10 deletions
38
Bootstrap.ps1
Normal file
38
Bootstrap.ps1
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env pwsh
|
||||
|
||||
echo "Installing dependencies..."
|
||||
|
||||
cargo install cbindgen
|
||||
|
||||
echo "Generating bindings..."
|
||||
|
||||
cbindgen --config ./Config/Bindings.toml --crate tribufu --output ./Source/Header.h
|
||||
|
||||
# Windows
|
||||
|
||||
if ($IsWindows)
|
||||
{
|
||||
echo "Generating Visual Studio project..."
|
||||
|
||||
& "./Vendor/Premake/Windows/premake5.exe" "vs2019"
|
||||
}
|
||||
|
||||
# Mac
|
||||
|
||||
elseif ($IsMacOS)
|
||||
{
|
||||
echo "Generating XCode project..."
|
||||
|
||||
sudo chmod +x ./Vendor/Premake/Mac/premake5
|
||||
& "./Vendor/Premake/Mac/premake5" "xcode4"
|
||||
}
|
||||
|
||||
# Linux
|
||||
|
||||
elseif ($IsLinux)
|
||||
{
|
||||
echo "Generating GMake project..."
|
||||
|
||||
sudo chmod +x ./Vendor/Premake/Linux/premake5
|
||||
& "./Vendor/Premake/Linux/premake5" "gmake2"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue