mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-16 18:34:19 +00:00
Use mintaka http client
This commit is contained in:
3
scripts/cbindgen.ps1
Normal file
3
scripts/cbindgen.ps1
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
cbindgen --config ./config/cbindgen.toml --crate tribufu-native --output ./include/tribufu/native.h
|
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
# Windows (x86_64)
|
||||
echo "Building for windows-x86_64"
|
||||
cargo build --package tribufu-native --target x86_64-pc-windows-msvc
|
||||
New-Item "bin/windows/x86_64" -ItemType Directory -Force
|
||||
Remove-Item -Path "bin/windows/x86_64/*" -Force
|
||||
Copy-Item -Path "target/x86_64-pc-windows-msvc/debug/deps/mintaka_native.dll" -Destination "bin/windows/x86_64" -Force
|
||||
Copy-Item -Path "target/x86_64-pc-windows-msvc/debug/deps/mintaka_native.dll.lib" -Destination "bin/windows/x86_64" -Force
|
||||
Copy-Item -Path "target/x86_64-pc-windows-msvc/debug/deps/mintaka_native.lib" -Destination "bin/windows/x86_64" -Force
|
||||
Copy-Item -Path "target/x86_64-pc-windows-msvc/debug/tribufu_native.lib" -Destination "bin/windows/x86_64" -Force
|
||||
msbuild /p:Configuration="debug" /p:Platform="windows-x86_64"
|
||||
|
||||
# Windows (i686)
|
||||
#msbuild /p:Configuration="debug" /p:Platform="windows-i686"
|
||||
|
||||
# Windows (aarch64)
|
||||
|
||||
#msbuild /p:Configuration="debug" /p:Platform="windows-aarch64"
|
||||
|
3
scripts/premake.bat
Normal file
3
scripts/premake.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
call .\vendor\premake\windows\premake5.exe vs2022
|
10
scripts/premake.sh
Normal file
10
scripts/premake.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]
|
||||
then
|
||||
./vendor/premake/linux/premake5 gmake2
|
||||
|
||||
elif [ "$(uname)" = "Darwin" ]
|
||||
then
|
||||
./vendor/premake/mac/premake5 xcode4
|
||||
fi
|
Reference in New Issue
Block a user